[][src]Enum gdk::WindowTypeHint

#[non_exhaustive]pub enum WindowTypeHint {
    Normal,
    Dialog,
    Menu,
    Toolbar,
    Splashscreen,
    Utility,
    Dock,
    Desktop,
    DropdownMenu,
    PopupMenu,
    Tooltip,
    Notification,
    Combo,
    Dnd,
    // some variants omitted
}

These are hints for the window manager that indicate what type of function the window has. The window manager can use this when determining decoration and behaviour of the window. The hint must be set before mapping the window.

See the Extended Window Manager Hints specification for more details about window types.

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.
Normal

Normal toplevel window.

Dialog

Dialog window.

Menu

Window used to implement a menu; GTK+ uses this hint only for torn-off menus, see GtkTearoffMenuItem.

Toolbar

Window used to implement toolbars.

Splashscreen

Window used to display a splash screen during application startup.

Utility

Utility windows which are not detached toolbars or dialogs.

Dock

Used for creating dock or panel windows.

Desktop

Used for creating the desktop background window.

DropdownMenu

A menu that belongs to a menubar.

PopupMenu

A menu that does not belong to a menubar, e.g. a context menu.

Tooltip

A tooltip.

Notification

A notification - typically a “bubble” that belongs to a status icon.

Combo

A popup from a combo box.

Dnd

A window that is used to implement a DND cursor.

Trait Implementations

impl Clone for WindowTypeHint[src]

impl Copy for WindowTypeHint[src]

impl Debug for WindowTypeHint[src]

impl Display for WindowTypeHint[src]

impl Eq for WindowTypeHint[src]

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

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

impl Hash for WindowTypeHint[src]

impl Ord for WindowTypeHint[src]

impl PartialEq<WindowTypeHint> for WindowTypeHint[src]

impl PartialOrd<WindowTypeHint> for WindowTypeHint[src]

impl SetValue for WindowTypeHint[src]

impl StaticType for WindowTypeHint[src]

impl StructuralEq for WindowTypeHint[src]

impl StructuralPartialEq for WindowTypeHint[src]

Auto Trait Implementations

impl RefUnwindSafe for WindowTypeHint

impl Send for WindowTypeHint

impl Sync for WindowTypeHint

impl Unpin for WindowTypeHint

impl UnwindSafe for WindowTypeHint

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.