1
{%MainUnit ../gdk2x.pas}
3
{$IFDEF read_interface_rest}
6
{ Offsets to add to X coordinates within window }
7
{ to get GDK coodinates within window }
8
{ Set when the window background is temporarily
9
unset during resizing and scaling }
10
{ visible rectangle of window }
11
PGdkXPositionInfo = ^TGdkXPositionInfo;
12
TGdkXPositionInfo = record
20
clip_rect : TGdkRectangle;
24
bm_TGdkXPositionInfo_big = $1;
25
bp_TGdkXPositionInfo_big = 0;
26
bm_TGdkXPositionInfo_mapped = $2;
27
bp_TGdkXPositionInfo_mapped = 1;
28
bm_TGdkXPositionInfo_no_bg = $4;
29
bp_TGdkXPositionInfo_no_bg = 2;
30
function big(var a : TGdkXPositionInfo) : guint;
31
procedure set_big(var a : TGdkXPositionInfo; __big : guint);
32
function mapped(var a : TGdkXPositionInfo) : guint;
33
procedure set_mapped(var a : TGdkXPositionInfo; __mapped : guint);
34
function no_bg(var a : TGdkXPositionInfo) : guint;
35
procedure set_no_bg(var a : TGdkXPositionInfo; __no_bg : guint);
36
{ Window implementation for X11 }
40
PGdkWindowImplX11 = ^TGdkWindowImplX11;
41
TGdkWindowImplX11 = record
42
parent_instance : TGdkDrawableImplX11;
45
position_info : TGdkXPositionInfo;
47
focus_window : TWindow;
51
PGdkWindowImplX11Class = ^TGdkWindowImplX11Class;
52
TGdkWindowImplX11Class = record
53
parent_class : TGdkDrawableImplX11Class;
57
function GDK_TYPE_WINDOW_IMPL_X11 : GType;
59
function GDK_WINDOW_IMPL_X11(obj : pointer) : PGdkWindowImplX11;
61
function GDK_WINDOW_IMPL_X11_CLASS(klass : pointer) : PGdkWindowImplX11Class;
63
function GDK_IS_WINDOW_IMPL_X11(obj : pointer) : boolean;
65
function GDK_IS_WINDOW_IMPL_X11_CLASS(klass : pointer) : boolean;
67
function GDK_WINDOW_IMPL_X11_GET_CLASS(obj : pointer) : PGdkWindowImplX11Class;
69
{ Set if the window, or any descendent of it, has the focus }
70
{ Set if !window_has_focus, but events are being sent to the
71
window because the pointer is in it. (Typically, no window
73
{ We use an extra X window for toplevel windows that we XSetInputFocus()
74
to in order to avoid getting keyboard events redirected to subwindows
75
that might not even be part of this app }
78
bm_TGdkWindowImplX11_has_focus = $1;
79
bp_TGdkWindowImplX11_has_focus = 0;
80
bm_TGdkWindowImplX11_has_pointer_focus = $2;
81
bp_TGdkWindowImplX11_has_pointer_focus = 1;
82
function has_focus(var a : TGdkWindowImplX11) : guint;
83
procedure set_has_focus(var a : TGdkWindowImplX11; __has_focus : guint);
84
function has_pointer_focus(var a : TGdkWindowImplX11) : guint;
85
procedure set_has_pointer_focus(var a : TGdkWindowImplX11; __has_pointer_focus : guint);
88
function gdk_window_impl_x11_get_type:GType;cdecl;external;
90
{$ENDIF read_interface_rest}
92
//------------------------------------------------------------------------------
94
{$IFDEF read_implementation}
96
function big(var a : TGdkXPositionInfo) : guint;
98
big:=(a.flag0 and bm_TGdkXPositionInfo_big) shr bp_TGdkXPositionInfo_big;
101
procedure set_big(var a : TGdkXPositionInfo; __big : guint);
103
a.flag0:=a.flag0 or ((__big shl bp_TGdkXPositionInfo_big) and bm_TGdkXPositionInfo_big);
106
function mapped(var a : TGdkXPositionInfo) : guint;
108
mapped:=(a.flag0 and bm_TGdkXPositionInfo_mapped) shr bp_TGdkXPositionInfo_mapped;
111
procedure set_mapped(var a : TGdkXPositionInfo; __mapped : guint);
113
a.flag0:=a.flag0 or ((__mapped shl bp_TGdkXPositionInfo_mapped) and bm_TGdkXPositionInfo_mapped);
116
function no_bg(var a : TGdkXPositionInfo) : guint;
118
no_bg:=(a.flag0 and bm_TGdkXPositionInfo_no_bg) shr bp_TGdkXPositionInfo_no_bg;
121
procedure set_no_bg(var a : TGdkXPositionInfo; __no_bg : guint);
123
a.flag0:=a.flag0 or ((__no_bg shl bp_TGdkXPositionInfo_no_bg) and bm_TGdkXPositionInfo_no_bg);
126
function GDK_TYPE_WINDOW_IMPL_X11 : GType;
128
GDK_TYPE_WINDOW_IMPL_X11:=gdk_window_impl_x11_get_type;
131
function GDK_WINDOW_IMPL_X11(obj : pointer) : PGdkWindowImplX11;
133
GDK_WINDOW_IMPL_X11:=PGdkWindowImplX11(G_TYPE_CHECK_INSTANCE_CAST(obj,GDK_TYPE_WINDOW_IMPL_X11));
136
function GDK_WINDOW_IMPL_X11_CLASS(klass : pointer) : PGdkWindowImplX11Class;
138
GDK_WINDOW_IMPL_X11_CLASS:=PGdkWindowImplX11Class(G_TYPE_CHECK_CLASS_CAST(klass,GDK_TYPE_WINDOW_IMPL_X11));
141
function GDK_IS_WINDOW_IMPL_X11(obj : pointer) : boolean;
143
GDK_IS_WINDOW_IMPL_X11:=G_TYPE_CHECK_INSTANCE_TYPE(obj,GDK_TYPE_WINDOW_IMPL_X11);
146
function GDK_IS_WINDOW_IMPL_X11_CLASS(klass : pointer) : boolean;
148
GDK_IS_WINDOW_IMPL_X11_CLASS:=G_TYPE_CHECK_CLASS_TYPE(klass,GDK_TYPE_WINDOW_IMPL_X11);
151
function GDK_WINDOW_IMPL_X11_GET_CLASS(obj : pointer) : PGdkWindowImplX11Class;
153
GDK_WINDOW_IMPL_X11_GET_CLASS:=PGdkWindowImplX11Class(G_TYPE_INSTANCE_GET_CLASS(obj,GDK_TYPE_WINDOW_IMPL_X11));
156
function has_focus(var a : TGdkWindowImplX11) : guint;
158
has_focus:=(a.flag0 and bm_TGdkWindowImplX11_has_focus) shr bp_TGdkWindowImplX11_has_focus;
161
procedure set_has_focus(var a : TGdkWindowImplX11; __has_focus : guint);
163
a.flag0:=a.flag0 or ((__has_focus shl bp_TGdkWindowImplX11_has_focus) and bm_TGdkWindowImplX11_has_focus);
166
function has_pointer_focus(var a : TGdkWindowImplX11) : guint;
168
has_pointer_focus:=(a.flag0 and bm_TGdkWindowImplX11_has_pointer_focus) shr bp_TGdkWindowImplX11_has_pointer_focus;
171
procedure set_has_pointer_focus(var a : TGdkWindowImplX11; __has_pointer_focus : guint);
173
a.flag0:=a.flag0 or ((__has_pointer_focus shl bp_TGdkWindowImplX11_has_pointer_focus) and bm_TGdkWindowImplX11_has_pointer_focus);
176
{$ENDIF read_implementation}