blob: 8abf7c07b2f93aee3bac359e398267e4f060a858 (
plain)
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
|
{%MainUnit ../gdk2x.pas}
{$IFDEF read_interface_rest}
{ Keyboard related information }
{ Whether we were able to turn on detectable-autorepeat using
XkbSetDetectableAutorepeat. If FALSE, we'll fall back
to checking the next event with XPending(). }
{ Information about current pointer and keyboard grabs held by this
client. If gdk_pointer_xgrab_window or gdk_keyboard_xgrab_window
window is NULL, then the other associated fields are ignored
}
{ drag and drop information }
{ data needed for MOTIF DnD }
{ Mapping to/from virtual atoms }
{ Session Management leader window see ICCCM }
{ list of filters for client messages }
{ X ID hashtable }
{ translation queue }
{ Input device }
{ input GdkDevice list }
{ input GdkWindow list }
{ information about network port and host for gxid daemon }
type
PGdkDisplayX11 = ^TGdkDisplayX11;
TGdkDisplayX11 = record
parent_instance : TGdkDisplay;
xdisplay : PDisplay;
default_screen : PGdkScreen;
screens : ^PGdkScreen;
grab_count : gint;
xkb_event_type : gint;
use_xkb : gboolean;
have_xkb_autorepeat : gboolean;
keymap : PGdkKeymap;
keymap_serial : guint;
use_xshm : gboolean;
have_shm_pixmaps : gboolean;
have_shape : gint;
pointer_xgrab_window : PGdkWindowObject;
pointer_xgrab_serial : gulong;
pointer_xgrab_owner_events : gboolean;
keyboard_xgrab_window : PGdkWindowObject;
keyboard_xgrab_serial : gulong;
keyboard_xgrab_owner_events : gboolean;
current_dest_drag : PGdkDragContext;
motif_drag_window : TWindow;
motif_drag_gdk_window : PGdkWindow;
motif_target_lists : ^PGList;
motif_n_target_lists : gint;
atom_from_virtual : PGHashTable;
atom_to_virtual : PGHashTable;
leader_window : TWindow;
client_filters : PGList;
xid_ht : PGHashTable;
translate_queue : PGQueue;
input_devices : PGList;
input_windows : PGList;
input_ignore_core : gint;
input_gxid_host : Pgchar;
input_gxid_port : gint;
use_xft : gint;
end;
PGdkDisplayX11Class = ^TGdkDisplayX11Class;
TGdkDisplayX11Class = record
parent_class : TGdkDisplayClass;
end;
// Private function GDK_TYPE_DISPLAY_X11 : GType;
function GDK_DISPLAY_X11(obj : pointer) : PGdkDisplayX11;
function GDK_DISPLAY_X11_CLASS(klass : pointer) : PGdkDisplayX11Class;
// Private function GDK_IS_DISPLAY_X11(obj : pointer) : boolean;
// Private function GDK_IS_DISPLAY_X11_CLASS(klass : pointer) : boolean;
// Private function GDK_DISPLAY_X11_GET_CLASS(obj : pointer) : PGdkDisplayX11Class;
// Private function _gdk_display_x11_get_type:GType;cdecl;external gdklib;
// Private function _gdk_x11_display_screen_for_xrootwin(display:PGdkDisplay; xrootwin:TWindow):PGdkScreen;cdecl;external;
{$ENDIF read_interface_rest}
//------------------------------------------------------------------------------
{$IFDEF read_implementation}
{ Private
function GDK_TYPE_DISPLAY_X11 : GType;
begin
GDK_TYPE_DISPLAY_X11:=_gdk_display_x11_get_type;
end;}
function GDK_DISPLAY_X11(obj : pointer) : PGdkDisplayX11;
begin
GDK_DISPLAY_X11:=PGdkDisplayX11(obj);
//GDK_DISPLAY_X11:=PGdkDisplayX11(G_TYPE_CHECK_INSTANCE_CAST(obj,GDK_TYPE_DISPLAY_X11));
end;
function GDK_DISPLAY_X11_CLASS(klass : pointer) : PGdkDisplayX11Class;
begin
GDK_DISPLAY_X11_CLASS:=PGdkDisplayX11Class(klass);
//GDK_DISPLAY_X11_CLASS:=PGdkDisplayX11Class(G_TYPE_CHECK_CLASS_CAST(klass,GDK_TYPE_DISPLAY_X11));
end;
{ Private
function GDK_IS_DISPLAY_X11(obj : pointer) : boolean;
begin
GDK_IS_DISPLAY_X11:=G_TYPE_CHECK_INSTANCE_TYPE(obj,GDK_TYPE_DISPLAY_X11);
end;
function GDK_IS_DISPLAY_X11_CLASS(klass : pointer) : boolean;
begin
GDK_IS_DISPLAY_X11_CLASS:=G_TYPE_CHECK_CLASS_TYPE(klass,GDK_TYPE_DISPLAY_X11);
end;
function GDK_DISPLAY_X11_GET_CLASS(obj : pointer) : PGdkDisplayX11Class;
begin
GDK_DISPLAY_X11_GET_CLASS:=PGdkDisplayX11Class(G_TYPE_INSTANCE_GET_CLASS(obj,GDK_TYPE_DISPLAY_X11));
end;}
{$ENDIF read_implementation}
|