Trait RangeExt

Source
pub trait RangeExt: 'static {
Show 41 methods // Required methods fn get_adjustment(&self) -> Adjustment; fn get_fill_level(&self) -> f64; fn get_flippable(&self) -> bool; fn get_inverted(&self) -> bool; fn get_lower_stepper_sensitivity(&self) -> SensitivityType; fn get_min_slider_size(&self) -> i32; fn get_range_rect(&self) -> Rectangle; fn get_restrict_to_fill_level(&self) -> bool; fn get_round_digits(&self) -> i32; fn get_show_fill_level(&self) -> bool; fn get_slider_range(&self) -> (i32, i32); fn get_slider_size_fixed(&self) -> bool; fn get_upper_stepper_sensitivity(&self) -> SensitivityType; fn get_value(&self) -> f64; fn set_adjustment<P: IsA<Adjustment>>(&self, adjustment: &P); fn set_fill_level(&self, fill_level: f64); fn set_flippable(&self, flippable: bool); fn set_increments(&self, step: f64, page: f64); fn set_inverted(&self, setting: bool); fn set_lower_stepper_sensitivity(&self, sensitivity: SensitivityType); fn set_min_slider_size(&self, min_size: i32); fn set_range(&self, min: f64, max: f64); fn set_restrict_to_fill_level(&self, restrict_to_fill_level: bool); fn set_round_digits(&self, round_digits: i32); fn set_show_fill_level(&self, show_fill_level: bool); fn set_slider_size_fixed(&self, size_fixed: bool); fn set_upper_stepper_sensitivity(&self, sensitivity: SensitivityType); fn set_value(&self, value: f64); fn connect_adjust_bounds<F: Fn(&Self, f64) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_change_value<F: Fn(&Self, ScrollType, f64) -> Inhibit + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_move_slider<F: Fn(&Self, ScrollType) + 'static>( &self, f: F, ) -> SignalHandlerId; fn emit_move_slider(&self, step: ScrollType); fn connect_value_changed<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_adjustment_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_fill_level_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_inverted_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_lower_stepper_sensitivity_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_restrict_to_fill_level_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_round_digits_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_show_fill_level_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_upper_stepper_sensitivity_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

fn get_adjustment(&self) -> Adjustment

Source

fn get_fill_level(&self) -> f64

Source

fn get_flippable(&self) -> bool

Source

fn get_inverted(&self) -> bool

Source

fn get_lower_stepper_sensitivity(&self) -> SensitivityType

Source

fn get_min_slider_size(&self) -> i32

👎Deprecated
Source

fn get_range_rect(&self) -> Rectangle

Source

fn get_restrict_to_fill_level(&self) -> bool

Source

fn get_round_digits(&self) -> i32

Source

fn get_show_fill_level(&self) -> bool

Source

fn get_slider_range(&self) -> (i32, i32)

Source

fn get_slider_size_fixed(&self) -> bool

Source

fn get_upper_stepper_sensitivity(&self) -> SensitivityType

Source

fn get_value(&self) -> f64

Source

fn set_adjustment<P: IsA<Adjustment>>(&self, adjustment: &P)

Source

fn set_fill_level(&self, fill_level: f64)

Source

fn set_flippable(&self, flippable: bool)

Source

fn set_increments(&self, step: f64, page: f64)

Source

fn set_inverted(&self, setting: bool)

Source

fn set_lower_stepper_sensitivity(&self, sensitivity: SensitivityType)

Source

fn set_min_slider_size(&self, min_size: i32)

👎Deprecated
Source

fn set_range(&self, min: f64, max: f64)

Source

fn set_restrict_to_fill_level(&self, restrict_to_fill_level: bool)

Source

fn set_round_digits(&self, round_digits: i32)

Source

fn set_show_fill_level(&self, show_fill_level: bool)

Source

fn set_slider_size_fixed(&self, size_fixed: bool)

Source

fn set_upper_stepper_sensitivity(&self, sensitivity: SensitivityType)

Source

fn set_value(&self, value: f64)

Source

fn connect_adjust_bounds<F: Fn(&Self, f64) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_change_value<F: Fn(&Self, ScrollType, f64) -> Inhibit + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_move_slider<F: Fn(&Self, ScrollType) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn emit_move_slider(&self, step: ScrollType)

Source

fn connect_value_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_property_adjustment_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_fill_level_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_inverted_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_lower_stepper_sensitivity_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_restrict_to_fill_level_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_round_digits_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_show_fill_level_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_upper_stepper_sensitivity_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<O: IsA<Range>> RangeExt for O