Package ch.bailu.gtk.gtk
Klasse Accessible
- Alle implementierten Schnittstellen:
PointerInterface
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
- “attributes”, 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.
Every accessible implementation is part of a tree of accessible objects.
Normally, this tree corresponds to the widget tree, but can be customized
by reimplementing the [vfunc@Gtk.Accessible.get_accessible_parent],
[vfunc@Gtk.Accessible.get_first_accessible_child] and
[vfunc@Gtk.Accessible.get_next_accessible_sibling] virtual functions.
Note that you can not create a top-level accessible object as of now,
which means that you must always have a parent accessible object.
Also note that when an accessible object does not correspond to a widget,
and it has children, whose implementation you don't control,
it is necessary to ensure the correct shape of the a11y tree
by calling [method@Gtk.Accessible.set_accessible_parent] and
updating the sibling by [method@Gtk.Accessible.update_next_accessible_sibling].
Every accessible implementation has:
- a “role”, represented by a value of the [enum@Gtk.AccessibleRole] enumeration
- “attributes”, 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.
Every accessible implementation is part of a tree of accessible objects.
Normally, this tree corresponds to the widget tree, but can be customized
by reimplementing the [vfunc@Gtk.Accessible.get_accessible_parent],
[vfunc@Gtk.Accessible.get_first_accessible_child] and
[vfunc@Gtk.Accessible.get_next_accessible_sibling] virtual functions.
Note that you can not create a top-level accessible object as of now,
which means that you must always have a parent accessible object.
Also note that when an accessible object does not correspond to a widget,
and it has children, whose implementation you don't control,
it is necessary to ensure the correct shape of the a11y tree
by calling [method@Gtk.Accessible.set_accessible_parent] and
updating the sibling by [method@Gtk.Accessible.update_next_accessible_sibling].
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify -
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidRequests the user's screen reader to announce the given message.voidRequests the user's screen reader to announce the given message.Retrieves the accessible parent for an accessible object.intRetrieves the accessible role of an accessible object.Retrieves the implementation for the given accessible object.booleanQueries the coordinates and dimensions of this accessible
This functionality can be overridden by `GtkAccessible`
implementations, e.g. to get the bounds from an ignored
child widget.static ClassHandlerRetrieves the first accessible child of an accessible object.static intRetrieves the next accessible sibling of an accessible objectstatic longstatic TypeSystem.TypeSizebooleangetPlatformState(int state) Queries a platform state, such as focus.static longstatic TypeSystem.TypeSizevoidresetProperty(int property) Resets the accessible property to its default value.voidresetRelation(int relation) Resets the accessible relation to its default value.voidresetState(int state) Resets the accessible state to its default value.voidsetAccessibleParent(Accessible parent, Accessible next_sibling) Sets the parent and sibling of an accessible object.voidupdateNextAccessibleSibling(Accessible new_sibling) Updates the next accessible sibling.voidupdatePlatformState(int state) Informs ATs that the platform state has changed.voidupdateProperty(int first_property, Object... _ellipsis) Updates a list of accessible properties.voidupdateRelation(int first_relation, Object... _ellipsis) Updates a list of accessible relations.voidupdateState(int first_state, Object... _ellipsis) Updates a list of accessible states.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrPropertyVon Klasse geerbte Methoden 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, weakUnrefVon Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
Accessible
-
-
Methodendetails
-
getClassHandler
-
announce
Requests the user's screen reader to announce the given message.
This kind of notification is useful for messages that
either have only a visual representation or that are not
exposed visually at all, e.g. a notification about a
successful operation.
Also, by using this API, you can ensure that the message
does not interrupts the user's current screen reader output.- Parameter:
message- the string to announcepriority- the priority of the announcement
-
announce
Requests the user's screen reader to announce the given message.
This kind of notification is useful for messages that
either have only a visual representation or that are not
exposed visually at all, e.g. a notification about a
successful operation.
Also, by using this API, you can ensure that the message
does not interrupts the user's current screen reader output.- Parameter:
message- the string to announcepriority- the priority of the announcement
-
getAccessibleParent
Retrieves the accessible parent for an accessible object.
This function returns `NULL` for top level widgets.- Gibt zurück:
- the accessible parent
-
getAccessibleRole
public int getAccessibleRole()Retrieves the accessible role of an accessible object.- Gibt zurück:
- the accessible role
-
getAtContext
Retrieves the implementation for the given accessible object.- Gibt zurück:
- the accessible implementation object
-
getBounds
Queries the coordinates and dimensions of this accessible
This functionality can be overridden by `GtkAccessible`
implementations, e.g. to get the bounds from an ignored
child widget.- Parameter:
x- the x coordinate of the top left corner of the accessibley- the y coordinate of the top left corner of the widgetwidth- the width of the accessible objectheight- the height of the accessible object- Gibt zurück:
- true if the bounds are valid, and false otherwise
-
getFirstAccessibleChild
Retrieves the first accessible child of an accessible object.- Gibt zurück:
- the first accessible child
-
getNextAccessibleSibling
Retrieves the next accessible sibling of an accessible object- Gibt zurück:
- the next accessible sibling
-
getPlatformState
public boolean getPlatformState(int state) Queries a platform state, such as focus.
This functionality can be overridden by `GtkAccessible`
implementations, e.g. to get platform state from an ignored
child widget, as is the case for `GtkText` wrappers.- Parameter:
state- platform state to query- Gibt zurück:
- the value of state for the accessible
-
resetProperty
public void resetProperty(int property) Resets the accessible property to its default value.- Parameter:
property- the accessible property
-
resetRelation
public void resetRelation(int relation) Resets the accessible relation to its default value.- Parameter:
relation- the accessible relation
-
resetState
public void resetState(int state) Resets the accessible state to its default value.- Parameter:
state- the accessible state
-
setAccessibleParent
Sets the parent and sibling of an accessible object.
This function is meant to be used by accessible implementations that are
not part of the widget hierarchy, and but act as a logical bridge between
widgets. For instance, if a widget creates an object that holds metadata
for each child, and you want that object to implement the `GtkAccessible`
interface, you will use this function to ensure that the parent of each
child widget is the metadata object, and the parent of each metadata
object is the container widget.- Parameter:
parent- the parent accessible objectnext_sibling- the sibling accessible object
-
updateNextAccessibleSibling
Updates the next accessible sibling.
That might be useful when a new child of a custom accessible
is created, and it needs to be linked to a previous child.- Parameter:
new_sibling- the new next accessible sibling to set
-
updatePlatformState
public void updatePlatformState(int state) Informs ATs that the platform state has changed.
This function should be used by `GtkAccessible` implementations that
have a platform state but are not widgets. Widgets handle platform
states automatically.- Parameter:
state- the platform state to update
-
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);
```- Parameter:
first_property- the first accessible property_ellipsis- 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);
```- Parameter:
first_relation- the first accessible relation_ellipsis- 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);
```- Parameter:
first_state- the first accessible state_ellipsis- 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()
-