St.GenericAccessible
Description: Reference for St.GenericAccessible

### Class

# StGenericAccessible

#### Description [src]

    final class St.GenericAccessible : St.WidgetAccessible
      implements Atk.Component, Atk.Value {
      /* No available fields */
    }

An accessible class with signals for implementing specific Atk interfaces

`StGenericAccessible` is mainly a workaround for the current lack of of a proper support for GValue at javascript. See bug#703412 for more information. We implement the accessible interfaces, but proxy the virtual functions into signals, which gjs can catch.

`StGenericAccessible` is an `StWidgetAccessible`.

#### Ancestors

- StWidgetAccessible
- ClutterActorAccessible
- AtkGObjectAccessible
- AtkObject
- GObject

#### Implements

- AtkComponent
- AtkValue

#### Constructors

###### st_generic_accessible_new_for_actor

Create a new `StGenericAccessible` for `actor`.

#### Instance methods

##### Methods inherited from AtkGObjectAccessible (1)

###### atk_gobject_accessible_get_object

Gets the GObject for which `obj` is the accessible object.

##### Methods inherited from AtkObject (28)

Please see AtkObject for a full list of methods.

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

##### Methods inherited from AtkComponent (16)

###### atk_component_add_focus_handler

Add the specified handler to the set of functions to be called when this object receives focus events (in or out). If the handler is already added it is not added again.

###### atk_component_contains

Checks whether the specified point is within the extent of the `component`.

###### atk_component_get_alpha

Returns the alpha value (i.e. the opacity) for this `component`, on a scale from 0 (fully transparent) to 1.0 (fully opaque).

###### atk_component_get_extents

Gets the rectangle which gives the extent of the `component`.

###### atk_component_get_layer

Gets the layer of the component.

###### atk_component_get_mdi_zorder

Gets the zorder of the component. The value G_MININT will be returned if the layer of the component is not ATK_LAYER_MDI or ATK_LAYER_WINDOW.

###### atk_component_get_position

Gets the position of `component` in the form of a point specifying `component`‘s top-left corner.

###### atk_component_get_size

Gets the size of the `component` in terms of width and height.

###### atk_component_grab_focus

Grabs focus for this `component`.

###### atk_component_ref_accessible_at_point

Gets a reference to the accessible child, if one exists, at the coordinate point specified by `x` and `y`.

###### atk_component_remove_focus_handler

Remove the handler specified by `handler_id` from the list of functions to be executed when this object receives focus events (in or out).

###### atk_component_scroll_to

Makes `component` visible on the screen by scrolling all necessary parents.

###### atk_component_scroll_to_point

Move the top-left of `component` to a given position of the screen by scrolling all necessary parents.

###### atk_component_set_extents

Sets the extents of `component`.

###### atk_component_set_position

Sets the position of `component`.

###### atk_component_set_size

Set the size of the `component` in terms of width and height.

##### Methods inherited from AtkValue (10)

###### atk_value_get_current_value

Gets the value of this object.

###### atk_value_get_increment

Gets the minimum increment by which the value of this object may be changed. If zero, the minimum increment is undefined, which may mean that it is limited only by the floating point precision of the platform.

###### atk_value_get_maximum_value

Gets the maximum value of this object.

###### atk_value_get_minimum_increment

Gets the minimum increment by which the value of this object may be changed. If zero, the minimum increment is undefined, which may mean that it is limited only by the floating point precision of the platform.

###### atk_value_get_minimum_value

Gets the minimum value of this object.

###### atk_value_get_range

Gets the range of this object.

###### atk_value_get_sub_ranges

Gets the list of subranges defined for this object. See `AtkValue` introduction for examples of subranges and when to expose them.

###### atk_value_get_value_and_text

Gets the current value and the human readable text alternative of `obj`. `text` is a newly created string, that must be freed by the caller. Can be NULL if no descriptor is available.

###### atk_value_set_current_value

Sets the value of this object.

###### atk_value_set_value

Sets the value of this object.

#### Properties

##### Properties inherited from AtkObject (17)

###### Atk.Object:accessible-component-layer

No description available.

###### Atk.Object:accessible-component-mdi-zorder

No description available.

###### Atk.Object:accessible-description

No description available.

###### Atk.Object:accessible-help-text

No description available.

###### Atk.Object:accessible-hypertext-nlinks

No description available.

###### Atk.Object:accessible-id

No description available.

###### Atk.Object:accessible-name

No description available.

###### Atk.Object:accessible-parent

No description available.

###### Atk.Object:accessible-role

No description available.

###### Atk.Object:accessible-table-caption

Table caption.

###### Atk.Object:accessible-table-caption-object

No description available.

###### Atk.Object:accessible-table-column-description

Accessible table column description.

###### Atk.Object:accessible-table-column-header

Accessible table column header.

###### Atk.Object:accessible-table-row-description

Accessible table row description.

###### Atk.Object:accessible-table-row-header

Accessible table row header.

###### Atk.Object:accessible-table-summary

No description available.

###### Atk.Object:accessible-value

Numeric value of this object, in case being and AtkValue.

#### Signals

###### St.GenericAccessible::get-current-value

Emitted when `atk_value_get_current_value()` is called on `self`. Right now we only care about doubles, so the value is directly returned by the signal.

###### St.GenericAccessible::get-maximum-value

Emitted when `atk_value_get_maximum_value()` is called on `self`. Right now we only care about doubles, so the value is directly returned by the signal.

###### St.GenericAccessible::get-minimum-increment

Emitted when `atk_value_get_minimum_increment()` is called on `self`. Right now we only care about doubles, so the value is directly returned by the signal.

###### St.GenericAccessible::get-minimum-value

Emitted when `atk_value_get_current_value()` is called on `self`. Right now we only care about doubles, so the value is directly returned by the signal.

###### St.GenericAccessible::set-current-value

Emitted when `atk_value_set_current_value()` is called on `self`. Right now we only care about doubles, so the value is directly returned by the signal.

##### Signals inherited from AtkObject (9)

###### AtkObject::active-descendant-changed

The “active-descendant-changed” signal is emitted by an object which has the state ATK_STATE_MANAGES_DESCENDANTS when the focus object in the object changes. For instance, a table will emit the signal when the cell in the table which has focus changes.

###### AtkObject::announcement

The “announcement” signal can be emitted to pass an announcement on to be read by a screen reader.

###### AtkObject::attribute-changed

The “attribute-changed” signal should be emitted when one of an object’s attributes changes.

###### AtkObject::children-changed

The signal “children-changed” is emitted when a child is added or removed from an object. It supports two details: “add” and “remove”.

###### AtkObject::focus-event

The signal “focus-event” is emitted when an object gained or lost focus.

###### AtkObject::notification

The “notification” signal can be emitted to pass an announcement on to be read by a screen reader.

###### AtkObject::property-change

The signal “property-change” is emitted when an object’s property value changes. `arg1` contains an `AtkPropertyValues` with the name and the new value of the property whose value has changed. Note that, as with GObject notify, getting this signal does not guarantee that the value of the property has actually changed; it may also be emitted when the setter of the property is called to reinstate the previous value.

###### AtkObject::state-change

The “state-change” signal is emitted when an object’s state changes. The detail value identifies the state type which has changed.

###### AtkObject::visible-data-changed

The “visible-data-changed” signal is emitted when the visual appearance of the object changed.

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

##### Signals inherited from AtkComponent (1)

###### AtkComponent::bounds-changed

The ‘bounds-changed” signal is emitted when the position or size of the component changes.

##### Signals inherited from AtkValue (1)

###### AtkValue::value-changed

The ‘value-changed’ signal is emitted when the current value that represent the object changes. `value` is the numerical representation of this new value. `text` is the human readable text alternative of `value`, and can be NULL if it is not available. Note that if there is a textual description associated with the new numeric value, that description should be included regardless of whether or not it has also changed.

#### Class structure

    struct StGenericAccessibleClass {
      StWidgetAccessibleClass parent_class;

    }

No description available.

###### Class members

`parent_class: StWidgetAccessibleClass`

  No description available.