diff options
author | Rico Tzschichholz <ricotz@t-online.de> | 2013-09-11 12:09:58 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2013-09-11 12:09:58 +0200 |
commit | e950e31c13d96d392d637af0fd1c54e240a9f2da (patch) | |
tree | a5ea759aff94d7382d44e2d9ba781a539685161c /vapi/atspi-2.vapi | |
parent | a2dc15d3296d2a5b8919d944b6d9e50801fd63bf (diff) | |
download | vala-e950e31c13d96d392d637af0fd1c54e240a9f2da.tar.gz |
atspi-2: Update to 2.9.91
Diffstat (limited to 'vapi/atspi-2.vapi')
-rw-r--r-- | vapi/atspi-2.vapi | 90 |
1 files changed, 70 insertions, 20 deletions
diff --git a/vapi/atspi-2.vapi b/vapi/atspi-2.vapi index 914e62d02..8085c2132 100644 --- a/vapi/atspi-2.vapi +++ b/vapi/atspi-2.vapi @@ -16,39 +16,62 @@ namespace Atspi { [CCode (has_construct_function = false)] protected Accessible (); public void clear_cache (); + [Deprecated (since = "2.10")] public Atspi.Action get_action (); + public Atspi.Action get_action_iface (); public Atspi.Accessible get_application () throws GLib.Error; public string get_atspi_version () throws GLib.Error; public GLib.HashTable<string,string> get_attributes () throws GLib.Error; public GLib.Array<string> get_attributes_as_array () throws GLib.Error; public Atspi.Accessible get_child_at_index (int child_index) throws GLib.Error; public int get_child_count () throws GLib.Error; + [Deprecated (since = "2.10")] public Atspi.Collection get_collection (); + public Atspi.Collection get_collection_iface (); + [Deprecated (since = "2.10")] public Atspi.Component get_component (); + public Atspi.Component get_component_iface (); public string get_description () throws GLib.Error; + [Deprecated (since = "2.10")] public Atspi.Document get_document (); + public Atspi.Document get_document_iface (); + [Deprecated (since = "2.10")] public Atspi.EditableText get_editable_text (); + public Atspi.EditableText get_editable_text_iface (); public Atspi.Hyperlink get_hyperlink (); + [Deprecated (since = "2.10")] public Atspi.Hypertext get_hypertext (); + public Atspi.Hypertext get_hypertext_iface (); public int get_id () throws GLib.Error; + [Deprecated (since = "2.10")] public Atspi.Image get_image (); + public Atspi.Image get_image_iface (); public int get_index_in_parent () throws GLib.Error; public GLib.Array<string> get_interfaces (); public string get_localized_role_name () throws GLib.Error; public string get_name () throws GLib.Error; + public unowned string get_object_locale () throws GLib.Error; public Atspi.Accessible get_parent () throws GLib.Error; public uint get_process_id () throws GLib.Error; public GLib.Array<Atspi.Accessible> get_relation_set () throws GLib.Error; public Atspi.Role get_role () throws GLib.Error; public string get_role_name () throws GLib.Error; + [Deprecated (since = "2.10")] public Atspi.Selection get_selection (); + public Atspi.Selection get_selection_iface (); public Atspi.StateSet get_state_set (); + [Deprecated (since = "2.10")] public Atspi.Table get_table (); + public Atspi.Table get_table_iface (); + [Deprecated (since = "2.10")] public Atspi.Text get_text (); + public Atspi.Text get_text_iface (); public string get_toolkit_name () throws GLib.Error; public string get_toolkit_version () throws GLib.Error; + [Deprecated (since = "2.10")] public Atspi.Value get_value (); - public void set_cache_mask (int mask); + public Atspi.Value get_value_iface (); + public void set_cache_mask (Atspi.Cache mask); } [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_device_listener_get_type ()")] public class DeviceListener : GLib.Object { @@ -58,7 +81,7 @@ namespace Atspi { public DeviceListener (owned Atspi.DeviceListenerCB callback); public void add_callback ([CCode (delegate_target_pos = 1.2, destroy_notify_pos = 1.1)] owned Atspi.DeviceListenerCB callback); [NoWrapper] - public virtual bool device_event (Atspi.DeviceEvent arg0); + public virtual bool device_event (Atspi.DeviceEvent arg1); public void remove_callback (Atspi.DeviceListenerCB callback); [CCode (has_construct_function = false)] public DeviceListener.simple ([CCode (destroy_notify_pos = 1.1)] owned Atspi.DeviceListenerSimpleCB callback); @@ -190,10 +213,14 @@ namespace Atspi { [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_action_get_type ()")] public interface Action : GLib.Object { public bool do_action (int i) throws GLib.Error; + public string get_action_description (int i) throws GLib.Error; + public string get_action_name (int i) throws GLib.Error; + [Deprecated (since = "2.10")] public string get_description (int i) throws GLib.Error; public string get_key_binding (int i) throws GLib.Error; public string get_localized_name (int i) throws GLib.Error; public int get_n_actions () throws GLib.Error; + [Deprecated (since = "2.10")] public string get_name (int i) throws GLib.Error; } [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_collection_get_type ()")] @@ -220,8 +247,12 @@ namespace Atspi { } [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_document_get_type ()")] public interface Document : GLib.Object { + [Deprecated (since = "2.10")] public string get_attribute_value (string attribute) throws GLib.Error; + [Deprecated (since = "2.10")] public GLib.HashTable<string,string> get_attributes () throws GLib.Error; + public string get_document_attribute_value (string attribute) throws GLib.Error; + public GLib.HashTable<string,string> get_document_attributes () throws GLib.Error; public string get_locale () throws GLib.Error; } [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_editable_text_get_type ()")] @@ -291,7 +322,9 @@ namespace Atspi { public interface Text : GLib.Object { public bool add_selection (int start_offset, int end_offset) throws GLib.Error; public GLib.HashTable<string,string> get_attribute_run (int offset, bool include_defaults, out int start_offset, out int end_offset) throws GLib.Error; + [Deprecated (since = "2.10")] public string get_attribute_value (int offset, string attribute_name) throws GLib.Error; + [Deprecated (since = "2.10")] public GLib.HashTable<string,string> get_attributes (int offset, out int start_offset, out int end_offset) throws GLib.Error; public GLib.Array<Atspi.TextRange> get_bounded_ranges (int x, int y, int width, int height, Atspi.CoordType type, Atspi.TextClipType clipTypeX, Atspi.TextClipType clipTypeY) throws GLib.Error; public int get_caret_offset () throws GLib.Error; @@ -303,9 +336,13 @@ namespace Atspi { public int get_offset_at_point (int x, int y, Atspi.CoordType type) throws GLib.Error; public Atspi.Rect get_range_extents (int start_offset, int end_offset, Atspi.CoordType type) throws GLib.Error; public Atspi.Range get_selection (int selection_num) throws GLib.Error; + public Atspi.TextRange get_string_at_offset (int offset, Atspi.TextGranularity granularity) throws GLib.Error; public string get_text (int start_offset, int end_offset) throws GLib.Error; public Atspi.TextRange get_text_after_offset (int offset, Atspi.TextBoundaryType type) throws GLib.Error; + [Deprecated (since = "2.10")] public Atspi.TextRange get_text_at_offset (int offset, Atspi.TextBoundaryType type) throws GLib.Error; + public string get_text_attribute_value (int offset, string attribute_name) throws GLib.Error; + public GLib.HashTable<string,string> get_text_attributes (int offset, out int start_offset, out int end_offset) throws GLib.Error; public Atspi.TextRange get_text_before_offset (int offset, Atspi.TextBoundaryType type) throws GLib.Error; public bool remove_selection (int selection_num) throws GLib.Error; public bool set_caret_offset (int new_offset) throws GLib.Error; @@ -383,7 +420,7 @@ namespace Atspi { public weak string keystrings; public short len; } - [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_CACHE_", has_type_id = false)] + [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_CACHE_", type_id = "atspi_cache_get_type ()")] [Flags] public enum Cache { NONE, @@ -399,7 +436,7 @@ namespace Atspi { DEFAULT, UNDEFINED } - [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_Collection_MATCH_", has_type_id = false)] + [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_Collection_MATCH_", type_id = "atspi_collection_match_type_get_type ()")] public enum CollectionMatchType { INVALID, ALL, @@ -408,7 +445,7 @@ namespace Atspi { EMPTY, LAST_DEFINED } - [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_Collection_SORT_ORDER_", has_type_id = false)] + [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_Collection_SORT_ORDER_", type_id = "atspi_collection_sort_order_get_type ()")] public enum CollectionSortOrder { INVALID, CANONICAL, @@ -419,14 +456,14 @@ namespace Atspi { REVERSE_TAB, LAST_DEFINED } - [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_Collection_TREE_", has_type_id = false)] + [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_Collection_TREE_", type_id = "atspi_collection_tree_traversal_type_get_type ()")] public enum CollectionTreeTraversalType { RESTRICT_CHILDREN, RESTRICT_SIBLING, INORDER, LAST_DEFINED } - [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_LAYER_", has_type_id = false)] + [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_LAYER_", type_id = "atspi_component_layer_get_type ()")] public enum ComponentLayer { INVALID, BACKGROUND, @@ -438,7 +475,7 @@ namespace Atspi { WINDOW, LAST_DEFINED } - [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_COORD_TYPE_", has_type_id = false)] + [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_COORD_TYPE_", type_id = "atspi_coord_type_get_type ()")] public enum CoordType { SCREEN, WINDOW @@ -448,26 +485,27 @@ namespace Atspi { APPLICATION_GONE, IPC } - [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_", has_type_id = false)] + [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_", type_id = "atspi_event_type_get_type ()")] public enum EventType { KEY_PRESSED_EVENT, KEY_RELEASED_EVENT, BUTTON_PRESSED_EVENT, BUTTON_RELEASED_EVENT } - [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_KEY_", has_type_id = false)] + [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_KEY_", type_id = "atspi_key_event_type_get_type ()")] public enum KeyEventType { PRESSED, RELEASED } - [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_KEYLISTENER_", has_type_id = false)] + [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_KEYLISTENER_", type_id = "atspi_key_listener_sync_type_get_type ()")] + [Flags] public enum KeyListenerSyncType { NOSYNC, SYNCHRONOUS, CANCONSUME, ALL_WINDOWS } - [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_KEY_", has_type_id = false)] + [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_KEY_", type_id = "atspi_key_synth_type_get_type ()")] public enum KeySynthType { PRESS, RELEASE, @@ -475,7 +513,7 @@ namespace Atspi { SYM, STRING } - [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_LOCALE_TYPE_", has_type_id = false)] + [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_LOCALE_TYPE_", type_id = "atspi_locale_type_get_type ()")] public enum LocaleType { MESSAGES, COLLATE, @@ -484,7 +522,7 @@ namespace Atspi { NUMERIC, TIME } - [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_MODIFIER_", has_type_id = false)] + [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_MODIFIER_", type_id = "atspi_modifier_type_get_type ()")] public enum ModifierType { SHIFT, SHIFTLOCK, @@ -495,7 +533,7 @@ namespace Atspi { META3, NUMLOCK } - [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_RELATION_", has_type_id = false)] + [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_RELATION_", type_id = "atspi_relation_type_get_type ()")] public enum RelationType { NULL, LABEL_FOR, @@ -518,7 +556,7 @@ namespace Atspi { DESCRIBED_BY, LAST_DEFINED } - [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_ROLE_", has_type_id = false)] + [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_ROLE_", type_id = "atspi_role_get_type ()")] public enum Role { INVALID, ACCELERATOR_LABEL, @@ -627,7 +665,7 @@ namespace Atspi { LAST_DEFINED; public static string get_name (Atspi.Role role); } - [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_STATE_", has_type_id = false)] + [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_STATE_", type_id = "atspi_state_type_get_type ()")] public enum StateType { INVALID, ACTIVE, @@ -672,7 +710,7 @@ namespace Atspi { VISITED, LAST_DEFINED } - [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_TEXT_BOUNDARY_", has_type_id = false)] + [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_TEXT_BOUNDARY_", type_id = "atspi_text_boundary_type_get_type ()")] public enum TextBoundaryType { CHAR, WORD_START, @@ -682,13 +720,21 @@ namespace Atspi { LINE_START, LINE_END } - [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_TEXT_CLIP_", has_type_id = false)] + [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_TEXT_CLIP_", type_id = "atspi_text_clip_type_get_type ()")] public enum TextClipType { NONE, MIN, MAX, BOTH } + [CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_TEXT_GRANULARITY_", type_id = "atspi_text_granularity_get_type ()")] + public enum TextGranularity { + CHAR, + WORD, + SENTENCE, + LINE, + PARAGRAPH + } [CCode (cheader_filename = "atspi/atspi.h", instance_pos = 1.9)] public delegate bool DeviceListenerCB (owned Atspi.DeviceEvent stroke); [CCode (cheader_filename = "atspi/atspi.h", has_target = false)] @@ -794,9 +840,13 @@ namespace Atspi { [CCode (cheader_filename = "atspi/atspi.h")] public static int init (); [CCode (cheader_filename = "atspi/atspi.h")] + public static bool is_initialized (); + [CCode (cheader_filename = "atspi/atspi.h")] public static bool register_device_event_listener (Atspi.DeviceListener listener, Atspi.DeviceEventMask event_types, void* filter) throws GLib.Error; [CCode (cheader_filename = "atspi/atspi.h")] - public static bool register_keystroke_listener (Atspi.DeviceListener listener, GLib.Array<Atspi.KeyDefinition>? key_set, Atspi.KeyMaskType modmask, Atspi.KeyEventMask event_types, int sync_type) throws GLib.Error; + public static bool register_keystroke_listener (Atspi.DeviceListener listener, GLib.Array<Atspi.KeyDefinition>? key_set, Atspi.KeyMaskType modmask, Atspi.KeyEventMask event_types, Atspi.KeyListenerSyncType sync_type) throws GLib.Error; + [CCode (cheader_filename = "atspi/atspi.h")] + public static void set_main_context (GLib.MainContext cnx); [CCode (cheader_filename = "atspi/atspi.h")] public static void set_timeout (int val, int startup_time); } |