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 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288
|
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gtk {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class Global {
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_alternative_dialog_button_order(IntPtr screen);
[Obsolete]
public static bool AlternativeDialogButtonOrder(Gdk.Screen screen) {
bool raw_ret = gtk_alternative_dialog_button_order(screen == null ? IntPtr.Zero : screen.Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_check_version(uint required_major, uint required_minor, uint required_micro);
public static string CheckVersion(uint required_major, uint required_minor, uint required_micro) {
IntPtr raw_ret = gtk_check_version(required_major, required_minor, required_micro);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_disable_setlocale();
public static void DisableSetlocale() {
gtk_disable_setlocale();
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gtk_distribute_natural_allocation(int extra_space, uint n_requested_sizes, IntPtr sizes);
public static int DistributeNaturalAllocation(int extra_space, uint n_requested_sizes, Gtk.RequestedSize sizes) {
IntPtr native_sizes = GLib.Marshaller.StructureToPtrAlloc (sizes);
int raw_ret = gtk_distribute_natural_allocation(extra_space, n_requested_sizes, native_sizes);
int ret = raw_ret;
Marshal.FreeHGlobal (native_sizes);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_draw_insertion_cursor(IntPtr widget, IntPtr cr, IntPtr location, bool is_primary, int direction, bool draw_arrow);
[Obsolete]
public static void DrawInsertionCursor(Gtk.Widget widget, Cairo.Context cr, Gdk.Rectangle location, bool is_primary, Gtk.TextDirection direction, bool draw_arrow) {
IntPtr native_location = GLib.Marshaller.StructureToPtrAlloc (location);
gtk_draw_insertion_cursor(widget == null ? IntPtr.Zero : widget.Handle, cr == null ? IntPtr.Zero : cr.Handle, native_location, is_primary, (int) direction, draw_arrow);
Marshal.FreeHGlobal (native_location);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_events_pending();
public static bool EventsPending {
get {
bool raw_ret = gtk_events_pending();
bool ret = raw_ret;
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gtk_get_binary_age();
public static uint BinaryAge {
get {
uint raw_ret = gtk_get_binary_age();
uint ret = raw_ret;
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_get_current_event();
public static Gdk.Event CurrentEvent {
get {
IntPtr raw_ret = gtk_get_current_event();
Gdk.Event ret = Gdk.Event.GetEvent (raw_ret);
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_get_current_event_device();
public static Gdk.Device CurrentEventDevice {
get {
IntPtr raw_ret = gtk_get_current_event_device();
Gdk.Device ret = GLib.Object.GetObject(raw_ret) as Gdk.Device;
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_get_current_event_state(out int state);
public static bool GetCurrentEventState(out Gdk.ModifierType state) {
int native_state;
bool raw_ret = gtk_get_current_event_state(out native_state);
bool ret = raw_ret;
state = (Gdk.ModifierType) native_state;
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gtk_get_current_event_time();
public static uint CurrentEventTime {
get {
uint raw_ret = gtk_get_current_event_time();
uint ret = raw_ret;
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gtk_get_debug_flags();
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_set_debug_flags(uint flags);
public static uint DebugFlags {
get {
uint raw_ret = gtk_get_debug_flags();
uint ret = raw_ret;
return ret;
}
set {
gtk_set_debug_flags(value);
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_get_default_language();
public static Pango.Language DefaultLanguage {
get {
IntPtr raw_ret = gtk_get_default_language();
Pango.Language ret = raw_ret == IntPtr.Zero ? null : (Pango.Language) GLib.Opaque.GetOpaque (raw_ret, typeof (Pango.Language), false);
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_get_event_widget(IntPtr evnt);
public static Gtk.Widget GetEventWidget(Gdk.Event evnt) {
IntPtr raw_ret = gtk_get_event_widget(evnt == null ? IntPtr.Zero : evnt.Handle);
Gtk.Widget ret = GLib.Object.GetObject(raw_ret) as Gtk.Widget;
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gtk_get_interface_age();
public static uint InterfaceAge {
get {
uint raw_ret = gtk_get_interface_age();
uint ret = raw_ret;
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gtk_get_locale_direction();
public static Gtk.TextDirection LocaleDirection {
get {
int raw_ret = gtk_get_locale_direction();
Gtk.TextDirection ret = (Gtk.TextDirection) raw_ret;
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gtk_get_major_version();
public static uint MajorVersion {
get {
uint raw_ret = gtk_get_major_version();
uint ret = raw_ret;
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gtk_get_micro_version();
public static uint MicroVersion {
get {
uint raw_ret = gtk_get_micro_version();
uint ret = raw_ret;
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gtk_get_minor_version();
public static uint MinorVersion {
get {
uint raw_ret = gtk_get_minor_version();
uint ret = raw_ret;
return ret;
}
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gtk_normalise_detailed_action_name(IntPtr detailed_action_name);
public static string NormaliseDetailedActionName(string detailed_action_name) {
IntPtr native_detailed_action_name = GLib.Marshaller.StringToPtrGStrdup (detailed_action_name);
IntPtr raw_ret = gtk_normalise_detailed_action_name(native_detailed_action_name);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
GLib.Marshaller.Free (native_detailed_action_name);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_parse_args(out int argc, IntPtr argv);
public static bool ParseArgs(out int argc, string argv) {
bool raw_ret = gtk_parse_args(out argc, GLib.Marshaller.StringToPtrGStrdup(argv));
bool ret = raw_ret;
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_propagate_event(IntPtr widget, IntPtr evnt);
public static void PropagateEvent(Gtk.Widget widget, Gdk.Event evnt) {
gtk_propagate_event(widget == null ? IntPtr.Zero : widget.Handle, evnt == null ? IntPtr.Zero : evnt.Handle);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gtk_rgb_to_hsv(double r, double g, double b, out double h, out double s, out double v);
public static void RgbToHsv(double r, double g, double b, out double h, out double s, out double v) {
gtk_rgb_to_hsv(r, g, b, out h, out s, out v);
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe bool gtk_show_uri(IntPtr screen, IntPtr uri, uint timestamp, out IntPtr error);
public static unsafe bool ShowUri(Gdk.Screen screen, string uri, uint timestamp) {
IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
IntPtr error = IntPtr.Zero;
bool raw_ret = gtk_show_uri(screen == null ? IntPtr.Zero : screen.Handle, native_uri, timestamp, out error);
bool ret = raw_ret;
GLib.Marshaller.Free (native_uri);
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe bool gtk_show_uri_on_window(IntPtr parent, IntPtr uri, uint timestamp, out IntPtr error);
public static unsafe bool ShowUriOnWindow(Gtk.Window parent, string uri, uint timestamp) {
IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
IntPtr error = IntPtr.Zero;
bool raw_ret = gtk_show_uri_on_window(parent == null ? IntPtr.Zero : parent.Handle, native_uri, timestamp, out error);
bool ret = raw_ret;
GLib.Marshaller.Free (native_uri);
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gtk_bindings_activate(IntPtr objekt, uint keyval, int modifiers);
public static bool BindingsActivate(GLib.Object objekt, uint keyval, Gdk.ModifierType modifiers) {
bool raw_ret = gtk_bindings_activate(objekt == null ? IntPtr.Zero : objekt.Handle, keyval, (int) modifiers);
bool ret = raw_ret;
return ret;
}
#endregion
}
}
|