update for 0.4.0 release
[vala-lang.git] / vapi / atk.vapi
blob95afcfdf7aa24f3e0de23f8752878bf7692c9f88
1 /* atk.vapi generated by lt-vapigen, do not modify. */
3 [CCode (cprefix = "Atk", lower_case_cprefix = "atk_")]
4 namespace Atk {
5         [CCode (cprefix = "ATK_XY_", cheader_filename = "atk/atk.h")]
6         public enum CoordType {
7                 SCREEN,
8                 WINDOW
9         }
10         [CCode (cprefix = "ATK_KEY_EVENT_", cheader_filename = "atk/atk.h")]
11         public enum KeyEventType {
12                 PRESS,
13                 RELEASE,
14                 LAST_DEFINED
15         }
16         [CCode (cprefix = "ATK_LAYER_", cheader_filename = "atk/atk.h")]
17         public enum Layer {
18                 INVALID,
19                 BACKGROUND,
20                 CANVAS,
21                 WIDGET,
22                 MDI,
23                 POPUP,
24                 OVERLAY,
25                 WINDOW
26         }
27         [CCode (cprefix = "ATK_RELATION_", cheader_filename = "atk/atk.h")]
28         public enum RelationType {
29                 NULL,
30                 CONTROLLED_BY,
31                 CONTROLLER_FOR,
32                 LABEL_FOR,
33                 LABELLED_BY,
34                 MEMBER_OF,
35                 NODE_CHILD_OF,
36                 FLOWS_TO,
37                 FLOWS_FROM,
38                 SUBWINDOW_OF,
39                 EMBEDS,
40                 EMBEDDED_BY,
41                 POPUP_FOR,
42                 PARENT_WINDOW_OF,
43                 DESCRIBED_BY,
44                 DESCRIPTION_FOR,
45                 LAST_DEFINED
46         }
47         [CCode (cprefix = "ATK_ROLE_", cheader_filename = "atk/atk.h")]
48         public enum Role {
49                 INVALID,
50                 ACCEL_LABEL,
51                 ALERT,
52                 ANIMATION,
53                 ARROW,
54                 CALENDAR,
55                 CANVAS,
56                 CHECK_BOX,
57                 CHECK_MENU_ITEM,
58                 COLOR_CHOOSER,
59                 COLUMN_HEADER,
60                 COMBO_BOX,
61                 DATE_EDITOR,
62                 DESKTOP_ICON,
63                 DESKTOP_FRAME,
64                 DIAL,
65                 DIALOG,
66                 DIRECTORY_PANE,
67                 DRAWING_AREA,
68                 FILE_CHOOSER,
69                 FILLER,
70                 FONT_CHOOSER,
71                 FRAME,
72                 GLASS_PANE,
73                 HTML_CONTAINER,
74                 ICON,
75                 IMAGE,
76                 INTERNAL_FRAME,
77                 LABEL,
78                 LAYERED_PANE,
79                 LIST,
80                 LIST_ITEM,
81                 MENU,
82                 MENU_BAR,
83                 MENU_ITEM,
84                 OPTION_PANE,
85                 PAGE_TAB,
86                 PAGE_TAB_LIST,
87                 PANEL,
88                 PASSWORD_TEXT,
89                 POPUP_MENU,
90                 PROGRESS_BAR,
91                 PUSH_BUTTON,
92                 RADIO_BUTTON,
93                 RADIO_MENU_ITEM,
94                 ROOT_PANE,
95                 ROW_HEADER,
96                 SCROLL_BAR,
97                 SCROLL_PANE,
98                 SEPARATOR,
99                 SLIDER,
100                 SPLIT_PANE,
101                 SPIN_BUTTON,
102                 STATUSBAR,
103                 TABLE,
104                 TABLE_CELL,
105                 TABLE_COLUMN_HEADER,
106                 TABLE_ROW_HEADER,
107                 TEAR_OFF_MENU_ITEM,
108                 TERMINAL,
109                 TEXT,
110                 TOGGLE_BUTTON,
111                 TOOL_BAR,
112                 TOOL_TIP,
113                 TREE,
114                 TREE_TABLE,
115                 UNKNOWN,
116                 VIEWPORT,
117                 WINDOW,
118                 HEADER,
119                 FOOTER,
120                 PARAGRAPH,
121                 RULER,
122                 APPLICATION,
123                 AUTOCOMPLETE,
124                 EDITBAR,
125                 EMBEDDED,
126                 ENTRY,
127                 CHART,
128                 CAPTION,
129                 DOCUMENT_FRAME,
130                 HEADING,
131                 PAGE,
132                 SECTION,
133                 REDUNDANT_OBJECT,
134                 FORM,
135                 LINK,
136                 INPUT_METHOD_WINDOW,
137                 LAST_DEFINED
138         }
139         [CCode (cprefix = "ATK_STATE_", cheader_filename = "atk/atk.h")]
140         public enum StateType {
141                 INVALID,
142                 ACTIVE,
143                 ARMED,
144                 BUSY,
145                 CHECKED,
146                 DEFUNCT,
147                 EDITABLE,
148                 ENABLED,
149                 EXPANDABLE,
150                 EXPANDED,
151                 FOCUSABLE,
152                 FOCUSED,
153                 HORIZONTAL,
154                 ICONIFIED,
155                 MODAL,
156                 MULTI_LINE,
157                 MULTISELECTABLE,
158                 OPAQUE,
159                 PRESSED,
160                 RESIZABLE,
161                 SELECTABLE,
162                 SELECTED,
163                 SENSITIVE,
164                 SHOWING,
165                 SINGLE_LINE,
166                 STALE,
167                 TRANSIENT,
168                 VERTICAL,
169                 VISIBLE,
170                 MANAGES_DESCENDANTS,
171                 INDETERMINATE,
172                 TRUNCATED,
173                 REQUIRED,
174                 INVALID_ENTRY,
175                 SUPPORTS_AUTOCOMPLETION,
176                 SELECTABLE_TEXT,
177                 DEFAULT,
178                 ANIMATED,
179                 VISITED,
180                 LAST_DEFINED
181         }
182         [CCode (cprefix = "ATK_TEXT_ATTR_", cheader_filename = "atk/atk.h")]
183         public enum TextAttribute {
184                 INVALID,
185                 LEFT_MARGIN,
186                 RIGHT_MARGIN,
187                 INDENT,
188                 INVISIBLE,
189                 EDITABLE,
190                 PIXELS_ABOVE_LINES,
191                 PIXELS_BELOW_LINES,
192                 PIXELS_INSIDE_WRAP,
193                 BG_FULL_HEIGHT,
194                 RISE,
195                 UNDERLINE,
196                 STRIKETHROUGH,
197                 SIZE,
198                 SCALE,
199                 WEIGHT,
200                 LANGUAGE,
201                 FAMILY_NAME,
202                 BG_COLOR,
203                 FG_COLOR,
204                 BG_STIPPLE,
205                 FG_STIPPLE,
206                 WRAP_MODE,
207                 DIRECTION,
208                 JUSTIFICATION,
209                 STRETCH,
210                 VARIANT,
211                 STYLE,
212                 LAST_DEFINED
213         }
214         [CCode (cprefix = "ATK_TEXT_BOUNDARY_", cheader_filename = "atk/atk.h")]
215         public enum TextBoundary {
216                 CHAR,
217                 WORD_START,
218                 WORD_END,
219                 SENTENCE_START,
220                 SENTENCE_END,
221                 LINE_START,
222                 LINE_END
223         }
224         [CCode (cprefix = "ATK_TEXT_CLIP_", cheader_filename = "atk/atk.h")]
225         public enum TextClipType {
226                 NONE,
227                 MIN,
228                 MAX,
229                 BOTH
230         }
231         [CCode (cprefix = "ATK_HYPERLINK_IS_", cheader_filename = "atk/atk.h")]
232         [Flags]
233         public enum HyperlinkStateFlags {
234                 INLINE
235         }
236         [Compact]
237         [CCode (cheader_filename = "atk/atk.h")]
238         public class Attribute {
239                 public weak string name;
240                 public weak string value;
241         }
242         [Compact]
243         [CCode (cheader_filename = "atk/atk.h")]
244         public class AttributeSet {
245         }
246         [Compact]
247         [CCode (cheader_filename = "atk/atk.h")]
248         public class KeyEventStruct {
249                 public int type;
250                 public uint state;
251                 public uint keyval;
252                 public int length;
253                 [CCode (cname = "string")]
254                 public weak string str;
255                 public ushort keycode;
256                 public uint timestamp;
257         }
258         [Compact]
259         [CCode (cheader_filename = "atk/atk.h")]
260         public class PropertyValues {
261                 public weak string property_name;
262                 public GLib.Value old_value;
263                 public GLib.Value new_value;
264         }
265         [Compact]
266         [CCode (cheader_filename = "atk/atk.h")]
267         public class State {
268                 public static Atk.StateType type_for_name (string name);
269                 public static weak string type_get_name (Atk.StateType type);
270                 public static Atk.StateType type_register (string name);
271         }
272         [Compact]
273         [CCode (cheader_filename = "atk/atk.h")]
274         public class TextRange {
275                 public weak Atk.TextRectangle bounds;
276                 public int start_offset;
277                 public int end_offset;
278                 public weak string content;
279         }
280         [Compact]
281         [CCode (cheader_filename = "atk/atk.h")]
282         public class TextRectangle {
283                 public int x;
284                 public int y;
285                 public int width;
286                 public int height;
287         }
288         [CCode (cheader_filename = "atk/atk.h")]
289         public class GObjectAccessible : Atk.Object {
290                 public static weak Atk.Object for_object (GLib.Object obj);
291                 public weak GLib.Object get_object ();
292         }
293         [CCode (cheader_filename = "atk/atk.h")]
294         public class Hyperlink : GLib.Object, Atk.Action {
295                 public bool is_inline ();
296                 public virtual int get_end_index ();
297                 public virtual int get_n_anchors ();
298                 public virtual weak Atk.Object get_object (int i);
299                 public virtual int get_start_index ();
300                 public virtual weak string get_uri (int i);
301                 public virtual bool is_selected_link ();
302                 public virtual bool is_valid ();
303                 [NoWrapper]
304                 public virtual uint link_state ();
305                 public int end_index { get; }
306                 [NoAccessorMethod]
307                 public int number_of_anchors { get; }
308                 [NoAccessorMethod]
309                 public bool selected_link { get; }
310                 public int start_index { get; }
311                 public virtual signal void link_activated ();
312         }
313         [CCode (cheader_filename = "atk/atk.h")]
314         public class Misc : GLib.Object {
315                 public static weak Atk.Misc get_instance ();
316                 public virtual void threads_enter ();
317                 public virtual void threads_leave ();
318         }
319         [CCode (cheader_filename = "atk/atk.h")]
320         public class NoOpObject : Atk.Object, Atk.Text, Atk.Action, Atk.Hypertext, Atk.Selection, Atk.Table, Atk.Image, Atk.Value, Atk.Component, Atk.EditableText, Atk.Document {
321                 [CCode (type = "AtkObject*", has_construct_function = false)]
322                 public NoOpObject (GLib.Object obj);
323         }
324         [CCode (cheader_filename = "atk/atk.h")]
325         public class NoOpObjectFactory : Atk.ObjectFactory {
326                 [CCode (type = "AtkObjectFactory*", has_construct_function = false)]
327                 public NoOpObjectFactory ();
328         }
329         [CCode (cheader_filename = "atk/atk.h")]
330         public class Object : GLib.Object {
331                 public weak string description;
332                 public weak string name;
333                 public Atk.Role role;
334                 public weak Atk.RelationSet relation_set;
335                 public Atk.Layer layer;
336                 public bool add_relationship (Atk.RelationType relationship, Atk.Object target);
337                 public int get_n_accessible_children ();
338                 public void notify_state_change (Atk.State state, bool value);
339                 public weak Atk.Object ref_accessible_child (int i);
340                 public bool remove_relationship (Atk.RelationType relationship, Atk.Object target);
341                 public virtual uint connect_property_change_handler (Atk.PropertyChangeHandler handler);
342                 public virtual weak Atk.AttributeSet get_attributes ();
343                 public virtual weak string get_description ();
344                 public virtual int get_index_in_parent ();
345                 public virtual Atk.Layer get_layer ();
346                 public virtual int get_mdi_zorder ();
347                 [NoWrapper]
348                 public virtual int get_n_children ();
349                 public virtual weak string get_name ();
350                 public virtual weak Atk.Object get_parent ();
351                 public virtual Atk.Role get_role ();
352                 public virtual void initialize (void* data);
353                 [NoWrapper]
354                 public virtual weak Atk.Object ref_child (int i);
355                 public virtual weak Atk.RelationSet ref_relation_set ();
356                 public virtual weak Atk.StateSet ref_state_set ();
357                 public virtual void remove_property_change_handler (uint handler_id);
358                 public virtual void set_description (string description);
359                 public virtual void set_name (string name);
360                 public virtual void set_parent (Atk.Object parent);
361                 public virtual void set_role (Atk.Role role);
362                 [NoAccessorMethod]
363                 public int accessible_component_layer { get; }
364                 [NoAccessorMethod]
365                 public int accessible_component_mdi_zorder { get; }
366                 [NoAccessorMethod]
367                 public string accessible_description { get; set; }
368                 [NoAccessorMethod]
369                 public int accessible_hypertext_nlinks { get; }
370                 [NoAccessorMethod]
371                 public string accessible_name { get; set; }
372                 [NoAccessorMethod]
373                 public Atk.Object accessible_parent { get; set; }
374                 [NoAccessorMethod]
375                 public int accessible_role { get; set; }
376                 [NoAccessorMethod]
377                 public string accessible_table_caption { get; set; }
378                 [NoAccessorMethod]
379                 public Atk.Object accessible_table_caption_object { get; set; }
380                 [NoAccessorMethod]
381                 public string accessible_table_column_description { get; set; }
382                 [NoAccessorMethod]
383                 public Atk.Object accessible_table_column_header { get; set; }
384                 [NoAccessorMethod]
385                 public string accessible_table_row_description { get; set; }
386                 [NoAccessorMethod]
387                 public Atk.Object accessible_table_row_header { get; set; }
388                 [NoAccessorMethod]
389                 public Atk.Object accessible_table_summary { get; set; }
390                 [NoAccessorMethod]
391                 public double accessible_value { get; set; }
392                 public virtual signal void active_descendant_changed (void* child);
393                 public virtual signal void children_changed (uint change_index, void* changed_child);
394                 public virtual signal void focus_event (bool focus_in);
395                 public virtual signal void property_change (void* values);
396                 public virtual signal void state_change (string name, bool state_set);
397                 public virtual signal void visible_data_changed ();
398         }
399         [CCode (cheader_filename = "atk/atk.h")]
400         public class ObjectFactory : GLib.Object {
401                 public virtual weak Atk.Object create_accessible (GLib.Object obj);
402                 public virtual GLib.Type get_accessible_type ();
403                 public virtual void invalidate ();
404         }
405         [CCode (cheader_filename = "atk/atk.h")]
406         public class Registry : GLib.Object {
407                 public weak GLib.HashTable factory_type_registry;
408                 public weak GLib.HashTable factory_singleton_cache;
409                 public weak Atk.ObjectFactory get_factory (GLib.Type type);
410                 public GLib.Type get_factory_type (GLib.Type type);
411                 public void set_factory_type (GLib.Type type, GLib.Type factory_type);
412         }
413         [CCode (cheader_filename = "atk/atk.h")]
414         public class Relation : GLib.Object {
415                 public Atk.RelationType relationship;
416                 public void add_target (Atk.Object target);
417                 public Atk.RelationType get_relation_type ();
418                 public weak GLib.PtrArray get_target ();
419                 [CCode (has_construct_function = false)]
420                 public Relation (Atk.Object[] targets, Atk.RelationType relationship);
421                 public static Atk.RelationType type_for_name (string name);
422                 public static weak string type_get_name (Atk.RelationType type);
423                 public static Atk.RelationType type_register (string name);
424                 [NoAccessorMethod]
425                 public Atk.RelationType relation_type { get; set; }
426                 [NoAccessorMethod]
427                 public GLib.ValueArray target { get; set; }
428         }
429         [CCode (cheader_filename = "atk/atk.h")]
430         public class RelationSet : GLib.Object {
431                 public weak GLib.PtrArray relations;
432                 public void add (Atk.Relation relation);
433                 public void add_relation_by_type (Atk.RelationType relationship, Atk.Object target);
434                 public bool contains (Atk.RelationType relationship);
435                 public int get_n_relations ();
436                 public weak Atk.Relation get_relation (int i);
437                 public weak Atk.Relation get_relation_by_type (Atk.RelationType relationship);
438                 [CCode (has_construct_function = false)]
439                 public RelationSet ();
440                 public void remove (Atk.Relation relation);
441         }
442         [CCode (cheader_filename = "atk/atk.h")]
443         public class StateSet : GLib.Object {
444                 public bool add_state (Atk.StateType type);
445                 public void add_states (Atk.StateType[] types);
446                 public weak Atk.StateSet and_sets (Atk.StateSet compare_set);
447                 public void clear_states ();
448                 public bool contains_state (Atk.StateType type);
449                 public bool contains_states (Atk.StateType[] types);
450                 public bool is_empty ();
451                 [CCode (has_construct_function = false)]
452                 public StateSet ();
453                 public weak Atk.StateSet or_sets (Atk.StateSet compare_set);
454                 public bool remove_state (Atk.StateType type);
455                 public weak Atk.StateSet xor_sets (Atk.StateSet compare_set);
456         }
457         [CCode (cheader_filename = "atk/atk.h")]
458         public class Util : GLib.Object {
459                 [NoWrapper]
460                 public virtual uint add_global_event_listener (GLib.SignalEmissionHook listener, string event_type);
461                 [NoWrapper]
462                 public virtual uint add_key_event_listener (Atk.KeySnoopFunc listener, void* data);
463                 [NoWrapper]
464                 public virtual weak Atk.Object get_root ();
465                 [NoWrapper]
466                 public virtual weak string get_toolkit_name ();
467                 [NoWrapper]
468                 public virtual weak string get_toolkit_version ();
469                 [NoWrapper]
470                 public virtual void remove_global_event_listener (uint listener_id);
471                 [NoWrapper]
472                 public virtual void remove_key_event_listener (uint listener_id);
473         }
474         [CCode (cheader_filename = "atk/atk.h")]
475         public interface Action {
476                 public abstract bool do_action (int i);
477                 public abstract weak string get_description (int i);
478                 public abstract weak string get_keybinding (int i);
479                 public abstract weak string get_localized_name (int i);
480                 public abstract int get_n_actions ();
481                 public abstract weak string get_name (int i);
482                 public abstract bool set_description (int i, string desc);
483         }
484         [CCode (cheader_filename = "atk/atk.h")]
485         public interface Component {
486                 public abstract uint add_focus_handler (Atk.FocusHandler handler);
487                 public abstract bool contains (int x, int y, Atk.CoordType coord_type);
488                 public abstract double get_alpha ();
489                 public abstract void get_extents (int x, int y, int width, int height, Atk.CoordType coord_type);
490                 public abstract Atk.Layer get_layer ();
491                 public abstract int get_mdi_zorder ();
492                 public abstract void get_position (int x, int y, Atk.CoordType coord_type);
493                 public abstract void get_size (int width, int height);
494                 public abstract bool grab_focus ();
495                 public abstract weak Atk.Object ref_accessible_at_point (int x, int y, Atk.CoordType coord_type);
496                 public abstract void remove_focus_handler (uint handler_id);
497                 public abstract bool set_extents (int x, int y, int width, int height, Atk.CoordType coord_type);
498                 public abstract bool set_position (int x, int y, Atk.CoordType coord_type);
499                 public abstract bool set_size (int width, int height);
500                 public virtual signal void bounds_changed (Atk.Rectangle bounds);
501         }
502         [CCode (cheader_filename = "atk/atk.h")]
503         public interface Document {
504                 public weak string get_attribute_value (string attribute_name);
505                 public weak Atk.AttributeSet get_attributes ();
506                 public weak string get_locale ();
507                 public bool set_attribute_value (string attribute_name, string attribute_value);
508                 public abstract void* get_document ();
509                 [NoWrapper]
510                 public abstract weak string get_document_attribute_value (string attribute_name);
511                 [NoWrapper]
512                 public abstract weak Atk.AttributeSet get_document_attributes ();
513                 [NoWrapper]
514                 public abstract weak string get_document_locale ();
515                 public abstract weak string get_document_type ();
516                 [NoWrapper]
517                 public abstract bool set_document_attribute (string attribute_name, string attribute_value);
518                 public virtual signal void load_complete ();
519                 public virtual signal void load_stopped ();
520                 public virtual signal void reload ();
521         }
522         [CCode (cheader_filename = "atk/atk.h")]
523         public interface EditableText {
524                 public abstract void copy_text (int start_pos, int end_pos);
525                 public abstract void cut_text (int start_pos, int end_pos);
526                 public abstract void delete_text (int start_pos, int end_pos);
527                 public abstract void insert_text (string str, int length, int position);
528                 public abstract void paste_text (int position);
529                 public abstract bool set_run_attributes (Atk.AttributeSet attrib_set, int start_offset, int end_offset);
530                 public abstract void set_text_contents (string str);
531         }
532         [CCode (cheader_filename = "atk/atk.h")]
533         public interface HyperlinkImpl {
534                 public abstract weak Atk.Hyperlink get_hyperlink ();
535         }
536         [CCode (cheader_filename = "atk/atk.h")]
537         public interface Hypertext {
538                 public abstract weak Atk.Hyperlink get_link (int link_index);
539                 public abstract int get_link_index (int char_index);
540                 public abstract int get_n_links ();
541                 public virtual signal void link_selected (int link_index);
542         }
543         [CCode (cheader_filename = "atk/atk.h")]
544         public interface Image {
545                 public abstract weak string get_image_description ();
546                 public abstract weak string get_image_locale ();
547                 public abstract void get_image_position (int x, int y, Atk.CoordType coord_type);
548                 public abstract void get_image_size (int width, int height);
549                 public abstract bool set_image_description (string description);
550         }
551         [CCode (cheader_filename = "atk/atk.h")]
552         public interface Implementor {
553                 public abstract weak Atk.Object ref_accessible ();
554         }
555         [CCode (cheader_filename = "atk/atk.h")]
556         public interface Selection {
557                 public abstract bool add_selection (int i);
558                 public abstract bool clear_selection ();
559                 public abstract int get_selection_count ();
560                 public abstract bool is_child_selected (int i);
561                 public abstract weak Atk.Object ref_selection (int i);
562                 public abstract bool remove_selection (int i);
563                 public abstract bool select_all_selection ();
564                 public virtual signal void selection_changed ();
565         }
566         [CCode (cheader_filename = "atk/atk.h")]
567         public interface StreamableContent {
568                 public abstract weak string get_mime_type (int i);
569                 public abstract int get_n_mime_types ();
570                 public abstract weak GLib.IOChannel get_stream (string mime_type);
571                 public abstract weak string get_uri (string mime_type);
572         }
573         [CCode (cheader_filename = "atk/atk.h")]
574         public interface Table {
575                 public abstract bool add_column_selection (int column);
576                 public abstract bool add_row_selection (int row);
577                 public abstract weak Atk.Object get_caption ();
578                 public abstract int get_column_at_index (int index_);
579                 public abstract weak string get_column_description (int column);
580                 public abstract int get_column_extent_at (int row, int column);
581                 public abstract weak Atk.Object get_column_header (int column);
582                 public abstract int get_index_at (int row, int column);
583                 public abstract int get_n_columns ();
584                 public abstract int get_n_rows ();
585                 public abstract int get_row_at_index (int index_);
586                 public abstract weak string get_row_description (int row);
587                 public abstract int get_row_extent_at (int row, int column);
588                 public abstract weak Atk.Object get_row_header (int row);
589                 public abstract int get_selected_columns (int selected);
590                 public abstract int get_selected_rows (int selected);
591                 public abstract weak Atk.Object get_summary ();
592                 public abstract bool is_column_selected (int column);
593                 public abstract bool is_row_selected (int row);
594                 public abstract bool is_selected (int row, int column);
595                 public abstract weak Atk.Object ref_at (int row, int column);
596                 public abstract bool remove_column_selection (int column);
597                 public abstract bool remove_row_selection (int row);
598                 public abstract void set_caption (Atk.Object caption);
599                 public abstract void set_column_description (int column, string description);
600                 public abstract void set_column_header (int column, Atk.Object header);
601                 public abstract void set_row_description (int row, string description);
602                 public abstract void set_row_header (int row, Atk.Object header);
603                 public abstract void set_summary (Atk.Object accessible);
604                 public virtual signal void column_deleted (int column, int num_deleted);
605                 public virtual signal void column_inserted (int column, int num_inserted);
606                 public virtual signal void column_reordered ();
607                 public virtual signal void model_changed ();
608                 public virtual signal void row_deleted (int row, int num_deleted);
609                 public virtual signal void row_inserted (int row, int num_inserted);
610                 public virtual signal void row_reordered ();
611         }
612         [CCode (cheader_filename = "atk/atk.h")]
613         public interface Text {
614                 public static Atk.TextAttribute attribute_for_name (string name);
615                 public static weak string attribute_get_name (Atk.TextAttribute attr);
616                 public static weak string attribute_get_value (Atk.TextAttribute attr, int index_);
617                 public static Atk.TextAttribute attribute_register (string name);
618                 public static void free_ranges (out weak Atk.TextRange ranges);
619                 public abstract bool add_selection (int start_offset, int end_offset);
620                 public abstract weak Atk.TextRange get_bounded_ranges (Atk.TextRectangle rect, Atk.CoordType coord_type, Atk.TextClipType x_clip_type, Atk.TextClipType y_clip_type);
621                 public abstract int get_caret_offset ();
622                 public abstract unichar get_character_at_offset (int offset);
623                 public abstract int get_character_count ();
624                 public abstract void get_character_extents (int offset, int x, int y, int width, int height, Atk.CoordType coords);
625                 public abstract weak Atk.AttributeSet get_default_attributes ();
626                 public abstract int get_n_selections ();
627                 public abstract int get_offset_at_point (int x, int y, Atk.CoordType coords);
628                 public abstract void get_range_extents (int start_offset, int end_offset, Atk.CoordType coord_type, Atk.TextRectangle rect);
629                 public abstract weak Atk.AttributeSet get_run_attributes (int offset, int start_offset, int end_offset);
630                 public abstract weak string get_selection (int selection_num, int start_offset, int end_offset);
631                 public abstract weak string get_text (int start_offset, int end_offset);
632                 public abstract weak string get_text_after_offset (int offset, Atk.TextBoundary boundary_type, int start_offset, int end_offset);
633                 public abstract weak string get_text_at_offset (int offset, Atk.TextBoundary boundary_type, int start_offset, int end_offset);
634                 public abstract weak string get_text_before_offset (int offset, Atk.TextBoundary boundary_type, int start_offset, int end_offset);
635                 public abstract bool remove_selection (int selection_num);
636                 public abstract bool set_caret_offset (int offset);
637                 public abstract bool set_selection (int selection_num, int start_offset, int end_offset);
638                 public virtual signal void text_attributes_changed ();
639                 public virtual signal void text_caret_moved (int location);
640                 public virtual signal void text_changed (int position, int length);
641                 public virtual signal void text_selection_changed ();
642         }
643         [CCode (cheader_filename = "atk/atk.h")]
644         public interface Value {
645                 public abstract void get_current_value (GLib.Value value);
646                 public abstract void get_maximum_value (GLib.Value value);
647                 public abstract void get_minimum_increment (GLib.Value value);
648                 public abstract void get_minimum_value (GLib.Value value);
649                 public abstract bool set_current_value (GLib.Value value);
650         }
651         [CCode (type_id = "ATK_TYPE_RECTANGLE", cheader_filename = "atk/atk.h")]
652         public struct Rectangle {
653                 public int x;
654                 public int y;
655                 public int width;
656                 public int height;
657         }
658         [CCode (cheader_filename = "atk/atk.h")]
659         public static delegate void EventListener (Atk.Object obj);
660         [CCode (cheader_filename = "atk/atk.h")]
661         public static delegate void EventListenerInit ();
662         [CCode (cheader_filename = "atk/atk.h")]
663         public static delegate void FocusHandler (Atk.Object p1, bool p2);
664         [CCode (cheader_filename = "atk/atk.h")]
665         public delegate bool Function ();
666         [CCode (cheader_filename = "atk/atk.h")]
667         public static delegate int KeySnoopFunc (Atk.KeyEventStruct event, void* func_data);
668         [CCode (cheader_filename = "atk/atk.h")]
669         public static delegate void PropertyChangeHandler (Atk.Object p1, Atk.PropertyValues p2);
670         [CCode (cheader_filename = "atk/atk.h")]
671         public static uint add_focus_tracker (Atk.EventListener focus_tracker);
672         [CCode (cheader_filename = "atk/atk.h")]
673         public static uint add_global_event_listener (GLib.SignalEmissionHook listener, string event_type);
674         [CCode (cheader_filename = "atk/atk.h")]
675         public static uint add_key_event_listener (Atk.KeySnoopFunc listener, void* data);
676         [CCode (cheader_filename = "atk/atk.h")]
677         public static void focus_tracker_init (Atk.EventListenerInit init);
678         [CCode (cheader_filename = "atk/atk.h")]
679         public static void focus_tracker_notify (Atk.Object object);
680         [CCode (cheader_filename = "atk/atk.h")]
681         public static weak Atk.Registry get_default_registry ();
682         [CCode (cheader_filename = "atk/atk.h")]
683         public static weak Atk.Object get_focus_object ();
684         [CCode (cheader_filename = "atk/atk.h")]
685         public static weak Atk.Object get_root ();
686         [CCode (cheader_filename = "atk/atk.h")]
687         public static weak string get_toolkit_name ();
688         [CCode (cheader_filename = "atk/atk.h")]
689         public static weak string get_toolkit_version ();
690         [CCode (cheader_filename = "atk/atk.h")]
691         public static weak string get_version ();
692         [CCode (cheader_filename = "atk/atk.h")]
693         public static void remove_focus_tracker (uint tracker_id);
694         [CCode (cheader_filename = "atk/atk.h")]
695         public static void remove_global_event_listener (uint listener_id);
696         [CCode (cheader_filename = "atk/atk.h")]
697         public static void remove_key_event_listener (uint listener_id);
698         [CCode (cheader_filename = "atk/atk.h")]
699         public static Atk.Role role_for_name (string name);
700         [CCode (cheader_filename = "atk/atk.h")]
701         public static weak string role_get_localized_name (Atk.Role role);
702         [CCode (cheader_filename = "atk/atk.h")]
703         public static weak string role_get_name (Atk.Role role);
704         [CCode (cheader_filename = "atk/atk.h")]
705         public static Atk.Role role_register (string name);