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

📄 atkobject.h

📁 windows平台下开发gtk程序所需要的库和头文件等
💻 H
📖 第 1 页 / 共 3 页
字号:
  ATK_ROLE_UNKNOWN,  ATK_ROLE_VIEWPORT,  ATK_ROLE_WINDOW,  ATK_ROLE_HEADER,  ATK_ROLE_FOOTER,  ATK_ROLE_PARAGRAPH,  ATK_ROLE_RULER,  ATK_ROLE_APPLICATION,  ATK_ROLE_AUTOCOMPLETE,  ATK_ROLE_EDITBAR,  ATK_ROLE_EMBEDDED,  ATK_ROLE_ENTRY,  ATK_ROLE_CHART,  ATK_ROLE_CAPTION,  ATK_ROLE_DOCUMENT_FRAME,  ATK_ROLE_HEADING,  ATK_ROLE_PAGE,  ATK_ROLE_SECTION,  ATK_ROLE_REDUNDANT_OBJECT,  ATK_ROLE_FORM,  ATK_ROLE_LINK,  ATK_ROLE_INPUT_METHOD_WINDOW,  ATK_ROLE_LAST_DEFINED} AtkRole;AtkRole                  atk_role_register        (const gchar *name);/** *AtkLayer: *@ATK_LAYER_INVALID: The object does not have a layer *@ATK_LAYER_BACKGROUND: This layer is reserved for the desktop background *@ATK_LAYER_CANVAS: This layer is used for Canvas components *@ATK_LAYER_WIDGET: This layer is normally used for components *@ATK_LAYER_MDI: This layer is used for layered components *@ATK_LAYER_POPUP: This layer is used for popup components, such as menus *@ATK_LAYER_OVERLAY: This layer is reserved for future use. *@ATK_LAYER_WINDOW: This layer is used for toplevel windows. * * Describes the layer of a component * * These enumerated "layer values" are used when determining which UI * rendering layer a component is drawn into, which can help in making * determinations of when components occlude one another. **/typedef enum{  ATK_LAYER_INVALID,  ATK_LAYER_BACKGROUND,  ATK_LAYER_CANVAS,  ATK_LAYER_WIDGET,  ATK_LAYER_MDI,  ATK_LAYER_POPUP,  ATK_LAYER_OVERLAY,  ATK_LAYER_WINDOW} AtkLayer;/** * AtkAttributeSet: * * This is a singly-linked list (a #GSList) of #AtkAttribute. It is * used by atk_text_get_run_attributes(), atk_text_get_default_attributes() * and atk_editable_text_set_run_attributes() **/typedef GSList AtkAttributeSet;/** * AtkAttribute: * @name: The attribute name. Call atk_text_attr_get_name() * @value: the value of the attribute, represented as a string.  * Call atk_text_attr_get_value() for those which are strings. * For values which are numbers, the string representation of the number  * is in value. * * A string name/value pair representing a text attribute.  **/typedef struct _AtkAttribute AtkAttribute;struct _AtkAttribute {  gchar* name;  gchar* value;};#define ATK_TYPE_OBJECT                           (atk_object_get_type ())#define ATK_OBJECT(obj)                           (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_OBJECT, AtkObject))#define ATK_OBJECT_CLASS(klass)                   (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_OBJECT, AtkObjectClass))#define ATK_IS_OBJECT(obj)                        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_OBJECT))#define ATK_IS_OBJECT_CLASS(klass)                (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_OBJECT))#define ATK_OBJECT_GET_CLASS(obj)                 (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_OBJECT, AtkObjectClass))#define ATK_TYPE_IMPLEMENTOR                      (atk_implementor_get_type ())#define ATK_IS_IMPLEMENTOR(obj)                   G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_IMPLEMENTOR)#define ATK_IMPLEMENTOR(obj)                      G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_IMPLEMENTOR, AtkImplementor)#define ATK_IMPLEMENTOR_GET_IFACE(obj)            (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_IMPLEMENTOR, AtkImplementorIface))typedef struct _AtkImplementor            AtkImplementor; /* dummy typedef */typedef struct _AtkImplementorIface       AtkImplementorIface;typedef struct _AtkObject                 AtkObject;typedef struct _AtkObjectClass            AtkObjectClass;typedef struct _AtkRelationSet            AtkRelationSet;typedef struct _AtkStateSet               AtkStateSet;/** * AtkPropertyValues: * @property_name: The name of the ATK property which is being presented or which has been changed. * @old_value: The old property value, NULL; in some contexts this value is undefined (see note below). * @new_value: The new value of the named property. * * @note: For most properties the old_value field of AtkPropertyValues will * not contain a valid value. * * Currently, the only property for which old_value is used is * accessible-state; for instance if there is a focus state the * property change handler will be called for the object which lost the focus * with the old_value containing an AtkState value corresponding to focused * and the property change handler will be called for the object which * received the focus with the new_value containing an AtkState value * corresponding to focused. * **/struct _AtkPropertyValues{  const gchar  *property_name;  GValue old_value;  GValue new_value;};typedef struct _AtkPropertyValues        AtkPropertyValues;typedef gboolean (*AtkFunction)          (gpointer data); /* * For most properties the old_value field of AtkPropertyValues will * not contain a valid value. * * Currently, the only property for which old_value is used is * accessible-state; for instance if there is a focus state the * property change handler will be called for the object which lost the focus * with the old_value containing an AtkState value corresponding to focused * and the property change handler will be called for the object which * received the focus with the new_value containing an AtkState value * corresponding to focused. */typedef void (*AtkPropertyChangeHandler) (AtkObject*, AtkPropertyValues*);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);  /*

⌨️ 快捷键说明

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