[][src]Enum gtk::IconSize

#[non_exhaustive]pub enum IconSize {
    Invalid,
    Menu,
    SmallToolbar,
    LargeToolbar,
    Button,
    Dnd,
    Dialog,
    // some variants omitted
}

Built-in stock icon sizes.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Invalid

Invalid size.

Menu

Size appropriate for menus (16px).

SmallToolbar

Size appropriate for small toolbars (16px).

LargeToolbar

Size appropriate for large toolbars (24px)

Button

Size appropriate for buttons (16px)

Dnd

Size appropriate for drag and drop (32px)

Dialog

Size appropriate for dialogs (48px)

Implementations

impl IconSize[src]

pub fn unscaled() -> IconSize[src]

Trait Implementations

impl Clone for IconSize[src]

impl Copy for IconSize[src]

impl Debug for IconSize[src]

impl Display for IconSize[src]

impl Eq for IconSize[src]

impl From<i32> for IconSize[src]

impl<'a> FromValue<'a> for IconSize[src]

impl<'a> FromValueOptional<'a> for IconSize[src]

impl Hash for IconSize[src]

impl Into<i32> for IconSize[src]

impl Ord for IconSize[src]

impl PartialEq<IconSize> for IconSize[src]

impl PartialOrd<IconSize> for IconSize[src]

impl SetValue for IconSize[src]

impl StaticType for IconSize[src]

impl StructuralEq for IconSize[src]

impl StructuralPartialEq for IconSize[src]

Auto Trait Implementations

impl RefUnwindSafe for IconSize

impl Send for IconSize

impl Sync for IconSize

impl Unpin for IconSize

impl UnwindSafe for IconSize

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<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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.