#[non_exhaustive]pub enum WindowType {
Toplevel,
Popup,
}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
Trait Implementations§
Source§impl Clone for WindowType
impl Clone for WindowType
Source§fn clone(&self) -> WindowType
fn clone(&self) -> WindowType
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 WindowType
Source§impl Debug for WindowType
impl Debug for WindowType
Source§impl Display for WindowType
impl Display for WindowType
impl Eq for WindowType
Source§impl From<WindowType> for Value
impl From<WindowType> for Value
Source§fn from(v: WindowType) -> Self
fn from(v: WindowType) -> Self
Source§impl<'a> FromValue<'a> for WindowType
impl<'a> FromValue<'a> for WindowType
Source§type Checker = GenericValueTypeChecker<WindowType>
type Checker = GenericValueTypeChecker<WindowType>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for WindowType
impl HasParamSpec for WindowType
type ParamSpec = ParamSpecEnum
Source§type SetValue = WindowType
type SetValue = WindowType
type BuilderFn = fn(&str, WindowType) -> ParamSpecEnumBuilder<'_, WindowType>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for WindowType
impl Hash for WindowType
Source§impl Ord for WindowType
impl Ord for WindowType
Source§fn cmp(&self, other: &WindowType) -> Ordering
fn cmp(&self, other: &WindowType) -> 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 WindowType
impl PartialEq for WindowType
Source§impl PartialOrd for WindowType
impl PartialOrd for WindowType
Source§impl StaticType for WindowType
impl StaticType for WindowType
Source§fn static_type() -> Type
fn static_type() -> Type
Self.impl StructuralPartialEq for WindowType
Source§impl ToValue for WindowType
impl ToValue for WindowType
Source§impl ValueType for WindowType
impl ValueType for WindowType
Source§type Type = WindowType
type Type = WindowType
Type from. Read moreAuto Trait Implementations§
impl Freeze for WindowType
impl RefUnwindSafe for WindowType
impl Send for WindowType
impl Sync for WindowType
impl Unpin for WindowType
impl UnsafeUnpin for WindowType
impl UnwindSafe for WindowType
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.