📄 atkobject.h
字号:
struct _AtkObject{ GObject parent; gchar *description; gchar *name; AtkObject *accessible_parent; AtkRole role; AtkRelationSet *relation_set; AtkLayer layer;};struct _AtkObjectClass{ GObjectClass parent; /* * Gets the accessible name of the object */ G_CONST_RETURN gchar* (* get_name) (AtkObject *accessible); /* * Gets the accessible description of the object */ G_CONST_RETURN gchar* (* get_description) (AtkObject *accessible); /* * Gets the accessible parent of the object */ AtkObject* (*get_parent) (AtkObject *accessible); /* * Gets the number of accessible children of the object */ gint (* get_n_children) (AtkObject *accessible); /* * Returns 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. */ AtkObject* (* ref_child) (AtkObject *accessible, gint i); /* * Gets the 0-based index of this object in its parent; returns -1 if the * object does not have an accessible parent. */ gint (* get_index_in_parent) (AtkObject *accessible); /* * Gets the RelationSet associated with the object */ AtkRelationSet* (* ref_relation_set) (AtkObject *accessible); /* * Gets the role of the object */ AtkRole (* get_role) (AtkObject *accessible); AtkLayer (* get_layer) (AtkObject *accessible); gint (* get_mdi_zorder) (AtkObject *accessible); /* * Gets the state set of the object */ AtkStateSet* (* ref_state_set) (AtkObject *accessible); /* * Sets the accessible name of the object */ void (* set_name) (AtkObject *accessible, const gchar *name); /* * Sets the accessible description of the object */ void (* set_description) (AtkObject *accessible, const gchar *description); /* * Sets the accessible parent of the object */ void (* set_parent) (AtkObject *accessible, AtkObject *parent); /* * Sets the accessible role of the object */ void (* set_role) (AtkObject *accessible, AtkRole role); /* * Specifies a function to be called when a property changes value */guint (* connect_property_change_handler) (AtkObject *accessible, AtkPropertyChangeHandler *handler); /* * Removes a property change handler which was specified using * connect_property_change_handler */void (* remove_property_change_handler) (AtkObject *accessible, guint handler_id);void (* initialize) (AtkObject *accessible, gpointer data); /* * The signal handler which is executed when there is a change in the * children of the object */ void (* children_changed) (AtkObject *accessible, guint change_index, gpointer changed_child); /* * The signal handler which is executed when there is a focus event * for an object. */ void (* focus_event) (AtkObject *accessible, gboolean focus_in); /* * The signal handler which is executed when there is a property_change * signal for an object. */ void (* property_change) (AtkObject *accessible, AtkPropertyValues *values); /* * The signal handler which is executed when there is a state_change * signal for an object. */ void (* state_change) (AtkObject *accessible, const gchar *name, gboolean state_set); /* * The signal handler which is executed when there is a change in the * visible data for an object */ void (*visible_data_changed) (AtkObject *accessible); /* * The signal handler which is executed when there is a change in the * 'active' child or children of the object, for instance when * interior focus changes in a table or list. This signal should be emitted * by objects whose state includes ATK_STATE_MANAGES_DESCENDANTS. */ void (*active_descendant_changed) (AtkObject *accessible, gpointer *child); AtkFunction pad1; AtkFunction pad2; AtkFunction pad3;};GType atk_object_get_type (void);struct _AtkImplementorIface{ GTypeInterface parent; AtkObject* (*ref_accessible) (AtkImplementor *implementor);};GType atk_implementor_get_type (void);/* * This method uses the ref_accessible method in AtkImplementorIface, * if the object's class implements AtkImplementorIface. * Otherwise it returns %NULL. * * IMPORTANT: * Note also that because this method may return flyweight objects, * it increments the returned AtkObject's reference count. * Therefore it is the responsibility of the calling * program to unreference the object when no longer needed. * (c.f. gtk_widget_get_accessible() where this is not the case). */AtkObject* atk_implementor_ref_accessible (AtkImplementor *implementor);/* * Properties directly supported by AtkObject */G_CONST_RETURN gchar* atk_object_get_name (AtkObject *accessible);G_CONST_RETURN gchar* atk_object_get_description (AtkObject *accessible);AtkObject* atk_object_get_parent (AtkObject *accessible);gint atk_object_get_n_accessible_children (AtkObject *accessible);AtkObject* atk_object_ref_accessible_child (AtkObject *accessible, gint i);AtkRelationSet* atk_object_ref_relation_set (AtkObject *accessible);AtkRole atk_object_get_role (AtkObject *accessible);AtkLayer atk_object_get_layer (AtkObject *accessible);gint atk_object_get_mdi_zorder (AtkObject *accessible);AtkStateSet* atk_object_ref_state_set (AtkObject *accessible);gint atk_object_get_index_in_parent (AtkObject *accessible);void atk_object_set_name (AtkObject *accessible, const gchar *name);void atk_object_set_description (AtkObject *accessible, const gchar *description);void atk_object_set_parent (AtkObject *accessible, AtkObject *parent);void atk_object_set_role (AtkObject *accessible, AtkRole role);guint atk_object_connect_property_change_handler (AtkObject *accessible, AtkPropertyChangeHandler *handler);void atk_object_remove_property_change_handler (AtkObject *accessible, guint handler_id);void atk_object_notify_state_change (AtkObject *accessible, AtkState state, gboolean value);void atk_object_initialize (AtkObject *accessible, gpointer data); G_CONST_RETURN gchar* atk_role_get_name (AtkRole role);AtkRole atk_role_for_name (const gchar *name);/* NEW in 1.1: convenience API */gboolean atk_object_add_relationship (AtkObject *object, AtkRelationType relationship, AtkObject *target);gboolean atk_object_remove_relationship (AtkObject *object, AtkRelationType relationship, AtkObject *target);G_CONST_RETURN gchar* atk_role_get_localized_name (AtkRole role);/* * Note: the properties which are registered with the GType * property registry, for type ATK_TYPE_OBJECT, are as follows: * * "accessible-name" * "accessible-description" * "accessible-parent" * "accessible-role" * "accessible-value" * "accessible-component-layer" * "accessible-component-zorder" * "accessible-table-caption" * "accessible-table-column-description" * "accessible-table-column-header" * "accessible-table-row-description" * "accessible-table-row-header" * "accessible-table-summary" * "accessible-model" * * accessibility property change listeners should use the * normal GObject property interfaces and "property-change" * signal handler semantics to interpret the property change * information relayed from AtkObject. * (AtkObject instances will connect to the "notify" * signal in their host objects, and relay the signals when appropriate). *//* For other signals, see related interfaces * * AtkActionIface, * AtkComponentIface, * AtkHypertextIface, * AtkImageIface, * AtkSelectionIface, * AtkTableIface, * AtkTextIface, * AtkValueIface. * * The usage model for obtaining these interface instances is: * ATK_<interfacename>_GET_IFACE(GObject *accessible), * where accessible, though specified as a GObject, is * the AtkObject instance being queried. * More usually, the interface will be used via a cast to the * interface's corresponding "type": * * AtkText textImpl = ATK_TEXT(accessible); * if (textImpl) * { * cpos = atk_text_get_caret_position(textImpl); * } * * If it's known in advance that accessible implements AtkTextIface, * this is shortened to: * * cpos = atk_text_get_caret_position (ATK_TEXT (accessible)); */#ifdef __cplusplus}#endif /* __cplusplus */#endif /* __ATK_OBJECT_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -