[]Struct gtk::ScaleButton

pub struct ScaleButton(_, _);

ScaleButton provides a button which pops up a scale widget. This kind of widget is commonly used for volume controls in multimedia applications, and GTK+ provides a VolumeButton subclass that is tailored for this use case.

CSS nodes

ScaleButton has a single CSS node with name button. To differentiate it from a plain Button, it gets the .scale style class.

The popup widget that contains the scale has a .scale-popup style class.

Implements

ScaleButtonExt, ButtonExt, BinExt, ContainerExt, WidgetExt, glib::object::ObjectExt, BuildableExt, ActionableExt, OrientableExt, WidgetExtManual, BuildableExtManual

Implementations

impl ScaleButton[src]

pub fn new(
    size: IconSize,
    min: f64,
    max: f64,
    step: f64,
    icons: &[&str]
) -> ScaleButton
[src]

Creates a ScaleButton, with a range between min and max, with a stepping of step.

size

a stock icon size (IconSize)

min

the minimum value of the scale (usually 0)

max

the maximum value of the scale (usually 100)

step

the stepping of value when a scroll-wheel event, or up/down arrow event occurs (usually 2)

icons

a None-terminated array of icon names, or None if you want to set the list later with ScaleButtonExt::set_icons

Returns

a new ScaleButton

Trait Implementations

impl Clone for ScaleButton

impl Debug for ScaleButton

impl Display for ScaleButton[src]

impl Eq for ScaleButton

impl Hash for ScaleButton

impl IsA<Actionable> for ScaleButton

impl IsA<Bin> for ScaleButton

impl IsA<Buildable> for ScaleButton

impl IsA<Button> for ScaleButton

impl IsA<Container> for ScaleButton

impl IsA<Orientable> for ScaleButton

impl IsA<ScaleButton> for VolumeButton

impl IsA<Widget> for ScaleButton

impl Ord for ScaleButton

impl<T: ObjectType> PartialEq<T> for ScaleButton

impl<T: ObjectType> PartialOrd<T> for ScaleButton

impl StaticType for ScaleButton

Auto Trait Implementations

impl RefUnwindSafe for ScaleButton

impl !Send for ScaleButton

impl !Sync for ScaleButton

impl Unpin for ScaleButton

impl UnwindSafe for ScaleButton

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.