gdk.toplevel
Module for [Toplevel] interface
Types 2
interfaceToplevel
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.
Methods
bool decorated() @propertyGet `decorated` property. Returns: Whether the window manager should add decorations.void decorated(bool propval) @propertySet `decorated` property. Params: propval = Whether the window manager should add decorations.bool deletable() @propertyGet `deletable` property. Returns: Whether the window manager should allow to close the surface.void deletable(bool propval) @propertySet `deletable` property. Params: propval = Whether the window manager should allow to close the surface.gdk.types.FullscreenMode fullscreenMode() @propertyGet `fullscreenMode` property. Returns: The fullscreen mode of the surface.void fullscreenMode(gdk.types.FullscreenMode propval) @propertySet `fullscreenMode` property. Params: propval = The fullscreen mode of the surface.void iconList(void * propval) @propertySet `iconList` property. Params: propval = A list of textures to use as icon.void modal(bool propval) @propertySet `modal` property. Params: propval = Whether the surface is modal.bool shortcutsInhibited() @propertyGet `shortcutsInhibited` property. Returns: Whether the surface should inhibit keyboard shortcuts.void startupId(string propval) @propertySet `startupId` property. Params: propval = The startup ID of the surface.void title(string propval) @propertySet `title` property. Params: propval = The title of the surface.gdk.surface.Surface transientFor() @propertyGet `transientFor` property. Returns: The transient parent of the surface.void transientFor(gdk.surface.Surface propval) @propertySet `transientFor` property. Params: propval = The transient parent of the surface.void beginMove(gdk.device.Device device, int button, double x, double y, uint timestamp)Begins an interactive move operation.void beginResize(gdk.types.SurfaceEdge edge, gdk.device.Device device, int button, double x, double y, uint timestamp)Begins an interactive resize operation.void focus(uint timestamp)Sets keyboard focus to surface.gdk.types.ToplevelState getState()Gets the bitwise or of the currently active surface state flags, from the [gdk.types.ToplevelState] enumeration. Returns: surface state bitfieldvoid inhibitSystemShortcuts(gdk.event.Event event = null)Requests that the toplevel inhibit the system shortcuts.bool lower()Asks to lower the toplevel below other windows.bool minimize()Asks to minimize the toplevel.void present(gdk.toplevel_layout.ToplevelLayout layout)Present toplevel after having processed the [gdk.toplevel_layout.ToplevelLayout] rules.void restoreSystemShortcuts()Restore default system keyboard shortcuts which were previously inhibited.void setDecorated(bool decorated)Sets the toplevel to be decorated.void setDeletable(bool deletable)Sets the toplevel to be deletable.void setIconList(gdk.texture.Texture[] surfaces)Sets a list of icons for the surface.void setModal(bool modal)Sets the toplevel to be modal.void setStartupId(string startupId)Sets the startup notification ID.void setTitle(string title)Sets the title of a toplevel surface.void setTransientFor(gdk.surface.Surface parent)Sets a transient-for parent.bool showWindowMenu(gdk.event.Event event)Asks the windowing system to show the window menu.bool supportsEdgeConstraints()Returns whether the desktop environment supports tiled window states. Returns: true if the desktop environment supports tiled window statesbool titlebarGesture(gdk.types.TitlebarGesture gesture)gulong connectComputeSize(T)(T callback, Flag!"After" after = No.After)Connect to `ComputeSize` signal.interfaceToplevelGidBuilderImpl(T)
Methods
T decorated(bool propval)Set `decorated` property. Params: propval = Whether the window manager should add decorations. Returns: Builder instance for fluent chainingT deletable(bool propval)Set `deletable` property. Params: propval = Whether the window manager should allow to close the surface. Returns: Builder instance for fluent chainingT fullscreenMode(gdk.types.FullscreenMode propval)Set `fullscreenMode` property. Params: propval = The fullscreen mode of the surface. Returns: Builder instance for fluent chainingT iconList(void * propval)Set `iconList` property. Params: propval = A list of textures to use as icon. Returns: Builder instance for fluent chainingT modal(bool propval)Set `modal` property. Params: propval = Whether the surface is modal. Returns: Builder instance for fluent chainingT startupId(string propval)Set `startupId` property. Params: propval = The startup ID of the surface.T title(string propval)Set `title` property. Params: propval = The title of the surface. Returns: Builder instance for fluent chainingT transientFor(gdk.surface.Surface propval)Set `transientFor` property. Params: propval = The transient parent of the surface. Returns: Builder instance for fluent chaining