pub trait SpinButtonExt: 'static {
Show 32 methods
// Required methods
fn configure<P: IsA<Adjustment>>(
&self,
adjustment: Option<&P>,
climb_rate: f64,
digits: u32,
);
fn get_adjustment(&self) -> Adjustment;
fn get_digits(&self) -> u32;
fn get_increments(&self) -> (f64, f64);
fn get_numeric(&self) -> bool;
fn get_range(&self) -> (f64, f64);
fn get_snap_to_ticks(&self) -> bool;
fn get_update_policy(&self) -> SpinButtonUpdatePolicy;
fn get_value(&self) -> f64;
fn get_value_as_int(&self) -> i32;
fn get_wrap(&self) -> bool;
fn set_adjustment<P: IsA<Adjustment>>(&self, adjustment: &P);
fn set_digits(&self, digits: u32);
fn set_increments(&self, step: f64, page: f64);
fn set_numeric(&self, numeric: bool);
fn set_range(&self, min: f64, max: f64);
fn set_snap_to_ticks(&self, snap_to_ticks: bool);
fn set_update_policy(&self, policy: SpinButtonUpdatePolicy);
fn set_value(&self, value: f64);
fn set_wrap(&self, wrap: bool);
fn spin(&self, direction: SpinType, increment: f64);
fn update(&self);
fn get_property_climb_rate(&self) -> f64;
fn set_property_climb_rate(&self, climb_rate: f64);
fn connect_property_adjustment_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_climb_rate_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_digits_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_numeric_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_snap_to_ticks_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_update_policy_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_value_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_wrap_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
}
Required Methods§
fn configure<P: IsA<Adjustment>>( &self, adjustment: Option<&P>, climb_rate: f64, digits: u32, )
fn get_adjustment(&self) -> Adjustment
fn get_digits(&self) -> u32
fn get_increments(&self) -> (f64, f64)
fn get_numeric(&self) -> bool
fn get_range(&self) -> (f64, f64)
fn get_snap_to_ticks(&self) -> bool
fn get_update_policy(&self) -> SpinButtonUpdatePolicy
fn get_value(&self) -> f64
fn get_value_as_int(&self) -> i32
fn get_wrap(&self) -> bool
fn set_adjustment<P: IsA<Adjustment>>(&self, adjustment: &P)
fn set_digits(&self, digits: u32)
fn set_increments(&self, step: f64, page: f64)
fn set_numeric(&self, numeric: bool)
fn set_range(&self, min: f64, max: f64)
fn set_snap_to_ticks(&self, snap_to_ticks: bool)
fn set_update_policy(&self, policy: SpinButtonUpdatePolicy)
fn set_value(&self, value: f64)
fn set_wrap(&self, wrap: bool)
fn spin(&self, direction: SpinType, increment: f64)
fn update(&self)
fn get_property_climb_rate(&self) -> f64
fn set_property_climb_rate(&self, climb_rate: f64)
fn connect_property_adjustment_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_climb_rate_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_digits_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_numeric_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_snap_to_ticks_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_update_policy_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_value_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_wrap_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.