gtk::prelude

Trait ScaleExt

Source
pub trait ScaleExt:
    IsA<Scale>
    + Sealed
    + 'static {
Show 17 methods // Provided methods fn add_mark(&self, value: f64, position: PositionType, markup: Option<&str>) { ... } fn clear_marks(&self) { ... } fn digits(&self) -> i32 { ... } fn draws_value(&self) -> bool { ... } fn has_origin(&self) -> bool { ... } fn layout(&self) -> Option<Layout> { ... } fn layout_offsets(&self) -> (i32, i32) { ... } fn value_pos(&self) -> PositionType { ... } fn set_digits(&self, digits: i32) { ... } fn set_draw_value(&self, draw_value: bool) { ... } fn set_has_origin(&self, has_origin: bool) { ... } fn set_value_pos(&self, pos: PositionType) { ... } fn connect_format_value<F: Fn(&Self, f64) -> String + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_digits_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_draw_value_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_has_origin_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_value_pos_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn add_mark(&self, value: f64, position: PositionType, markup: Option<&str>)

Source

fn clear_marks(&self)

Source

fn digits(&self) -> i32

Source

fn draws_value(&self) -> bool

Source

fn has_origin(&self) -> bool

Source

fn layout(&self) -> Option<Layout>

Source

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

Source

fn value_pos(&self) -> PositionType

Source

fn set_digits(&self, digits: i32)

Source

fn set_draw_value(&self, draw_value: bool)

Source

fn set_has_origin(&self, has_origin: bool)

Source

fn set_value_pos(&self, pos: PositionType)

Source

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

Source

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

Source

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

Source

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

Source

fn connect_value_pos_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<Scale>> ScaleExt for O