Klasse ApplicationWindow

Alle implementierten Schnittstellen:
PointerInterface

public class ApplicationWindow extends ApplicationWindow
A freeform application window.

<picture>
<source srcset="application-window-dark.png" media="(prefers-color-scheme: dark)">
<img src="application-window.png" alt="application-window">
</picture>

`AdwApplicationWindow` is a [class@Gtk.ApplicationWindow] subclass providing
the same features as [class@Window].

See [class@Window] for details.

Example of an `AdwApplicationWindow` UI definition:

```xml
<object class="AdwApplicationWindow">
<property name="content">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar"/>
</child>
<property name="content">
<!-- ... -->
</property>
</object>
</property>
</object>
```

Using [property@Gtk.Application:menubar] is not supported and may result in
visual glitches.

https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.ApplicationWindow.html

  • Konstruktordetails

    • ApplicationWindow

      public ApplicationWindow(PointerContainer pointer)
    • ApplicationWindow

      public ApplicationWindow(@Nonnull Application app)
      Creates a new `AdwApplicationWindow` for @app.
      Parameter:
      app - an application instance
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • addBreakpoint

      public void addBreakpoint(@Nonnull Breakpoint breakpoint)
      Adds @breakpoint to @self.
      Parameter:
      breakpoint - the breakpoint to add
    • getAdaptivePreview

      public boolean getAdaptivePreview()
      Gets whether adaptive preview for @self is currently open.
      Gibt zurück:
      whether adaptive preview is open.
    • getContent

      public Widget getContent()
      Gets the content widget of @self.

      This method should always be used instead of [method@Gtk.Window.get_child].
      Gibt zurück:
      the content widget of @self
    • getCurrentBreakpoint

      public Breakpoint getCurrentBreakpoint()
      Gets the current breakpoint.
      Gibt zurück:
      the current breakpoint
    • getDialogs

      public ListModel getDialogs()
      Returns a [iface@Gio.ListModel] that contains the open dialogs of @self.

      This can be used to keep an up-to-date view.
      Gibt zurück:
      a list model for the dialogs of @self
    • getVisibleDialog

      public Dialog getVisibleDialog()
      Returns the currently visible dialog in @self, if there's one.
      Gibt zurück:
      the visible dialog
    • setAdaptivePreview

      public void setAdaptivePreview(boolean adaptive_preview)
      Sets whether adaptive preview for @self is currently open.

      Adaptive preview is a debugging tool used for testing the window
      contents at specific screen sizes, simulating mobile environment.

      Adaptive preview can always be accessed from inspector. This function
      allows applications to open it manually.

      Most applications should not use this function.
      Parameter:
      adaptive_preview - whether to open adaptive preview
    • setContent

      public void setContent(@Nullable Widget content)
      Sets the content widget of @self.

      This method should always be used instead of [method@Gtk.Window.set_child].
      Parameter:
      content - the content widget
    • asActionGroup

      public ActionGroup asActionGroup()
      Implements interface ActionGroup. Call this to get access to interface functions.
      Setzt außer Kraft:
      asActionGroup in Klasse ApplicationWindow
      Gibt zurück:
      ActionGroup
    • asActionMap

      public ActionMap asActionMap()
      Implements interface ActionMap. Call this to get access to interface functions.
      Setzt außer Kraft:
      asActionMap in Klasse ApplicationWindow
      Gibt zurück:
      ActionMap
    • asAccessible

      public Accessible asAccessible()
      Implements interface Accessible. Call this to get access to interface functions.
      Setzt außer Kraft:
      asAccessible in Klasse ApplicationWindow
      Gibt zurück:
      Accessible
    • asBuildable

      public Buildable asBuildable()
      Implements interface Buildable. Call this to get access to interface functions.
      Setzt außer Kraft:
      asBuildable in Klasse ApplicationWindow
      Gibt zurück:
      Buildable
    • asConstraintTarget

      public ConstraintTarget asConstraintTarget()
      Implements interface ConstraintTarget. Call this to get access to interface functions.
      Setzt außer Kraft:
      asConstraintTarget in Klasse ApplicationWindow
      Gibt zurück:
      ConstraintTarget
    • asNative

      public Native asNative()
      Implements interface Native. Call this to get access to interface functions.
      Setzt außer Kraft:
      asNative in Klasse ApplicationWindow
      Gibt zurück:
      Native
    • asRoot

      public Root asRoot()
      Implements interface Root. Call this to get access to interface functions.
      Setzt außer Kraft:
      asRoot in Klasse ApplicationWindow
      Gibt zurück:
      Root
    • asShortcutManager

      public ShortcutManager asShortcutManager()
      Implements interface ShortcutManager. Call this to get access to interface functions.
      Setzt außer Kraft:
      asShortcutManager in Klasse ApplicationWindow
      Gibt zurück:
      ShortcutManager
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()