ToplevelT

A gdk.toplevel.Toplevel is a freestanding toplevel surface.

The gdk.toplevel.Toplevel interface provides useful APIs for interacting with the windowing system, such as controlling maximization and size of the surface, setting icons and transient parents for dialogs.

template ToplevelT () {}

Members

Functions

beginMove
void beginMove(gdk.device.Device device, int button, double x, double y, uint timestamp)

Begins an interactive move operation.

beginResize
void beginResize(gdk.types.SurfaceEdge edge, gdk.device.Device device, int button, double x, double y, uint timestamp)

Begins an interactive resize operation.

connectComputeSize
ulong connectComputeSize(T callback, Flag!"After" after)

Connect to ComputeSize signal.

focus
void focus(uint timestamp)

Sets keyboard focus to surface.

getState
gdk.types.ToplevelState getState()

Gets the bitwise or of the currently active surface state flags, from the gdk.types.ToplevelState enumeration.

inhibitSystemShortcuts
void inhibitSystemShortcuts(gdk.event.Event event)

Requests that the toplevel inhibit the system shortcuts.

lower
bool lower()

Asks to lower the toplevel below other windows.

minimize
bool minimize()

Asks to minimize the toplevel.

present
void present(gdk.toplevel_layout.ToplevelLayout layout)

Present toplevel after having processed the gdk.toplevel_layout.ToplevelLayout rules.

restoreSystemShortcuts
void restoreSystemShortcuts()

Restore default system keyboard shortcuts which were previously inhibited.

setDecorated
void setDecorated(bool decorated)

Sets the toplevel to be decorated.

setDeletable
void setDeletable(bool deletable)

Sets the toplevel to be deletable.

setIconList
void setIconList(gdk.texture.Texture[] surfaces)

Sets a list of icons for the surface.

setModal
void setModal(bool modal)

Sets the toplevel to be modal.

setStartupId
void setStartupId(string startupId)

Sets the startup notification ID.

setTitle
void setTitle(string title)

Sets the title of a toplevel surface.

setTransientFor
void setTransientFor(gdk.surface.Surface parent)

Sets a transient-for parent.

showWindowMenu
bool showWindowMenu(gdk.event.Event event)

Asks the windowing system to show the window menu.

supportsEdgeConstraints
bool supportsEdgeConstraints()

Returns whether the desktop environment supports tiled window states.

titlebarGesture
bool titlebarGesture(gdk.types.TitlebarGesture gesture)

Properties

decorated
bool decorated [@property getter]

Get decorated property.

decorated
bool decorated [@property setter]

Set decorated property.

deletable
bool deletable [@property getter]

Get deletable property.

deletable
bool deletable [@property setter]

Set deletable property.

fullscreenMode
gdk.types.FullscreenMode fullscreenMode [@property getter]

Get fullscreenMode property.

fullscreenMode
gdk.types.FullscreenMode fullscreenMode [@property setter]

Set fullscreenMode property.

iconList
void* iconList [@property getter]

Get iconList property.

iconList
void* iconList [@property setter]

Set iconList property.

modal
bool modal [@property getter]

Get modal property.

modal
bool modal [@property setter]

Set modal property.

shortcutsInhibited
bool shortcutsInhibited [@property getter]

Get shortcutsInhibited property.

startupId
string startupId [@property getter]

Get startupId property.

startupId
string startupId [@property setter]

Set startupId property.

state
gdk.types.ToplevelState state [@property getter]

Get state property.

title
string title [@property getter]

Get title property.

title
string title [@property setter]

Set title property.

transientFor
gdk.surface.Surface transientFor [@property getter]

Get transientFor property.

transientFor
gdk.surface.Surface transientFor [@property setter]

Set transientFor property.