ToplevelLayout

The GdkToplevelLayout struct contains information that is necessary to present a sovereign window on screen.

The GdkToplevelLayout struct is necessary for using [method@Gdk.Toplevel.present].

Toplevel surfaces are sovereign windows that can be presented to the user in various states (maximized, on all workspaces, etc).

Constructors

this
this(GdkToplevelLayout* gdkToplevelLayout, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Create a toplevel layout description.

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

doref
alias doref = ref_
Undocumented in source.

Functions

copy
ToplevelLayout copy()

Create a new #GdkToplevelLayout and copy the contents of @layout into it.

equal
bool equal(ToplevelLayout other)

Check whether @layout and @other has identical layout properties.

getFullscreen
bool getFullscreen(bool fullscreen)

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.

getFullscreenMonitor
MonitorGdk getFullscreenMonitor()

Returns the monitor that the layout is fullscreening the surface on.

getMaximized
bool getMaximized(bool maximized)

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.

getResizable
bool getResizable()

Returns whether the layout should allow the user to resize the surface.

getStruct
void* getStruct()

the main Gtk struct as a void*

getToplevelLayoutStruct
GdkToplevelLayout* getToplevelLayoutStruct(bool transferOwnership)

Get the main Gtk struct

ref_
ToplevelLayout ref_()

Increases the reference count of @layout.

setFullscreen
void setFullscreen(bool fullscreen, MonitorGdk monitor)

Sets whether the layout should cause the surface to be fullscreen when presented.

setMaximized
void setMaximized(bool maximized)

Sets whether the layout should cause the surface to be maximized when presented.

setResizable
void setResizable(bool resizable)

Sets whether the layout should allow the user to resize the surface after it has been presented.

unref
void unref()

Decreases the reference count of @layout.

Static functions

getType
GType getType()

Variables

gdkToplevelLayout
GdkToplevelLayout* gdkToplevelLayout;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta