Struct gtk::Scale
[−]
pub struct Scale(_, _);
Methods
impl Scale
[src]
fn new(orientation: Orientation, adjustment: Option<&Adjustment>) -> Scale
fn new_with_range(orientation: Orientation,
min: f64,
max: f64,
step: f64)
-> Scale
min: f64,
max: f64,
step: f64)
-> Scale
fn add_mark<'a, T: Into<Option<&'a str>>>(&self,
value: f64,
position: PositionType,
markup: T)
value: f64,
position: PositionType,
markup: T)
fn clear_marks(&self)
fn get_digits(&self) -> i32
fn get_draw_value(&self) -> bool
fn get_has_origin(&self) -> bool
fn get_layout_offsets(&self) -> (i32, i32)
fn get_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(&Scale, f64) -> String + 'static>(&self,
f: F)
-> u64
f: F)
-> u64
Trait Implementations
impl Clone for Scale
fn clone(&self) -> Scale
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 Scale
impl Hash for Scale
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 Scale
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for Scale
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 !=
.