Class: Atk::Object

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ nil

This function is called when implementing subclasses of Atk::Object. It does initialization required for the new object. It is intended that this function should called only in the …_new() functions used to create an instance of a subclass of Atk::Object

Parameters:

  • data (GObject)

    a #gpointer which identifies the object for which the AtkObject was created.

Instance Method Details

#accessible_component_layerInteger

Returns accessible-component-layer.

Returns:

  • (Integer)

    accessible-component-layer

#accessible_component_layer=(accessible_component_layer) ⇒ Integer

Parameters:

  • accessible_component_layer (Integer)

Returns:

  • (Integer)

    accessible-component-layer

  • (Integer)

    accessible-component-layer

#accessible_component_mdi_zorderInteger

Returns accessible-component-mdi-zorder.

Returns:

  • (Integer)

    accessible-component-mdi-zorder

#accessible_component_mdi_zorder=(accessible_component_mdi_zorder) ⇒ Integer

Parameters:

  • accessible_component_mdi_zorder (Integer)

Returns:

  • (Integer)

    accessible-component-mdi-zorder

  • (Integer)

    accessible-component-mdi-zorder

#accessible_descriptionString

Returns accessible-description.

Returns:

  • (String)

    accessible-description

#accessible_description=(accessible_description) ⇒ String

Parameters:

  • accessible_description (String)

Returns:

  • (String)

    accessible-description

  • (String)

    accessible-description

Returns accessible-hypertext-nlinks.

Returns:

  • (Integer)

    accessible-hypertext-nlinks

#accessible_hypertext_nlinks=(accessible_hypertext_nlinks) ⇒ Integer

Parameters:

  • accessible_hypertext_nlinks (Integer)

Returns:

  • (Integer)

    accessible-hypertext-nlinks

  • (Integer)

    accessible-hypertext-nlinks

#accessible_idString

Gets the accessible id of the accessible. NULL if no such string was set.

Returns:

  • (String)

    a character string representing the accessible id of the object, or

#accessible_id=(name) ⇒ nil

Sets the accessible ID of the accessible. This is not meant to be presented to the user, but to be an ID which is stable over application development. Typically, this is the gtkbuilder ID. Such an ID will be available for instance to identify a given well-known accessible object for tailored screen reading, or for automatic regression testing.

Parameters:

  • name (String)

    a character string to be set as the accessible id

Returns:

  • (nil)

#accessible_nameString

Returns accessible-name.

Returns:

  • (String)

    accessible-name

#accessible_name=(accessible_name) ⇒ String

Parameters:

  • accessible_name (String)

Returns:

  • (String)

    accessible-name

  • (String)

    accessible-name

#accessible_parentAtk::Object

Returns accessible-parent.

Returns:

#accessible_parent=(accessible_parent) ⇒ Atk::Object

Parameters:

Returns:

#accessible_roleAtk::Role

Returns accessible-role.

Returns:

#accessible_role=(accessible_role) ⇒ Atk::Role

Parameters:

Returns:

#accessible_table_captionString

Table caption.

Returns:

  • (String)

    accessible-table-caption

#accessible_table_caption=(accessible_table_caption) ⇒ String

Table caption.

Parameters:

  • accessible_table_caption (String)

Returns:

  • (String)

    accessible-table-caption

  • (String)

    accessible-table-caption

#accessible_table_caption_objectAtk::Object

Returns accessible-table-caption-object.

Returns:

#accessible_table_caption_object=(accessible_table_caption_object) ⇒ Atk::Object

Parameters:

Returns:

#accessible_table_column_descriptionString

Accessible table column description.

Returns:

  • (String)

    accessible-table-column-description

#accessible_table_column_description=(accessible_table_column_description) ⇒ String

Accessible table column description.

Parameters:

  • accessible_table_column_description (String)

Returns:

  • (String)

    accessible-table-column-description

  • (String)

    accessible-table-column-description

#accessible_table_column_headerAtk::Object

Accessible table column header.

Returns:

#accessible_table_column_header=(accessible_table_column_header) ⇒ Atk::Object

Accessible table column header.

Parameters:

Returns:

#accessible_table_row_descriptionString

Accessible table row description.

Returns:

  • (String)

    accessible-table-row-description

#accessible_table_row_description=(accessible_table_row_description) ⇒ String

Accessible table row description.

Parameters:

  • accessible_table_row_description (String)

Returns:

  • (String)

    accessible-table-row-description

  • (String)

    accessible-table-row-description

#accessible_table_row_headerAtk::Object

Accessible table row header.

Returns:

#accessible_table_row_header=(accessible_table_row_header) ⇒ Atk::Object

Accessible table row header.

Parameters:

Returns:

#accessible_table_summaryAtk::Object

Returns accessible-table-summary.

Returns:

#accessible_table_summary=(accessible_table_summary) ⇒ Atk::Object

Parameters:

Returns:

#accessible_valueFloat

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

Returns:

  • (Float)

    accessible-value

#accessible_value=(accessible_value) ⇒ Float

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

Parameters:

  • accessible_value (Float)

Returns:

  • (Float)

    accessible-value

  • (Float)

    accessible-value

#add_relationship(relationship, target) ⇒ TrueClass

Adds a relationship of the specified type with the specified target.

Parameters:

  • relationship (Atk::RelationType)

    The Atk::RelationType of the relation

  • target (Atk::Object)

    The Atk::Object which is to be the target of the relation.

Returns:

  • (TrueClass)

    TRUE if the relationship is added.

#attributesAtk::AttributeSet

Get a list of properties applied to this object as a whole, as an Atk::AttributeSet consisting of name-value pairs. As such these attributes may be considered weakly-typed properties or annotations, as distinct from strongly-typed object data available via other get/set methods. Not all objects have explicit “name-value pair” Atk::AttributeSet properties. explicit properties/annotations applied to the object, or an empty set if the object has no name-value pair attributes assigned to it. This #atkattributeset should be freed by a call to atk_attribute_set_free().

Returns:

  • (Atk::AttributeSet)

    an Atk::AttributeSet consisting of all

#connect_property_change_handler(handler) ⇒ Integer

Calls handler on property changes.

Parameters:

  • handler (Atk::PropertyChangeHandler)

    a function to be called when a property changes its value

Returns:

  • (Integer)

    a #guint which is the handler id used in atk_object_remove_property_change_handler()

#descriptionString

Gets the accessible description of the accessible. of the accessible.

Returns:

  • (String)

    a character string representing the accessible description

#description=(description) ⇒ nil

Sets the accessible description of the accessible. You can’t set the description to NULL. This is reserved for the initial value. In this aspect NULL is similar to ATK_ROLE_UNKNOWN. If you want to set the name to a empty value you can use “”.

Parameters:

  • description (String)

    a character string to be set as the accessible description

Returns:

  • (nil)

#index_in_parentInteger

Gets the 0-based index of this accessible in its parent; returns -1 if the accessible does not have an accessible parent.

Returns:

  • (Integer)

    an integer which is the index of the accessible in its parent

#layerAtk::Layer

Gets the layer of the accessible.

Returns:

  • (Atk::Layer)

    an Atk::Layer which is the layer of the accessible

#mdi_zorderInteger

Gets the zorder of the accessible. The value G_MININT will be returned if the layer of the accessible is not ATK_LAYER_MDI. which the component is shown in relation to other components in the same container.

Returns:

  • (Integer)

    a gint which is the zorder of the accessible, i.e. the depth at

#n_accessible_childrenInteger

Gets the number of accessible children of the accessible. of the accessible.

Returns:

  • (Integer)

    an integer representing the number of accessible children

#nameString

Gets the accessible name of the accessible.

Returns:

  • (String)

    a character string representing the accessible name of the object.

#name=(name) ⇒ nil

Sets the accessible name of the accessible. You can’t set the name to NULL. This is reserved for the initial value. In this aspect NULL is similar to ATK_ROLE_UNKNOWN. If you want to set the name to a empty value you can use “”.

Parameters:

  • name (String)

    a character string to be set as the accessible name

Returns:

  • (nil)

#notify_state_change(state, value) ⇒ nil

Emits a state-change signal for the specified state.

Note that as a general rule when the state of an existing object changes, emitting a notification is expected.

Parameters:

  • state (Atk::State)

    an Atk::State whose state is changed

  • value (TrueClass)

    a gboolean which indicates whether the state is being set on or off

Returns:

  • (nil)

#object_localeString

Gets a UTF-8 string indicating the POSIX-style LC_MESSAGES locale of accessible.

Returns:

  • (String)

    a UTF-8 string indicating the POSIX-style LC_MESSAGES locale of accessible.

#parentAtk::Object

Gets the accessible parent of the accessible. By default this is the one assigned with atk_object_set_parent(), but it is assumed that ATK implementors have ways to get the parent of the object without the need of assigning it manually with atk_object_set_parent(), and will return it with this method.

If you are only interested on the parent assigned with atk_object_set_parent(), use atk_object_peek_parent(). parent of the accessible

Returns:

  • (Atk::Object)

    an Atk::Object representing the accessible

#parent=(parent) ⇒ nil

Sets the accessible parent of the accessible. parent can be NULL.

Parameters:

  • parent (Atk::Object)

    an Atk::Object to be set as the accessible parent

Returns:

  • (nil)

#peek_parentAtk::Object

Gets the accessible parent of the accessible, if it has been manually assigned with atk_object_set_parent. Otherwise, this function returns nil.

This method is intended as an utility for ATK implementors, and not to be exposed to accessible tools. See atk_object_get_parent() for further reference. parent of the accessible if assigned

Returns:

  • (Atk::Object)

    an Atk::Object representing the accessible

#ref_accessible_child(i) ⇒ Atk::Object

Gets a reference to the specified accessible child of the object. The accessible children are 0-based so the first accessible child is at index 0, the second at index 1 and so on. accessible child of the accessible.

Parameters:

  • i (Integer)

    a gint representing the position of the child, starting from 0

Returns:

  • (Atk::Object)

    an Atk::Object representing the specified

#ref_relation_setAtk::RelationSet

Gets the Atk::RelationSet associated with the object. of the object.

Returns:

#ref_state_setAtk::StateSet

Gets a reference to the state set of the accessible; the caller must unreference it when it is no longer needed. set of the accessible

Returns:

  • (Atk::StateSet)

    a reference to an Atk::StateSet which is the state

#remove_property_change_handler(handler_id) ⇒ nil

Removes a property change handler.

Parameters:

  • handler_id (Integer)

    a guint which identifies the handler to be removed.

Returns:

  • (nil)

#remove_relationship(relationship, target) ⇒ TrueClass

Removes a relationship of the specified type with the specified target.

Parameters:

  • relationship (Atk::RelationType)

    The Atk::RelationType of the relation

  • target (Atk::Object)

    The Atk::Object which is the target of the relation to be removed.

Returns:

  • (TrueClass)

    TRUE if the relationship is removed.

#roleAtk::Role

Gets the role of the accessible.

Returns:

  • (Atk::Role)

    an Atk::Role which is the role of the accessible

#role=(role) ⇒ nil

Sets the role of the accessible.

Parameters:

  • role (Atk::Role)

    an Atk::Role to be set as the role

Returns:

  • (nil)