gtk::builders

Struct ScaleBuilder

Source
pub struct ScaleBuilder { /* private fields */ }
Expand description

A builder-pattern type to construct Scale objects.

Implementations§

Source§

impl ScaleBuilder

Source

pub fn digits(self, digits: i32) -> Self

Source

pub fn draw_value(self, draw_value: bool) -> Self

Source

pub fn has_origin(self, has_origin: bool) -> Self

Source

pub fn value_pos(self, value_pos: PositionType) -> Self

Source

pub fn adjustment(self, adjustment: &impl IsA<Adjustment>) -> Self

Source

pub fn fill_level(self, fill_level: f64) -> Self

Source

pub fn inverted(self, inverted: bool) -> Self

Source

pub fn lower_stepper_sensitivity( self, lower_stepper_sensitivity: SensitivityType, ) -> Self

Source

pub fn restrict_to_fill_level(self, restrict_to_fill_level: bool) -> Self

Source

pub fn round_digits(self, round_digits: i32) -> Self

Source

pub fn show_fill_level(self, show_fill_level: bool) -> Self

Source

pub fn upper_stepper_sensitivity( self, upper_stepper_sensitivity: SensitivityType, ) -> Self

Source

pub fn app_paintable(self, app_paintable: bool) -> Self

Source

pub fn can_default(self, can_default: bool) -> Self

Source

pub fn can_focus(self, can_focus: bool) -> Self

Source

pub fn events(self, events: EventMask) -> Self

Source

pub fn expand(self, expand: bool) -> Self

Source

pub fn focus_on_click(self, focus_on_click: bool) -> Self

Source

pub fn halign(self, halign: Align) -> Self

Source

pub fn has_default(self, has_default: bool) -> Self

Source

pub fn has_focus(self, has_focus: bool) -> Self

Source

pub fn has_tooltip(self, has_tooltip: bool) -> Self

Source

pub fn height_request(self, height_request: i32) -> Self

Source

pub fn hexpand(self, hexpand: bool) -> Self

Source

pub fn hexpand_set(self, hexpand_set: bool) -> Self

Source

pub fn is_focus(self, is_focus: bool) -> Self

Source

pub fn margin(self, margin: i32) -> Self

Source

pub fn margin_bottom(self, margin_bottom: i32) -> Self

Source

pub fn margin_end(self, margin_end: i32) -> Self

Source

pub fn margin_start(self, margin_start: i32) -> Self

Source

pub fn margin_top(self, margin_top: i32) -> Self

Source

pub fn name(self, name: impl Into<GString>) -> Self

Source

pub fn no_show_all(self, no_show_all: bool) -> Self

Source

pub fn opacity(self, opacity: f64) -> Self

Source

pub fn parent(self, parent: &impl IsA<Container>) -> Self

Source

pub fn receives_default(self, receives_default: bool) -> Self

Source

pub fn sensitive(self, sensitive: bool) -> Self

Source

pub fn tooltip_markup(self, tooltip_markup: impl Into<GString>) -> Self

Source

pub fn tooltip_text(self, tooltip_text: impl Into<GString>) -> Self

Source

pub fn valign(self, valign: Align) -> Self

Source

pub fn vexpand(self, vexpand: bool) -> Self

Source

pub fn vexpand_set(self, vexpand_set: bool) -> Self

Source

pub fn visible(self, visible: bool) -> Self

Source

pub fn width_request(self, width_request: i32) -> Self

Source

pub fn orientation(self, orientation: Orientation) -> Self

Source

pub fn build(self) -> Scale

Build the Scale.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.