1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219
|
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Atk {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class Global {
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint atk_add_focus_tracker(AtkSharp.EventListenerNative focus_tracker);
[Obsolete]
public static uint AddFocusTracker(Atk.EventListener focus_tracker) {
AtkSharp.EventListenerWrapper focus_tracker_wrapper = new AtkSharp.EventListenerWrapper (focus_tracker);
uint raw_ret = atk_add_focus_tracker(focus_tracker_wrapper.NativeDelegate);
uint ret = raw_ret;
return ret;
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint atk_add_key_event_listener(AtkSharp.KeySnoopFuncNative listener, IntPtr data);
public static uint AddKeyEventListener(Atk.KeySnoopFunc listener) {
AtkSharp.KeySnoopFuncWrapper listener_wrapper = new AtkSharp.KeySnoopFuncWrapper (listener);
uint raw_ret = atk_add_key_event_listener(listener_wrapper.NativeDelegate, IntPtr.Zero);
uint ret = raw_ret;
return ret;
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint atk_get_binary_age();
public static uint BinaryAge {
get {
uint raw_ret = atk_get_binary_age();
uint ret = raw_ret;
return ret;
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr atk_get_default_registry();
public static Atk.Registry DefaultRegistry {
get {
IntPtr raw_ret = atk_get_default_registry();
Atk.Registry ret = GLib.Object.GetObject(raw_ret) as Atk.Registry;
return ret;
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr atk_get_focus_object();
public static Atk.Object FocusObject {
get {
IntPtr raw_ret = atk_get_focus_object();
Atk.Object ret = GLib.Object.GetObject(raw_ret) as Atk.Object;
return ret;
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint atk_get_interface_age();
public static uint InterfaceAge {
get {
uint raw_ret = atk_get_interface_age();
uint ret = raw_ret;
return ret;
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint atk_get_major_version();
public static uint MajorVersion {
get {
uint raw_ret = atk_get_major_version();
uint ret = raw_ret;
return ret;
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint atk_get_micro_version();
public static uint MicroVersion {
get {
uint raw_ret = atk_get_micro_version();
uint ret = raw_ret;
return ret;
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint atk_get_minor_version();
public static uint MinorVersion {
get {
uint raw_ret = atk_get_minor_version();
uint ret = raw_ret;
return ret;
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr atk_get_root();
public static Atk.Object Root {
get {
IntPtr raw_ret = atk_get_root();
Atk.Object ret = GLib.Object.GetObject(raw_ret) as Atk.Object;
return ret;
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr atk_get_toolkit_name();
public static string ToolkitName {
get {
IntPtr raw_ret = atk_get_toolkit_name();
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr atk_get_toolkit_version();
public static string ToolkitVersion {
get {
IntPtr raw_ret = atk_get_toolkit_version();
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr atk_get_version();
public static string Version {
get {
IntPtr raw_ret = atk_get_version();
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void atk_remove_focus_tracker(uint tracker_id);
[Obsolete]
public static void RemoveFocusTracker(uint tracker_id) {
atk_remove_focus_tracker(tracker_id);
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void atk_remove_global_event_listener(uint listener_id);
public static void RemoveGlobalEventListener(uint listener_id) {
atk_remove_global_event_listener(listener_id);
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void atk_remove_key_event_listener(uint listener_id);
public static void RemoveKeyEventListener(uint listener_id) {
atk_remove_key_event_listener(listener_id);
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int atk_role_for_name(IntPtr name);
public static Atk.Role RoleForName(string name) {
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
int raw_ret = atk_role_for_name(native_name);
Atk.Role ret = (Atk.Role) raw_ret;
GLib.Marshaller.Free (native_name);
return ret;
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr atk_role_get_localized_name(int role);
public static string RoleGetLocalizedName(Atk.Role role) {
IntPtr raw_ret = atk_role_get_localized_name((int) role);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr atk_role_get_name(int role);
public static string RoleGetName(Atk.Role role) {
IntPtr raw_ret = atk_role_get_name((int) role);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
[DllImport("atk-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int atk_role_register(IntPtr name);
[Obsolete]
public static Atk.Role RoleRegister(string name) {
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
int raw_ret = atk_role_register(native_name);
Atk.Role ret = (Atk.Role) raw_ret;
GLib.Marshaller.Free (native_name);
return ret;
}
#endregion
}
}
|