Klasse WindowTitle

Alle implementierten Schnittstellen:
PointerInterface

public class WindowTitle extends Widget
A helper widget for setting a window's title and subtitle.

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

`AdwWindowTitle` shows a title and subtitle. It's intended to be used as the
title child of [class@Gtk.HeaderBar] or [class@HeaderBar].

## CSS nodes

`AdwWindowTitle` has a single CSS node with name `windowtitle`.

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

  • Konstruktordetails Linksymbol

    • WindowTitle Linksymbol

      public WindowTitle(PointerContainer pointer)
    • WindowTitle Linksymbol

      public WindowTitle(@Nonnull Str title, @Nonnull Str subtitle)
      Creates a new `AdwWindowTitle`.
      Parameter:
      title - a title
      subtitle - a subtitle
    • WindowTitle Linksymbol

      public WindowTitle(String title, String subtitle)
      Creates a new `AdwWindowTitle`.
      Parameter:
      title - a title
      subtitle - a subtitle
  • Methodendetails Linksymbol

    • getClassHandler Linksymbol

      public static ClassHandler getClassHandler()
    • getSubtitle Linksymbol

      public Str getSubtitle()
      Gets the subtitle of @self.
      Gibt zurück:
      the subtitle
    • getTitle Linksymbol

      public Str getTitle()
      Gets the title of @self.
      Gibt zurück:
      the title
    • setSubtitle Linksymbol

      public void setSubtitle(@Nonnull Str subtitle)
      Sets the subtitle of @self.

      The subtitle should give the user additional details.
      Parameter:
      subtitle - a subtitle
    • setSubtitle Linksymbol

      public void setSubtitle(String subtitle)
      Sets the subtitle of @self.

      The subtitle should give the user additional details.
      Parameter:
      subtitle - a subtitle
    • setTitle Linksymbol

      public void setTitle(@Nonnull Str title)
      Sets the title of @self.

      The title typically identifies the current view or content item, and
      generally does not use the application name.
      Parameter:
      title - a title
    • setTitle Linksymbol

      public void setTitle(String title)
      Sets the title of @self.

      The title typically identifies the current view or content item, and
      generally does not use the application name.
      Parameter:
      title - a title
    • asAccessible Linksymbol

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

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

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

      public static long getTypeID()
    • getParentTypeID Linksymbol

      public static long getParentTypeID()
    • getTypeSize Linksymbol

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize Linksymbol

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize Linksymbol

      public static int getInstanceSize()