diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/ATK.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/ATK.java | 363 |
1 files changed, 0 insertions, 363 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/ATK.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/ATK.java deleted file mode 100644 index 77201aabc1..0000000000 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/ATK.java +++ /dev/null @@ -1,363 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2008 IBM Corporation and others. All rights reserved. - * The contents of this file are made available under the terms - * of the GNU Lesser General Public License (LGPL) Version 2.1 that - * accompanies this distribution (lgpl-v21.txt). The LGPL is also - * available at http://www.gnu.org/licenses/lgpl.html. If the version - * of the LGPL at http://www.gnu.org is different to the version of - * the LGPL accompanying this distribution and there is any conflict - * between the two license versions, the terms of the LGPL accompanying - * this distribution shall govern. - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.swt.internal.accessibility.gtk; - - -import org.eclipse.swt.internal.Library; -import org.eclipse.swt.internal.gtk.OS; - -public class ATK extends OS { - static { - Library.loadLibrary("swt-atk"); - } - - /** Constants */ - public static final int ATK_RELATION_LABELLED_BY = 4; - public static final int ATK_ROLE_CHECK_BOX = 7; - public static final int ATK_ROLE_COMBO_BOX = 11; - public static final int ATK_ROLE_DIALOG = 16; - public static final int ATK_ROLE_DRAWING_AREA = 18; - public static final int ATK_ROLE_WINDOW = 68; - public static final int ATK_ROLE_LABEL = 28; - public static final int ATK_ROLE_LIST = 30; - public static final int ATK_ROLE_LIST_ITEM = 31; - public static final int ATK_ROLE_MENU = 32; - public static final int ATK_ROLE_MENU_BAR = 33; - public static final int ATK_ROLE_MENU_ITEM = 34; - public static final int ATK_ROLE_PAGE_TAB = 36; - public static final int ATK_ROLE_PAGE_TAB_LIST = 37; - public static final int ATK_ROLE_PROGRESS_BAR = 41; - public static final int ATK_ROLE_PUSH_BUTTON = 42; - public static final int ATK_ROLE_RADIO_BUTTON = 43; - public static final int ATK_ROLE_SCROLL_BAR = 47; - public static final int ATK_ROLE_SEPARATOR = 49; - public static final int ATK_ROLE_SLIDER = 50; - public static final int ATK_ROLE_TABLE = 54; - public static final int ATK_ROLE_TABLE_CELL = 55; - public static final int ATK_ROLE_TABLE_COLUMN_HEADER = 56; - public static final int ATK_ROLE_TABLE_ROW_HEADER = 57; - public static final int ATK_ROLE_TEXT = 60; - public static final int ATK_ROLE_TOOL_BAR = 62; - public static final int ATK_ROLE_TOOL_TIP = 63; - public static final int ATK_ROLE_TREE = 64; - public static final int ATK_STATE_ARMED = 2; - public static final int ATK_STATE_BUSY = 3; - public static final int ATK_STATE_CHECKED = 4; - public static final int ATK_STATE_DEFUNCT = 5; - public static final int ATK_STATE_EDITABLE = 6; - public static final int ATK_STATE_ENABLED = 7; - public static final int ATK_STATE_EXPANDED = 9; - public static final int ATK_STATE_FOCUSABLE = 10; - public static final int ATK_STATE_FOCUSED = 11; - public static final int ATK_STATE_MULTISELECTABLE = 16; - public static final int ATK_STATE_PRESSED = 18; - public static final int ATK_STATE_RESIZABLE = 19; - public static final int ATK_STATE_SELECTABLE = 20; - public static final int ATK_STATE_SELECTED = 21; - public static final int ATK_STATE_SHOWING = 23; - public static final int ATK_STATE_TRANSIENT = 26; - public static final int ATK_STATE_VISIBLE = 28; - public static final int ATK_TEXT_BOUNDARY_CHAR = 0; - public static final int ATK_TEXT_BOUNDARY_WORD_START = 1; - public static final int ATK_TEXT_BOUNDARY_WORD_END = 2; - public static final int ATK_TEXT_BOUNDARY_SENTENCE_START = 3; - public static final int ATK_TEXT_BOUNDARY_SENTENCE_END = 4; - public static final int ATK_TEXT_BOUNDARY_LINE_START = 5; - public static final int ATK_TEXT_BOUNDARY_LINE_END = 6; - public static final int ATK_XY_WINDOW = 1; - - /** Signals */ - public static final byte[] selection_changed = OS.ascii ("selection_changed"); - public static final byte[] text_changed_insert = OS.ascii ("text_changed::insert"); - public static final byte[] text_changed_delete = OS.ascii ("text_changed::delete"); - public static final byte[] text_caret_moved = OS.ascii ("text_caret_moved"); - public static final byte[] text_selection_changed = OS.ascii ("text_selection_changed"); - -/** 64 bit */ -public static final native int AtkObjectFactory_sizeof (); -public static final native int AtkObjectFactoryClass_sizeof (); - -/** Natives */ -public static final native int /*long*/ _ATK_ACTION_GET_IFACE (int /*long*/ obj); -public static final int /*long*/ ATK_ACTION_GET_IFACE (int /*long*/ obj) { - lock.lock(); - try { - return _ATK_ACTION_GET_IFACE(obj); - } finally { - lock.unlock(); - } -} -public static final native int /*long*/ _ATK_COMPONENT_GET_IFACE(int /*long*/ atkHandle); -public static final int /*long*/ ATK_COMPONENT_GET_IFACE(int /*long*/ atkHandle) { - lock.lock(); - try { - return _ATK_COMPONENT_GET_IFACE(atkHandle); - } finally { - lock.unlock(); - } -} -public static final native int /*long*/ _ATK_OBJECT_FACTORY_CLASS (int /*long*/ klass); -public static final int /*long*/ ATK_OBJECT_FACTORY_CLASS (int /*long*/ klass) { - lock.lock(); - try { - return _ATK_OBJECT_FACTORY_CLASS(klass); - } finally { - lock.unlock(); - } -} -public static final native int /*long*/ _ATK_SELECTION_GET_IFACE (int /*long*/ obj); -public static final int /*long*/ ATK_SELECTION_GET_IFACE (int /*long*/ obj) { - lock.lock(); - try { - return _ATK_SELECTION_GET_IFACE(obj); - } finally { - lock.unlock(); - } -} -public static final native int /*long*/ _ATK_TEXT_GET_IFACE (int /*long*/ handle); -public static final int /*long*/ ATK_TEXT_GET_IFACE (int /*long*/ handle) { - lock.lock(); - try { - return _ATK_TEXT_GET_IFACE(handle); - } finally { - lock.unlock(); - } -} -public static final native int /*long*/ _GTK_ACCESSIBLE (int /*long*/ handle); -public static final int /*long*/ GTK_ACCESSIBLE (int /*long*/ handle) { - lock.lock(); - try { - return _GTK_ACCESSIBLE(handle); - } finally { - lock.unlock(); - } -} -/** @param object cast=(AtkObject *) */ -public static final native void _atk_focus_tracker_notify (int /*long*/ object); -public static final void atk_focus_tracker_notify (int /*long*/ object) { - lock.lock(); - try { - _atk_focus_tracker_notify(object); - } finally { - lock.unlock(); - } -} -public static final native int /*long*/ _atk_get_default_registry (); -public static final int /*long*/ atk_get_default_registry () { - lock.lock(); - try { - return _atk_get_default_registry(); - } finally { - lock.unlock(); - } -} -/** - * @param factory cast=(AtkObjectFactory *) - * @param obj cast=(GObject *) - */ -public static final native int /*long*/ _atk_object_factory_create_accessible (int /*long*/ factory, int /*long*/ obj); -public static final int /*long*/ atk_object_factory_create_accessible (int /*long*/ factory, int /*long*/ obj) { - lock.lock(); - try { - return _atk_object_factory_create_accessible(factory, obj); - } finally { - lock.unlock(); - } -} -/** @param factory cast=(AtkObjectFactory *) */ -public static final native int /*long*/ _atk_object_factory_get_accessible_type (int /*long*/ factory); -public static final int /*long*/ atk_object_factory_get_accessible_type (int /*long*/ factory) { - lock.lock(); - try { - return _atk_object_factory_get_accessible_type(factory); - } finally { - lock.unlock(); - } -} -/** - * @param accessible cast=(AtkObject *) - * @param data cast=(gpointer) - */ -public static final native void _atk_object_initialize (int /*long*/ accessible, int /*long*/ data); -public static final void atk_object_initialize (int /*long*/ accessible, int /*long*/ data) { - lock.lock(); - try { - _atk_object_initialize(accessible, data); - } finally { - lock.unlock(); - } -} -/** @param accessible cast=(AtkObject *) */ -public static final native int /*long*/ _atk_object_ref_relation_set (int /*long*/ accessible); -public static final int /*long*/ atk_object_ref_relation_set (int /*long*/ accessible) { - lock.lock(); - try { - return _atk_object_ref_relation_set(accessible); - } finally { - lock.unlock(); - } -} -/** - * @param registry cast=(AtkRegistry *) - * @param type cast=(GType) - */ -public static final native int /*long*/ _atk_registry_get_factory (int /*long*/ registry, int /*long*/ type); -public static final int /*long*/ atk_registry_get_factory (int /*long*/ registry, int /*long*/ type) { - lock.lock(); - try { - return _atk_registry_get_factory(registry, type); - } finally { - lock.unlock(); - } -} -/** - * @param registry cast=(AtkRegistry *) - * @param type cast=(GType) - * @param factory_type cast=(GType) - */ -public static final native void _atk_registry_set_factory_type (int /*long*/ registry, int /*long*/ type, int /*long*/ factory_type); -public static final void atk_registry_set_factory_type (int /*long*/ registry, int /*long*/ type, int /*long*/ factory_type) { - lock.lock(); - try { - _atk_registry_set_factory_type(registry, type, factory_type); - } finally { - lock.unlock(); - } -} -/** @param set cast=(AtkRelationSet *) */ -public static final native int _atk_relation_set_get_n_relations (int /*long*/ set); -public static final int atk_relation_set_get_n_relations (int /*long*/ set) { - lock.lock(); - try { - return _atk_relation_set_get_n_relations(set); - } finally { - lock.unlock(); - } -} -/** @param set cast=(AtkRelationSet *) */ -public static final native int /*long*/ _atk_relation_set_get_relation (int /*long*/ set, int i); -public static final int /*long*/ atk_relation_set_get_relation (int /*long*/ set, int i) { - lock.lock(); - try { - return _atk_relation_set_get_relation (set, i); - } finally { - lock.unlock(); - } -} -/** - * @param set cast=(AtkRelationSet *) - * @param relation cast=(AtkRelation *) - */ -public static final native void _atk_relation_set_remove (int /*long*/ set, int /*long*/ relation); -public static final void atk_relation_set_remove (int /*long*/ set, int /*long*/ relation) { - lock.lock(); - try { - _atk_relation_set_remove (set, relation); - } finally { - lock.unlock(); - } -} -/** - * @param set cast=(AtkStateSet *) - * @param type cast=(AtkStateType) - */ -public static final native boolean _atk_state_set_add_state (int /*long*/ set, int type); -public static final boolean atk_state_set_add_state (int /*long*/ set, int type) { - lock.lock(); - try { - return _atk_state_set_add_state(set, type); - } finally { - lock.unlock(); - } -} -public static final native int /*long*/ _atk_state_set_new (); -public static final int /*long*/ atk_state_set_new () { - lock.lock(); - try { - return _atk_state_set_new(); - } finally { - lock.unlock(); - } -} -public static final native int /*long*/ _call (int /*long*/ function, int /*long*/ arg0); -public static final int /*long*/ call (int /*long*/ function, int /*long*/ arg0) { - lock.lock(); - try { - return _call(function, arg0); - } finally { - lock.unlock(); - } -} -public static final native int /*long*/ _call (int /*long*/ function, int /*long*/ arg0, int /*long*/ arg1); -public static final int /*long*/ call (int /*long*/ function, int /*long*/ arg0, int /*long*/ arg1) { - lock.lock(); - try { - return _call(function, arg0, arg1); - } finally { - lock.unlock(); - } -} -public static final native int /*long*/ _call (int /*long*/ function, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2); -public static final int /*long*/ call (int /*long*/ function, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2) { - lock.lock(); - try { - return _call(function, arg0, arg1, arg2); - } finally { - lock.unlock(); - } -} -public static final native int /*long*/ _call (int /*long*/ function, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2, int /*long*/ arg3); -public static final int /*long*/ call (int /*long*/ function, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2, int /*long*/ arg3) { - lock.lock(); - try { - return _call(function, arg0, arg1, arg2, arg3); - } finally { - lock.unlock(); - } -} -public static final native int /*long*/ _call (int /*long*/ function, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2, int /*long*/ arg3, int /*long*/ arg4); -public static final int /*long*/ call (int /*long*/ function, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2, int /*long*/ arg3, int /*long*/ arg4) { - lock.lock(); - try { - return _call(function, arg0, arg1, arg2, arg3, arg4); - } finally { - lock.unlock(); - } -} -public static final native int /*long*/ _call (int /*long*/ function, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2, int /*long*/ arg3, int /*long*/ arg4, int /*long*/ arg5); -public static final int /*long*/ call (int /*long*/ function, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2, int /*long*/ arg3, int /*long*/ arg4, int /*long*/ arg5) { - lock.lock(); - try { - return _call(function, arg0, arg1, arg2, arg3, arg4, arg5); - } finally { - lock.unlock(); - } -} -public static final native void memmove (AtkActionIface dest, int /*long*/ src); -public static final native void memmove (AtkComponentIface dest, int /*long*/ src); -public static final native void memmove (AtkHypertextIface dest, int /*long*/ src); -public static final native void memmove (AtkObjectClass dest, int /*long*/ src); -public static final native void memmove (AtkObjectFactoryClass dest, int /*long*/ src); -public static final native void memmove (AtkSelectionIface dest, int /*long*/ src); -public static final native void memmove (AtkTextIface dest, int /*long*/ src); -public static final native void memmove (GtkAccessible dest, int /*long*/ src); -public static final native void memmove (int /*long*/ dest, AtkActionIface src); -public static final native void memmove (int /*long*/ dest, AtkComponentIface src); -public static final native void memmove (int /*long*/ dest, AtkHypertextIface src); -public static final native void memmove (int /*long*/ dest, AtkObjectClass src); -public static final native void memmove (int /*long*/ dest, AtkObjectFactoryClass src); -public static final native void memmove (int /*long*/ dest, AtkSelectionIface src); -public static final native void memmove (int /*long*/ dest, AtkTextIface src); -} |