[go: up one dir, main page]

RangeExt

Trait RangeExt 

Source
pub trait RangeExt: IsA<Range> + 'static {
Show 33 methods // Provided methods fn adjustment(&self) -> Adjustment { ... } fn fill_level(&self) -> f64 { ... } fn is_flippable(&self) -> bool { ... } fn is_inverted(&self) -> bool { ... } fn range_rect(&self) -> Rectangle { ... } fn restricts_to_fill_level(&self) -> bool { ... } fn round_digits(&self) -> i32 { ... } fn shows_fill_level(&self) -> bool { ... } fn slider_range(&self) -> (i32, i32) { ... } fn is_slider_size_fixed(&self) -> bool { ... } fn value(&self) -> f64 { ... } fn set_adjustment(&self, adjustment: &impl IsA<Adjustment>) { ... } 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_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_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) -> Propagation + '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_adjustment_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_fill_level_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_inverted_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_restrict_to_fill_level_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_round_digits_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_show_fill_level_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn adjustment(&self) -> Adjustment

Source

fn fill_level(&self) -> f64

Source

fn is_flippable(&self) -> bool

Source

fn is_inverted(&self) -> bool

Source

fn range_rect(&self) -> Rectangle

Source

fn restricts_to_fill_level(&self) -> bool

Source

fn round_digits(&self) -> i32

Source

fn shows_fill_level(&self) -> bool

Source

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

Source

fn is_slider_size_fixed(&self) -> bool

Source

fn value(&self) -> f64

Source

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

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_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_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) -> Propagation + '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_adjustment_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

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

Source

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

Source

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

Source

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

Source

fn connect_show_fill_level_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