File: Gtk_Selection.cs

package info (click to toggle)
gnome-subtitles 1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 103,144 kB
  • sloc: xml: 406,395; cs: 364,495; ansic: 3,104; perl: 1,477; sh: 769; python: 545; javascript: 500; makefile: 49
file content (71 lines) | stat: -rw-r--r-- 3,443 bytes parent folder | download
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
// 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 Selection {

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gtk_selection_add_target(IntPtr widget, IntPtr selection, IntPtr target, uint info);

		public static void AddTarget(Gtk.Widget widget, Gdk.Atom selection, Gdk.Atom target, uint info) {
			gtk_selection_add_target(widget == null ? IntPtr.Zero : widget.Handle, selection == null ? IntPtr.Zero : selection.Handle, target == null ? IntPtr.Zero : target.Handle, info);
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gtk_selection_add_targets(IntPtr widget, IntPtr selection, IntPtr targets, uint ntargets);

		public static void AddTargets(Gtk.Widget widget, Gdk.Atom selection, Gtk.TargetEntry targets, uint ntargets) {
			IntPtr native_targets = GLib.Marshaller.StructureToPtrAlloc (targets);
			gtk_selection_add_targets(widget == null ? IntPtr.Zero : widget.Handle, selection == null ? IntPtr.Zero : selection.Handle, native_targets, ntargets);
			Marshal.FreeHGlobal (native_targets);
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gtk_selection_clear_targets(IntPtr widget, IntPtr selection);

		public static void ClearTargets(Gtk.Widget widget, Gdk.Atom selection) {
			gtk_selection_clear_targets(widget == null ? IntPtr.Zero : widget.Handle, selection == null ? IntPtr.Zero : selection.Handle);
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern bool gtk_selection_convert(IntPtr widget, IntPtr selection, IntPtr target, uint time_);

		public static bool Convert(Gtk.Widget widget, Gdk.Atom selection, Gdk.Atom target, uint time_) {
			bool raw_ret = gtk_selection_convert(widget == null ? IntPtr.Zero : widget.Handle, selection == null ? IntPtr.Zero : selection.Handle, target == null ? IntPtr.Zero : target.Handle, time_);
			bool ret = raw_ret;
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern bool gtk_selection_owner_set(IntPtr widget, IntPtr selection, uint time_);

		public static bool OwnerSet(Gtk.Widget widget, Gdk.Atom selection, uint time_) {
			bool raw_ret = gtk_selection_owner_set(widget == null ? IntPtr.Zero : widget.Handle, selection == null ? IntPtr.Zero : selection.Handle, time_);
			bool ret = raw_ret;
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern bool gtk_selection_owner_set_for_display(IntPtr display, IntPtr widget, IntPtr selection, uint time_);

		public static bool OwnerSetForDisplay(Gdk.Display display, Gtk.Widget widget, Gdk.Atom selection, uint time_) {
			bool raw_ret = gtk_selection_owner_set_for_display(display == null ? IntPtr.Zero : display.Handle, widget == null ? IntPtr.Zero : widget.Handle, selection == null ? IntPtr.Zero : selection.Handle, time_);
			bool ret = raw_ret;
			return ret;
		}

		[DllImport("gtk-3-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gtk_selection_remove_all(IntPtr widget);

		public static void RemoveAll(Gtk.Widget widget) {
			gtk_selection_remove_all(widget == null ? IntPtr.Zero : widget.Handle);
		}

#endregion
	}
}