ToplevelLayout

The gdk.toplevel_layout.ToplevelLayout struct contains information that is necessary to present a sovereign window on screen.

The gdk.toplevel_layout.ToplevelLayout struct is necessary for using gdk.toplevel.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()

Create a toplevel layout description.

Members

Functions

copy
gdk.toplevel_layout.ToplevelLayout copy()

Create a new gdk.toplevel_layout.ToplevelLayout and copy the contents of layout into it.

equal
bool equal(gdk.toplevel_layout.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
gdk.monitor.MonitorG 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.

setFullscreen
void setFullscreen(bool fullscreen, gdk.monitor.MonitorG 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.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.