Object
Object Hierarchy:
Atk.Object
Atk.Object
Atk.Object
GLib.Object
GLib.Object
GLib.Object->Atk.Object
Description:
[ CCode ( type_id = "atk_object_get_type ()" ) ]public class Object : Object
This class is the primary class for accessibility support via the Accessibility ToolKit (ATK).
Objects which are instances of Object (or instances of AtkObject-derived types) are queried for properties
which relate basic (and generic) properties of a UI component such as name and description. Instances of Object
may also be queried as to whether they implement other ATK interfaces (e.g. Action ,
Component , etc.), as appropriate to the role which a given UI component plays in a user
interface.
All UI components in an application which provide useful information or services to the user must provide corresponding
Object instances on request (in GTK+, for instance, usually on a call to gtk_widget_get_accessible
()), either via ATK support built into the toolkit for the widget class or ancestor class, or in the case of custom widgets, if the
inherited Object implementation is insufficient, via instances of a new Object
subclass.
See also: ObjectFactory , Registry . (GTK+
users see also GtkAccessible
).
Content:
Properties:
Creation methods:
Methods:
public bool add_relationship (RelationType relationship, Object target)
Adds a relationship of the specified type with the specified target.
public virtual uint connect_property_change_handler (PropertyChangeHandler handler)
Calls handler
on property changes.
public unowned string get_accessible_id ()
Gets the accessible id of the accessible.
public virtual AttributeSet get_attributes ()
Get a list of properties applied to this object as a whole, as an
AttributeSet consisting of name-value pairs.
public virtual unowned string get_description ()
Gets the accessible description of the accessible.
public virtual int get_index_in_parent ()
Gets the 0-based index of this accessible in its parent; returns -1 if
the accessible does not have an accessible parent.
public virtual Layer get_layer ()
Gets the layer of the accessible.
public virtual int get_mdi_zorder ()
Gets the zorder of the accessible.
public int get_n_accessible_children ()
Gets the number of accessible children of the accessible.
public virtual int get_n_children ()
public virtual unowned string get_name ()
Gets the accessible name of the accessible.
public virtual unowned string get_object_locale ()
Gets a UTF-8 string indicating the POSIX-style LC_MESSAGES locale of
this .
public virtual unowned Object get_parent ()
Gets the accessible parent of the accessible.
public virtual Role get_role ()
Gets the role of the accessible.
public virtual void initialize (void * data)
This function is called when implementing subclasses of
Object .
public void notify_state_change (State state, bool value)
Emits a state-change signal for the specified state.
public unowned Object peek_parent ()
Gets the accessible parent of the accessible, if it has been manually
assigned with atk_object_set_parent.
public Object ref_accessible_child (int i)
Gets a reference to the specified accessible child of the object.
public virtual RelationSet ref_relation_set ()
public virtual StateSet ref_state_set ()
Gets a reference to the state set of the accessible; the caller must
unreference it when it is no longer needed.
public virtual void remove_property_change_handler (uint handler_id)
Removes a property change handler.
public bool remove_relationship (RelationType relationship, Object target)
Removes a relationship of the specified type with the specified
target.
public void set_accessible_id (string name)
Sets the accessible ID of the accessible.
public virtual void set_description (string description)
Sets the accessible description of the accessible.
public virtual void set_name (string name)
Sets the accessible name of the accessible.
public virtual void set_parent (Object parent)
Sets the accessible parent of the accessible.
public virtual void set_role (Role role)
Sets the role of the accessible.
Signals:
public virtual signal void active_descendant_changed (Object child)
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.
public virtual signal void children_changed (uint change_index, Object changed_child)
The signal "children-changed" is emitted when a child is added or
removed form an object.
public virtual signal void focus_event (bool focus_in)
The signal "focus-event" is emitted when an object gained or lost
focus.
public virtual signal void property_change (PropertyValues values)
The signal "property-change" is emitted when an object's property
value changes.
public virtual signal void state_change (string name, bool state_set)
The "state-change" signal is emitted when an object's state changes.
public virtual signal void visible_data_changed ()
The "visible-data-changed" signal is emitted when the visual
appearance of the object changed.
Fields:
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref