Klasse ClampScrollable

Alle implementierten Schnittstellen:
PointerInterface

public class ClampScrollable extends Widget
A scrollable [class@Clamp].

`AdwClampScrollable` is a variant of [class@Clamp] that implements the
[iface@Gtk.Scrollable] interface.

The primary use case for `AdwClampScrollable` is clamping
[class@Gtk.ListView].

See also: [class@ClampLayout].

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

  • Konstruktordetails

    • ClampScrollable

      public ClampScrollable(PointerContainer pointer)
    • ClampScrollable

      public ClampScrollable()
      Creates a new `AdwClampScrollable`.
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getChild

      public Widget getChild()
      Gets the child widget of @self.
      Gibt zurück:
      the child widget of @self
    • getMaximumSize

      public int getMaximumSize()
      Gets the maximum size allocated to the child.
      Gibt zurück:
      the maximum size to allocate to the child
    • getTighteningThreshold

      public int getTighteningThreshold()
      Gets the size above which the child is clamped.
      Gibt zurück:
      the size above which the child is clamped
    • getUnit

      public int getUnit()
      Gets the length unit for maximum size and tightening threshold.
      Gibt zurück:
      the length unit
    • setChild

      public void setChild(@Nullable Widget child)
      Sets the child widget of @self.
      Parameter:
      child - the child widget
    • setMaximumSize

      public void setMaximumSize(int maximum_size)
      Sets the maximum size allocated to the child.

      It is the width if the clamp is horizontal, or the height if it is vertical.
      Parameter:
      maximum_size - the maximum size
    • setTighteningThreshold

      public void setTighteningThreshold(int tightening_threshold)
      Sets the size above which the child is clamped.

      Starting from this size, the clamp will tighten its grip on the child, slowly
      allocating less and less of the available size up to the maximum allocated
      size. Below that threshold and below the maximum width, the child will be
      allocated all the available size.

      If the threshold is greater than the maximum size to allocate to the child,
      the child will be allocated all the width up to the maximum. If the threshold
      is lower than the minimum size to allocate to the child, that size will be
      used as the tightening threshold.

      Effectively, tightening the grip on the child before it reaches its maximum
      size makes transitions to and from the maximum size smoother when resizing.
      Parameter:
      tightening_threshold - the tightening threshold
    • setUnit

      public void setUnit(int unit)
      Sets the length unit for maximum size and tightening threshold.

      Allows the sizes to vary depending on the text scale factor.
      Parameter:
      unit - the length unit
    • asAccessible

      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

      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

      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
    • asOrientable

      public Orientable asOrientable()
      Implements interface Orientable. Call this to get access to interface functions.
      Gibt zurück:
      Orientable
    • asScrollable

      public Scrollable asScrollable()
      Implements interface Scrollable. Call this to get access to interface functions.
      Gibt zurück:
      Scrollable
    • 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()