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

📄 atktext.h

📁 linux下图形库开发包atk-1.4.0.tar.gz
💻 H
📖 第 1 页 / 共 2 页
字号:
};/** *AtkTextClipType *@ATK_TEXT_CLIP_NONE: No clipping to be done *@ATK_TEXT_CLIP_MIN: Text clipped by min coordinate is omitted *@ATK_TEXT_CLIP_MAX: Text clipped by max coordinate is omitted *@ATK_TEXT_CLIP_BOTH: Only text fully within mix/max bound is retained * *Describes the type of clipping required. **/typedef enum {    ATK_TEXT_CLIP_NONE,    ATK_TEXT_CLIP_MIN,    ATK_TEXT_CLIP_MAX,    ATK_TEXT_CLIP_BOTH} AtkTextClipType;struct _AtkTextIface{  GTypeInterface parent;  gchar*         (* get_text)                     (AtkText          *text,                                                   gint             start_offset,                                                   gint             end_offset);  gchar*         (* get_text_after_offset)        (AtkText          *text,                                                   gint             offset,                                                   AtkTextBoundary  boundary_type,						   gint             *start_offset,						   gint             *end_offset);  gchar*         (* get_text_at_offset)           (AtkText          *text,                                                   gint             offset,                                                   AtkTextBoundary  boundary_type,						   gint             *start_offset,						   gint             *end_offset);  gunichar       (* get_character_at_offset)      (AtkText          *text,                                                   gint             offset);  gchar*         (* get_text_before_offset)       (AtkText          *text,                                                   gint             offset,                                                   AtkTextBoundary  boundary_type, 						   gint             *start_offset,						   gint             *end_offset);  gint           (* get_caret_offset)             (AtkText          *text);  AtkAttributeSet* (* get_run_attributes)         (AtkText	    *text,						   gint	  	    offset,						   gint             *start_offset,						   gint	 	    *end_offset);  AtkAttributeSet* (* get_default_attributes)     (AtkText	    *text);  void           (* get_character_extents)        (AtkText          *text,                                                   gint             offset,                                                   gint             *x,                                                   gint             *y,                                                   gint             *width,                                                   gint             *height,                                                   AtkCoordType	    coords);  gint           (* get_character_count)          (AtkText          *text);  gint           (* get_offset_at_point)          (AtkText          *text,                                                   gint             x,                                                   gint             y,                                                   AtkCoordType	    coords);  gint		 (* get_n_selections)		  (AtkText          *text);  gchar*         (* get_selection)	          (AtkText          *text,						   gint		    selection_num,						   gint		    *start_offset,						   gint		    *end_offset);  gboolean       (* add_selection)		  (AtkText          *text,						   gint		    start_offset,						   gint		    end_offset);  gboolean       (* remove_selection)		  (AtkText          *text,						   gint             selection_num);  gboolean       (* set_selection)		  (AtkText          *text,						   gint		    selection_num,						   gint		    start_offset,						   gint		    end_offset);  gboolean       (* set_caret_offset)             (AtkText          *text,                                                   gint             offset);  /*   * signal handlers   */  void		 (* text_changed)                 (AtkText          *text,                                                   gint             position,                                                   gint             length);  void           (* text_caret_moved)             (AtkText          *text,                                                   gint             location);  void           (* text_selection_changed)       (AtkText          *text);  void           (* text_attributes_changed)      (AtkText          *text);  void           (* get_range_extents)            (AtkText          *text,                                                   gint             start_offset,                                                   gint             end_offset,                                                   AtkCoordType     coord_type,                                                   AtkTextRectangle *rect);  AtkTextRange** (* get_bounded_ranges)           (AtkText          *text,                                                   AtkTextRectangle *rect,                                                   AtkCoordType     coord_type,                                                   AtkTextClipType  x_clip_type,                                                   AtkTextClipType  y_clip_type);   AtkFunction    pad4;};GType            atk_text_get_type (void);/* * Additional AtkObject properties used by AtkText: *    "accessible_text" (accessible text has changed) *    "accessible_caret" (accessible text cursor position changed: *                         editable text only) */gchar*        atk_text_get_text                           (AtkText          *text,                                                           gint             start_offset,                                                           gint             end_offset);gunichar      atk_text_get_character_at_offset            (AtkText          *text,                                                           gint             offset);gchar*        atk_text_get_text_after_offset              (AtkText          *text,                                                           gint             offset,                                                           AtkTextBoundary  boundary_type,							   gint             *start_offset,							   gint	            *end_offset);gchar*        atk_text_get_text_at_offset                 (AtkText          *text,                                                           gint             offset,                                                           AtkTextBoundary  boundary_type,							   gint             *start_offset,							   gint             *end_offset);gchar*        atk_text_get_text_before_offset             (AtkText          *text,                                                           gint             offset,                                                           AtkTextBoundary  boundary_type,							   gint             *start_offset,							   gint	            *end_offset);gint          atk_text_get_caret_offset                   (AtkText          *text);void          atk_text_get_character_extents              (AtkText          *text,                                                           gint             offset,                                                           gint             *x,                                                           gint             *y,                                                           gint             *width,                                                           gint             *height,                                                           AtkCoordType	    coords);AtkAttributeSet* atk_text_get_run_attributes              (AtkText	    *text,						           gint	  	    offset,						           gint             *start_offset,						           gint	 	    *end_offset);AtkAttributeSet* atk_text_get_default_attributes          (AtkText	    *text);gint          atk_text_get_character_count                (AtkText          *text);gint          atk_text_get_offset_at_point                (AtkText          *text,                                                           gint             x,                                                           gint             y,                                                           AtkCoordType	    coords);gint          atk_text_get_n_selections			  (AtkText          *text);gchar*        atk_text_get_selection			  (AtkText          *text,							   gint		    selection_num,							   gint             *start_offset,							   gint             *end_offset);gboolean      atk_text_add_selection                      (AtkText          *text,							   gint             start_offset,							   gint             end_offset);gboolean      atk_text_remove_selection                   (AtkText          *text,							   gint		    selection_num);gboolean      atk_text_set_selection                      (AtkText          *text,							   gint		    selection_num,							   gint             start_offset,							   gint             end_offset);gboolean      atk_text_set_caret_offset                   (AtkText          *text,                                                           gint             offset);void          atk_text_get_range_extents                  (AtkText          *text,                                                           gint             start_offset,                                                           gint             end_offset,                                                           AtkCoordType     coord_type,                                                           AtkTextRectangle *rect);AtkTextRange**  atk_text_get_bounded_ranges               (AtkText          *text,                                                           AtkTextRectangle *rect,                                                           AtkCoordType     coord_type,                                                           AtkTextClipType  x_clip_type,                                                           AtkTextClipType  y_clip_type);void          atk_text_free_ranges                        (AtkTextRange     **ranges);void 	      atk_attribute_set_free                      (AtkAttributeSet  *attrib_set);G_CONST_RETURN gchar*  atk_text_attribute_get_name        (AtkTextAttribute attr);AtkTextAttribute       atk_text_attribute_for_name        (const gchar      *name);G_CONST_RETURN gchar*  atk_text_attribute_get_value       (AtkTextAttribute attr,                                                           gint             index_);#ifdef __cplusplus}#endif /* __cplusplus */#endif /* __ATK_TEXT_H__ */

⌨️ 快捷键说明

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