Class Accessible

All Implemented Interfaces:
PointerInterface

public class Accessible extends Interface
`GtkAccessible` is an interface for describing UI elements for
Assistive Technologies.

Every accessible implementation has:

- a “role”, represented by a value of the [enum@Gtk.AccessibleRole] enumeration
- an “attribute”, represented by a set of [enum@Gtk.AccessibleState],
[enum@Gtk.AccessibleProperty] and [enum@Gtk.AccessibleRelation] values

The role cannot be changed after instantiating a `GtkAccessible`
implementation.

The attributes are updated every time a UI element's state changes in
a way that should be reflected by assistive technologies. For instance,
if a `GtkWidget` visibility changes, the %GTK_ACCESSIBLE_STATE_HIDDEN
state will also change to reflect the [property@Gtk.Widget:visible] property.

https://docs.gtk.org/gtk4/iface.Accessible.html

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getAccessibleRole

      public int getAccessibleRole()
      Retrieves the `GtkAccessibleRole` for the given `GtkAccessible`.
      Returns:
      a `GtkAccessibleRole`
    • resetProperty

      public void resetProperty(int property)
      Resets the accessible @property to its default value.
      Parameters:
      property - a `GtkAccessibleProperty`
    • resetRelation

      public void resetRelation(int relation)
      Resets the accessible @relation to its default value.
      Parameters:
      relation - a `GtkAccessibleRelation`
    • resetState

      public void resetState(int state)
      Resets the accessible @state to its default value.
      Parameters:
      state - a `GtkAccessibleState`
    • updateProperty

      public void updateProperty(int first_property, Object... _elipse)
      Updates a list of accessible properties.

      See the [enum@Gtk.AccessibleProperty] documentation for the
      value types of accessible properties.

      This function should be called by `GtkWidget` types whenever
      an accessible property change must be communicated to assistive
      technologies.

      Example:
      ```c
      value = gtk_adjustment_get_value (adjustment);
      gtk_accessible_update_property (GTK_ACCESSIBLE (spin_button),
      GTK_ACCESSIBLE_PROPERTY_VALUE_NOW, value,
      -1);
      ```
      Parameters:
      first_property - the first `GtkAccessibleProperty`
      _elipse - a list of property and value pairs, terminated by -1
    • updateRelation

      public void updateRelation(int first_relation, Object... _elipse)
      Updates a list of accessible relations.

      This function should be called by `GtkWidget` types whenever an accessible
      relation change must be communicated to assistive technologies.

      If the [enum@Gtk.AccessibleRelation] requires a list of references,
      you should pass each reference individually, followed by %NULL, e.g.

      ```c
      gtk_accessible_update_relation (accessible,
      GTK_ACCESSIBLE_RELATION_CONTROLS,
      ref1, NULL,
      GTK_ACCESSIBLE_RELATION_LABELLED_BY,
      ref1, ref2, ref3, NULL,
      -1);
      ```
      Parameters:
      first_relation - the first `GtkAccessibleRelation`
      _elipse - a list of relation and value pairs, terminated by -1
    • updateState

      public void updateState(int first_state, Object... _elipse)
      Updates a list of accessible states. See the [enum@Gtk.AccessibleState]
      documentation for the value types of accessible states.

      This function should be called by `GtkWidget` types whenever an accessible
      state change must be communicated to assistive technologies.

      Example:
      ```c
      value = GTK_ACCESSIBLE_TRISTATE_MIXED;
      gtk_accessible_update_state (GTK_ACCESSIBLE (check_button),
      GTK_ACCESSIBLE_STATE_CHECKED, value,
      -1);
      ```
      Parameters:
      first_state - the first `GtkAccessibleState`
      _elipse - a list of state and value pairs, terminated by -1
    • 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()