Package org.gnome.gdk
Interface Toplevel.Builder<B extends Builder<B>>
-
Method Summary
Modifier and TypeMethodDescriptiondefault BsetDecorated(boolean decorated) Whether the window manager should add decorations.default BsetDeletable(boolean deletable) Whether the window manager should allow to close the surface.default BsetFullscreenMode(FullscreenMode fullscreenMode) The fullscreen mode of the surface.default BsetGravity(Gravity gravity) The gravity to use when resizing a surface programmatically.default BsetIconList(MemorySegment iconList) A list of textures to use as icon.default BsetModal(boolean modal) Whether the surface is modal.default BsetStartupId(String startupId) The startup ID of the surface.default BThe title of the surface.default BsetTransientFor(Surface transientFor) The transient parent of the surface.Methods inherited from interface org.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArena
-
Method Details
-
setDecorated
Whether the window manager should add decorations.- Parameters:
decorated- the value for thedecoratedproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setDeletable
Whether the window manager should allow to close the surface.- Parameters:
deletable- the value for thedeletableproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setFullscreenMode
The fullscreen mode of the surface.- Parameters:
fullscreenMode- the value for thefullscreen-modeproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setGravity
The gravity to use when resizing a surface programmatically.Gravity describes which point of the surface we want to keep fixed (meaning that the surface will grow in the opposite direction). For example, a gravity of
GDK_GRAVITY_NORTH_EASTmeans that we want to fix top right corner of the surface.This property is just a hint that may affect the result when negotiating toplevel sizes with the windowing system. It does not affect interactive resizes started with
Toplevel.beginResize(org.gnome.gdk.SurfaceEdge, org.gnome.gdk.Device, int, double, double, int).- Parameters:
gravity- the value for thegravityproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.20
-
setIconList
A list of textures to use as icon.- Parameters:
iconList- the value for theicon-listproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setModal
Whether the surface is modal.- Parameters:
modal- the value for themodalproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setStartupId
The startup ID of the surface.See
AppLaunchContextfor more information about startup feedback.- Parameters:
startupId- the value for thestartup-idproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setTitle
-
setTransientFor
-