Enum gtk::WindowType [−][src]
#[non_exhaustive]
pub enum WindowType {
Toplevel,
Popup,
// some variants omitted
}Expand description
A Window can be one of these types. Most things you’d consider a
“window” should have type Toplevel; windows with this type
are managed by the window manager and have a frame by default (call
GtkWindowExt::set_decorated() to toggle the frame). Windows with type
Popup are ignored by the window manager; window manager
keybindings won’t work on them, the window manager won’t decorate the
window with a frame, many GTK+ features that rely on the window
manager will not work (e.g. resize grips and
maximization/minimization). Popup is used to implement
widgets such as Menu or tooltips that you normally don’t think of
as windows per se. Nearly all windows should be Toplevel.
In particular, do not use Popup just to turn off
the window borders; use GtkWindowExt::set_decorated() for that.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
A regular window, such as a dialog.
A special window such as a tooltip.
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>Value type checker.
Get the contained value from a Value. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Returns the type identifier of Self.
Auto Trait Implementations
impl RefUnwindSafe for WindowTypeimpl Send for WindowTypeimpl Sync for WindowTypeimpl Unpin for WindowTypeimpl UnwindSafe for WindowTypeBlanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue clone of self.