1 /* atk.vapi generated by lt-vapigen, do not modify. */
3 [CCode (cprefix = "Atk", lower_case_cprefix = "atk_")]
5 [CCode (cprefix = "ATK_XY_", cheader_filename = "atk/atk.h")]
6 public enum CoordType {
10 [CCode (cprefix = "ATK_KEY_EVENT_", cheader_filename = "atk/atk.h")]
11 public enum KeyEventType {
16 [CCode (cprefix = "ATK_LAYER_", cheader_filename = "atk/atk.h")]
27 [CCode (cprefix = "ATK_RELATION_", cheader_filename = "atk/atk.h")]
28 public enum RelationType {
47 [CCode (cprefix = "ATK_ROLE_", cheader_filename = "atk/atk.h")]
139 [CCode (cprefix = "ATK_STATE_", cheader_filename = "atk/atk.h")]
140 public enum StateType {
175 SUPPORTS_AUTOCOMPLETION,
182 [CCode (cprefix = "ATK_TEXT_ATTR_", cheader_filename = "atk/atk.h")]
183 public enum TextAttribute {
214 [CCode (cprefix = "ATK_TEXT_BOUNDARY_", cheader_filename = "atk/atk.h")]
215 public enum TextBoundary {
224 [CCode (cprefix = "ATK_TEXT_CLIP_", cheader_filename = "atk/atk.h")]
225 public enum TextClipType {
231 [CCode (cprefix = "ATK_HYPERLINK_IS_", cheader_filename = "atk/atk.h")]
233 public enum HyperlinkStateFlags {
237 [CCode (cheader_filename = "atk/atk.h")]
238 public class Attribute {
239 public weak string name;
240 public weak string value;
243 [CCode (cheader_filename = "atk/atk.h")]
244 public class AttributeSet {
247 [CCode (cheader_filename = "atk/atk.h")]
248 public class KeyEventStruct {
253 [CCode (cname = "string")]
254 public weak string str;
255 public ushort keycode;
256 public uint timestamp;
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;
266 [CCode (cheader_filename = "atk/atk.h")]
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);
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;
281 [CCode (cheader_filename = "atk/atk.h")]
282 public class TextRectangle {
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 ();
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 ();
304 public virtual uint link_state ();
305 public int end_index { get; }
307 public int number_of_anchors { get; }
309 public bool selected_link { get; }
310 public int start_index { get; }
311 public virtual signal void link_activated ();
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 ();
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);
324 [CCode (cheader_filename = "atk/atk.h")]
325 public class NoOpObjectFactory : Atk.ObjectFactory {
326 [CCode (type = "AtkObjectFactory*", has_construct_function = false)]
327 public NoOpObjectFactory ();
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 ();
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);
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);
363 public int accessible_component_layer { get; }
365 public int accessible_component_mdi_zorder { get; }
367 public string accessible_description { get; set; }
369 public int accessible_hypertext_nlinks { get; }
371 public string accessible_name { get; set; }
373 public Atk.Object accessible_parent { get; set; }
375 public int accessible_role { get; set; }
377 public string accessible_table_caption { get; set; }
379 public Atk.Object accessible_table_caption_object { get; set; }
381 public string accessible_table_column_description { get; set; }
383 public Atk.Object accessible_table_column_header { get; set; }
385 public string accessible_table_row_description { get; set; }
387 public Atk.Object accessible_table_row_header { get; set; }
389 public Atk.Object accessible_table_summary { get; set; }
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 ();
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 ();
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);
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);
425 public Atk.RelationType relation_type { get; set; }
427 public GLib.ValueArray target { get; set; }
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);
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)]
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);
457 [CCode (cheader_filename = "atk/atk.h")]
458 public class Util : GLib.Object {
460 public virtual uint add_global_event_listener (GLib.SignalEmissionHook listener, string event_type);
462 public virtual uint add_key_event_listener (Atk.KeySnoopFunc listener, void* data);
464 public virtual weak Atk.Object get_root ();
466 public virtual weak string get_toolkit_name ();
468 public virtual weak string get_toolkit_version ();
470 public virtual void remove_global_event_listener (uint listener_id);
472 public virtual void remove_key_event_listener (uint listener_id);
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);
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);
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 ();
510 public abstract weak string get_document_attribute_value (string attribute_name);
512 public abstract weak Atk.AttributeSet get_document_attributes ();
514 public abstract weak string get_document_locale ();
515 public abstract weak string get_document_type ();
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 ();
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);
532 [CCode (cheader_filename = "atk/atk.h")]
533 public interface HyperlinkImpl {
534 public abstract weak Atk.Hyperlink get_hyperlink ();
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);
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);
551 [CCode (cheader_filename = "atk/atk.h")]
552 public interface Implementor {
553 public abstract weak Atk.Object ref_accessible ();
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 ();
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);
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 ();
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 ();
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);
651 [CCode (type_id = "ATK_TYPE_RECTANGLE", cheader_filename = "atk/atk.h")]
652 public struct Rectangle {
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);