Struct gtk::SpinButton
[−]
pub struct SpinButton(_, _);
Methods
impl SpinButton
[src]
fn new(adjustment: Option<&Adjustment>,
climb_rate: f64,
digits: u32)
-> SpinButton
climb_rate: f64,
digits: u32)
-> SpinButton
fn new_with_range(min: f64, max: f64, step: f64) -> SpinButton
fn configure(&self,
adjustment: Option<&Adjustment>,
climb_rate: f64,
digits: u32)
adjustment: Option<&Adjustment>,
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(&self, adjustment: &Adjustment)
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)
Trait Implementations
impl Clone for SpinButton
fn clone(&self) -> SpinButton
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for SpinButton
impl Hash for SpinButton
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl StaticType for SpinButton
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for SpinButton
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.