⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 atkobject.c

📁 linux下图形库开发包atk-1.4.0.tar.gz
💻 C
📖 第 1 页 / 共 4 页
字号:
  return type;}/** * atk_object_get_name: * @accessible: an #AtkObject * * Gets the accessible name of the accessible. * * Returns: a character string representing the accessible name of the object. **/G_CONST_RETURN gchar*atk_object_get_name (AtkObject *accessible){  AtkObjectClass *klass;  g_return_val_if_fail (ATK_IS_OBJECT (accessible), NULL);  klass = ATK_OBJECT_GET_CLASS (accessible);  if (klass->get_name)    return (klass->get_name) (accessible);  else    return NULL;}/** * atk_object_get_description: * @accessible: an #AtkObject * * Gets the accessible description of the accessible. * * Returns: a character string representing the accessible description * of the accessible. * **/G_CONST_RETURN gchar*atk_object_get_description (AtkObject *accessible){  AtkObjectClass *klass;  g_return_val_if_fail (ATK_IS_OBJECT (accessible), NULL);  klass = ATK_OBJECT_GET_CLASS (accessible);  if (klass->get_description)    return (klass->get_description) (accessible);  else    return NULL;}/** * atk_object_get_parent: * @accessible: an #AtkObject * * Gets the accessible parent of the accessible. * * Returns: a #AtkObject representing the accessible parent of the accessible **/AtkObject*atk_object_get_parent (AtkObject *accessible){  AtkObjectClass *klass;  g_return_val_if_fail (ATK_IS_OBJECT (accessible), NULL);  klass = ATK_OBJECT_GET_CLASS (accessible);  if (klass->get_parent)    return (klass->get_parent) (accessible);  else    return NULL;}/** * atk_object_get_n_accessible_children: * @accessible: an #AtkObject * * Gets the number of accessible children of the accessible. * * Returns: an integer representing the number of accessible children * of the accessible. **/gintatk_object_get_n_accessible_children (AtkObject *accessible){  AtkObjectClass *klass;  g_return_val_if_fail (ATK_IS_OBJECT (accessible), 0);  klass = ATK_OBJECT_GET_CLASS (accessible);  if (klass->get_n_children)    return (klass->get_n_children) (accessible);  else    return 0;}/** * atk_object_ref_accessible_child: * @accessible: an #AtkObject * @i: a gint representing the position of the child, starting from 0 * * 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. * * Returns: an #AtkObject representing the specified accessible child * of the accessible. **/AtkObject*atk_object_ref_accessible_child (AtkObject   *accessible,                                 gint        i){  AtkObjectClass *klass;  g_return_val_if_fail (ATK_IS_OBJECT (accessible), NULL);  klass = ATK_OBJECT_GET_CLASS (accessible);  if (klass->ref_child)    return (klass->ref_child) (accessible, i);  else    return NULL;}/** * atk_object_ref_relation_set: * @accessible: an #AtkObject * * Gets the #AtkRelationSet associated with the object. * * Returns: an #AtkRelationSet representing the relation set of the object. **/AtkRelationSet*atk_object_ref_relation_set (AtkObject *accessible){  AtkObjectClass *klass;  g_return_val_if_fail (ATK_IS_OBJECT (accessible), NULL);  klass = ATK_OBJECT_GET_CLASS (accessible);  if (klass->ref_relation_set)    return (klass->ref_relation_set) (accessible);  else    return NULL;}/** * atk_role_register: * @name: a character string describing the new role. * * Registers the role specified by @name. * * Returns: an #AtkRole for the new role. **/AtkRoleatk_role_register (const gchar *name){  if (!extra_roles)    extra_roles = g_ptr_array_new ();  g_ptr_array_add (extra_roles, g_strdup (name));  return extra_roles->len + ATK_ROLE_LAST_DEFINED;}/** * atk_object_get_role: * @accessible: an #AtkObject * * Gets the role of the accessible. * * Returns: an #AtkRole which is the role of the accessible **/AtkRoleatk_object_get_role (AtkObject *accessible) {  AtkObjectClass *klass;  g_return_val_if_fail (ATK_IS_OBJECT (accessible), ATK_ROLE_UNKNOWN);  klass = ATK_OBJECT_GET_CLASS (accessible);  if (klass->get_role)    return (klass->get_role) (accessible);  else    return ATK_ROLE_UNKNOWN;}/** * atk_object_get_layer: * @accessible: an #AtkObject * * Gets the layer of the accessible. * DEPRECATED: use atk_component_get_layer instead! * * Returns: an #AtkLayer which is the layer of the accessible **/AtkLayeratk_object_get_layer (AtkObject *accessible) {  AtkObjectClass *klass;  g_return_val_if_fail (ATK_IS_OBJECT (accessible), ATK_LAYER_INVALID);  klass = ATK_OBJECT_GET_CLASS (accessible);  if (klass->get_layer)    return (klass->get_layer) (accessible);  else    return ATK_LAYER_INVALID;}/** * atk_object_get_mdi_zorder: * @accessible: an #AtkObject * * Gets the zorder of the accessible. The value G_MININT will be returned  * if the layer of the accessible is not ATK_LAYER_MDI. * DEPRECATED: use atk_component_get_mdi_zorder instead! * * Returns: a gint which is the zorder of the accessible, i.e. the depth at  * which the component is shown in relation to other components in the same  * container. **/gintatk_object_get_mdi_zorder (AtkObject *accessible) {  AtkObjectClass *klass;  g_return_val_if_fail (ATK_IS_OBJECT (accessible), G_MININT);  klass = ATK_OBJECT_GET_CLASS (accessible);  if (klass->get_mdi_zorder)    return (klass->get_mdi_zorder) (accessible);  else    return G_MININT;}/** * atk_object_ref_state_set: * @accessible: an #AtkObject * * Gets a reference to the state set of the accessible; the caller must * unreference it when it is no longer needed. * * Returns: a reference to an #AtkStateSet which is the state * set of the accessible **/AtkStateSet*atk_object_ref_state_set (AtkObject *accessible) {  AtkObjectClass *klass;  g_return_val_if_fail (ATK_IS_OBJECT (accessible), NULL);  klass = ATK_OBJECT_GET_CLASS (accessible);  if (klass->ref_state_set)    return (klass->ref_state_set) (accessible);  else    return NULL;}/** * atk_object_get_index_in_parent: * @accessible: an #AtkObject * * Gets the 0-based index of this accessible in its parent; returns -1 if the * accessible does not have an accessible parent. * * Returns: an integer which is the index of the accessible in its parent **/gintatk_object_get_index_in_parent (AtkObject *accessible){  AtkObjectClass *klass;  g_return_val_if_fail (ATK_OBJECT (accessible), -1);  klass = ATK_OBJECT_GET_CLASS (accessible);  if (klass->get_index_in_parent)    return (klass->get_index_in_parent) (accessible);  else    return -1;}/** * atk_object_set_name: * @accessible: an #AtkObject * @name: a character string to be set as the accessible name * * Sets the accessible name of the accessible. **/voidatk_object_set_name (AtkObject    *accessible,                     const gchar  *name){  AtkObjectClass *klass;  g_return_if_fail (ATK_IS_OBJECT (accessible));  g_return_if_fail (name != NULL);  klass = ATK_OBJECT_GET_CLASS (accessible);  if (klass->set_name)    {      (klass->set_name) (accessible, name);      g_object_notify (G_OBJECT (accessible), atk_object_name_property_name);    }}/** * atk_object_set_description: * @accessible: an #AtkObject * @description : a character string to be set as the accessible description * * Sets the accessible description of the accessible. **/voidatk_object_set_description (AtkObject   *accessible,                            const gchar *description){  AtkObjectClass *klass;  g_return_if_fail (ATK_IS_OBJECT (accessible));  g_return_if_fail (description != NULL);  klass = ATK_OBJECT_GET_CLASS (accessible);  if (klass->set_description)    {      (klass->set_description) (accessible, description);      g_object_notify (G_OBJECT (accessible), atk_object_name_property_description);    }}/** * atk_object_set_parent: * @accessible: an #AtkObject * @parent : an #AtkObject to be set as the accessible parent * * Sets the accessible parent of the accessible. **/voidatk_object_set_parent (AtkObject *accessible,                       AtkObject *parent){  AtkObjectClass *klass;  g_return_if_fail (ATK_IS_OBJECT (accessible));  klass = ATK_OBJECT_GET_CLASS (accessible);  if (klass->set_parent)    {      (klass->set_parent) (accessible, parent);      g_object_notify (G_OBJECT (accessible), atk_object_name_property_parent);    }}/** * atk_object_set_role: * @accessible: an #AtkObject * @role : an #AtkRole to be set as the role * * Sets the role of the accessible. **/voidatk_object_set_role (AtkObject *accessible,                      AtkRole   role){  AtkObjectClass *klass;  AtkRole old_role;  g_return_if_fail (ATK_IS_OBJECT (accessible));  klass = ATK_OBJECT_GET_CLASS (accessible);  if (klass->set_role)    {      old_role = atk_object_get_role (accessible);      if (old_role != role)        {          (klass->set_role) (accessible, role);          if (old_role != ATK_ROLE_UNKNOWN)          /* Do not notify for initial role setting */            g_object_notify (G_OBJECT (accessible), atk_object_name_property_role);        }    }}/** * atk_object_connect_property_change_handler: * @accessible: an #AtkObject * @handler : a function to be called when a property changes its value * * Specifies a function to be called when a property changes value. * * Returns: a #guint which is the handler id used in  * atk_object_remove_property_change_handler() **/guintatk_object_connect_property_change_handler (AtkObject *accessible,                                            AtkPropertyChangeHandler *handler){  AtkObjectClass *klass;  g_return_val_if_fail (ATK_IS_OBJECT (accessible), 0);  g_return_val_if_fail ((handler != NULL), 0);  klass = ATK_OBJECT_GET_CLASS (accessible);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -