#[non_exhaustive]pub enum WindowTypeHint {
Show 14 variants
Normal,
Dialog,
Menu,
Toolbar,
Splashscreen,
Utility,
Dock,
Desktop,
DropdownMenu,
PopupMenu,
Tooltip,
Notification,
Combo,
Dnd,
}Expand description
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)§
This enum is marked as non-exhaustive
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§
Source§impl Clone for WindowTypeHint
impl Clone for WindowTypeHint
Source§fn clone(&self) -> WindowTypeHint
fn clone(&self) -> WindowTypeHint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WindowTypeHint
Source§impl Debug for WindowTypeHint
impl Debug for WindowTypeHint
Source§impl Display for WindowTypeHint
impl Display for WindowTypeHint
impl Eq for WindowTypeHint
Source§impl From<WindowTypeHint> for Value
impl From<WindowTypeHint> for Value
Source§fn from(v: WindowTypeHint) -> Self
fn from(v: WindowTypeHint) -> Self
Source§impl<'a> FromValue<'a> for WindowTypeHint
impl<'a> FromValue<'a> for WindowTypeHint
Source§type Checker = GenericValueTypeChecker<WindowTypeHint>
type Checker = GenericValueTypeChecker<WindowTypeHint>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for WindowTypeHint
impl HasParamSpec for WindowTypeHint
type ParamSpec = ParamSpecEnum
Source§type SetValue = WindowTypeHint
type SetValue = WindowTypeHint
type BuilderFn = fn(&str, WindowTypeHint) -> ParamSpecEnumBuilder<'_, WindowTypeHint>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for WindowTypeHint
impl Hash for WindowTypeHint
Source§impl Ord for WindowTypeHint
impl Ord for WindowTypeHint
Source§fn cmp(&self, other: &WindowTypeHint) -> Ordering
fn cmp(&self, other: &WindowTypeHint) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for WindowTypeHint
impl PartialEq for WindowTypeHint
Source§impl PartialOrd for WindowTypeHint
impl PartialOrd for WindowTypeHint
Source§impl StaticType for WindowTypeHint
impl StaticType for WindowTypeHint
Source§fn static_type() -> Type
fn static_type() -> Type
Self.impl StructuralPartialEq for WindowTypeHint
Source§impl ToValue for WindowTypeHint
impl ToValue for WindowTypeHint
Source§impl ValueType for WindowTypeHint
impl ValueType for WindowTypeHint
Source§type Type = WindowTypeHint
type Type = WindowTypeHint
Type from. Read moreAuto Trait Implementations§
impl Freeze for WindowTypeHint
impl RefUnwindSafe for WindowTypeHint
impl Send for WindowTypeHint
impl Sync for WindowTypeHint
impl Unpin for WindowTypeHint
impl UnsafeUnpin for WindowTypeHint
impl UnwindSafe for WindowTypeHint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.