Interface Toplevel.Builder<B extends Builder<B>>

All Superinterfaces:
BuilderInterface
Enclosing interface:
Toplevel

public static interface Toplevel.Builder<B extends Builder<B>> extends BuilderInterface
  • Method Details

    • setDecorated

      default B setDecorated(boolean decorated)
      Whether the window manager should add decorations.
      Parameters:
      decorated - the value for the decorated property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setDeletable

      default B setDeletable(boolean deletable)
      Whether the window manager should allow to close the surface.
      Parameters:
      deletable - the value for the deletable property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setFullscreenMode

      default B setFullscreenMode(FullscreenMode fullscreenMode)
      The fullscreen mode of the surface.
      Parameters:
      fullscreenMode - the value for the fullscreen-mode property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setGravity

      default B setGravity(Gravity gravity)

      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_EAST means 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(SurfaceEdge, Device, int, double, double, int).

      Parameters:
      gravity - the value for the gravity property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.20
    • setIconList

      default B setIconList(MemorySegment iconList)
      A list of textures to use as icon.
      Parameters:
      iconList - the value for the icon-list property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setModal

      default B setModal(boolean modal)
      Whether the surface is modal.
      Parameters:
      modal - the value for the modal property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setStartupId

      default B setStartupId(String startupId)

      The startup ID of the surface.

      See AppLaunchContext for more information about startup feedback.

      Parameters:
      startupId - the value for the startup-id property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTitle

      default B setTitle(String title)
      The title of the surface.
      Parameters:
      title - the value for the title property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTransientFor

      default B setTransientFor(Surface transientFor)
      The transient parent of the surface.
      Parameters:
      transientFor - the value for the transient-for property
      Returns:
      the Builder instance is returned, to allow method chaining