Struct gdk4::ToplevelLayout [−][src]
pub struct ToplevelLayout(_);
Expand description
The ToplevelLayout
struct contains information that
is necessary to present a sovereign window on screen.
The ToplevelLayout
struct is necessary for using
ToplevelExt::present()
.
Toplevel surfaces are sovereign windows that can be presented to the user in various states (maximized, on all workspaces, etc).
Implementations
Create a toplevel layout description.
Used together with ToplevelExt::present()
to describe
how a toplevel surface should be placed and behave on-screen.
The size is in ”application pixels”, not
”device pixels” (see SurfaceExt::scale_factor()
).
Returns
newly created instance of ToplevelLayout
If the layout specifies whether to the toplevel should go fullscreen,
the value pointed to by fullscreen
is set to true
if it should go
fullscreen, or false
, if it should go unfullscreen.
Returns
whether the self
specifies the fullscreen state for the toplevel
fullscreen
location to store whether the toplevel should be fullscreen
Returns the monitor that the layout is fullscreening the surface on.
Returns
the monitor on which self
fullscreens
If the layout specifies whether to the toplevel should go maximized,
the value pointed to by maximized
is set to true
if it should go
fullscreen, or false
, if it should go unmaximized.
Returns
whether the self
specifies the maximized state for the toplevel
maximized
set to true
if the toplevel should be maximized
Sets whether the layout should cause the surface to be fullscreen when presented.
fullscreen
true
to fullscreen the surface
monitor
the monitor to fullscreen on
Trait Implementations
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 ToplevelLayout
impl !Send for ToplevelLayout
impl !Sync for ToplevelLayout
impl Unpin for ToplevelLayout
impl UnwindSafe for ToplevelLayout
Blanket Implementations
Mutably borrows from an owned value. Read more