Package ch.bailu.gtk.gtk
Class Accessible
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.Interface
ch.bailu.gtk.gtk.Accessible
- All Implemented Interfaces:
PointerInterface
`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.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Field Summary
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves the `GtkAccessibleRole` for the given `GtkAccessible`.static ClassHandler
static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
void
resetProperty
(int property) Resets the accessible @property to its default value.void
resetRelation
(int relation) Resets the accessible @relation to its default value.void
resetState
(int state) Resets the accessible @state to its default value.void
updateProperty
(int first_property, Object... _elipse) Updates a list of accessible properties.void
updateRelation
(int first_relation, Object... _elipse) Updates a list of accessible relations.void
updateState
(int first_state, Object... _elipse) Updates a list of accessible states.Methods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
Accessible
-
-
Method Details
-
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
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
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
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
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-