2
$Id: gtksocket.pp,v 1.1.2.1 2000/09/09 18:42:53 peter Exp $
5
{****************************************************************************
7
****************************************************************************}
9
{$ifdef read_interface}
12
PGtkSocket = ^TGtkSocket;
14
container : TGtkContainer;
15
request_width : guint16;
16
request_height : guint16;
17
current_width : guint16;
18
current_height : guint16;
19
plug_window : PGdkWindow;
20
flag0 : {$ifdef win32}longint{$else}word{$endif};
24
bm_TGtkSocket_same_app = $1;
25
bp_TGtkSocket_same_app = 0;
26
bm_TGtkSocket_focus_in = $2;
27
bp_TGtkSocket_focus_in = 1;
28
bm_TGtkSocket_have_size = $4;
29
bp_TGtkSocket_have_size = 2;
30
bm_TGtkSocket_need_map = $8;
31
bp_TGtkSocket_need_map = 3;
32
function same_app(var a : TGtkSocket) : guint;
33
procedure set_same_app(var a : TGtkSocket; __same_app : guint);
34
function focus_in(var a : TGtkSocket) : guint;
35
procedure set_focus_in(var a : TGtkSocket; __focus_in : guint);
36
function have_size(var a : TGtkSocket) : guint;
37
procedure set_have_size(var a : TGtkSocket; __have_size : guint);
38
function need_map(var a : TGtkSocket) : guint;
39
procedure set_need_map(var a : TGtkSocket; __need_map : guint);
42
PGtkSocketClass = ^TGtkSocketClass;
43
TGtkSocketClass = record
44
parent_class : TGtkContainerClass;
48
GTK_SOCKET=PGtkSocket;
49
GTK_SOCKET_CLASS=PGtkSocket;
52
function gtk_socket_new:PGtkWidget;cdecl;external gtkdll name 'gtk_socket_new';
53
function gtk_socket_get_type:guint;cdecl;external gtkdll name 'gtk_socket_get_type';
54
procedure gtk_socket_steal(socket:PGtkSocket; wid:guint32);cdecl;external gtkdll name 'gtk_socket_steal';
57
{$endif read_interface}
60
{****************************************************************************
62
****************************************************************************}
64
{$ifdef read_implementation}
66
function same_app(var a : TGtkSocket) : guint;
68
same_app:=(a.flag0 and bm_TGtkSocket_same_app) shr bp_TGtkSocket_same_app;
71
procedure set_same_app(var a : TGtkSocket; __same_app : guint);
73
a.flag0:=a.flag0 or ((__same_app shl bp_TGtkSocket_same_app) and bm_TGtkSocket_same_app);
76
function focus_in(var a : TGtkSocket) : guint;
78
focus_in:=(a.flag0 and bm_TGtkSocket_focus_in) shr bp_TGtkSocket_focus_in;
81
procedure set_focus_in(var a : TGtkSocket; __focus_in : guint);
83
a.flag0:=a.flag0 or ((__focus_in shl bp_TGtkSocket_focus_in) and bm_TGtkSocket_focus_in);
86
function have_size(var a : TGtkSocket) : guint;
88
have_size:=(a.flag0 and bm_TGtkSocket_have_size) shr bp_TGtkSocket_have_size;
91
procedure set_have_size(var a : TGtkSocket; __have_size : guint);
93
a.flag0:=a.flag0 or ((__have_size shl bp_TGtkSocket_have_size) and bm_TGtkSocket_have_size);
96
function need_map(var a : TGtkSocket) : guint;
98
need_map:=(a.flag0 and bm_TGtkSocket_need_map) shr bp_TGtkSocket_need_map;
101
procedure set_need_map(var a : TGtkSocket; __need_map : guint);
103
a.flag0:=a.flag0 or ((__need_map shl bp_TGtkSocket_need_map) and bm_TGtkSocket_need_map);
106
{$endif read_implementation}
110
$Log: gtksocket.pp,v $
111
Revision 1.1.2.1 2000/09/09 18:42:53 peter
114
Revision 1.1 2000/07/13 06:34:06 michael
117
Revision 1.1 1999/11/24 23:36:36 peter
118
* moved to packages dir
120
Revision 1.5 1999/10/06 17:42:50 peter
121
* external is now only in the interface
122
* removed gtk 1.0 support
124
Revision 1.4 1999/07/23 16:13:08 peter
127
Revision 1.3 1999/05/11 00:39:26 peter
130
Revision 1.2 1999/05/10 15:20:24 peter
133
Revision 1.1 1999/05/10 09:14:00 peter