4
{****************************************************************************
6
****************************************************************************}
8
{$ifdef read_interface}
11
PGtkTipsQuery = ^TGtkTipsQuery;
12
TGtkTipsQuery = record
14
flag0 : {$ifdef win32}longint{$else}word{$endif};
15
label_inactive : Pgchar;
16
label_no_tip : Pgchar;
18
last_crossed : PGtkWidget;
19
query_cursor : PGdkCursor;
23
bm_TGtkTipsQuery_emit_always = $1;
24
bp_TGtkTipsQuery_emit_always = 0;
25
bm_TGtkTipsQuery_in_query = $2;
26
bp_TGtkTipsQuery_in_query = 1;
27
function emit_always(var a : TGtkTipsQuery) : guint;
28
procedure set_emit_always(var a : TGtkTipsQuery; __emit_always : guint);
29
function in_query(var a : TGtkTipsQuery) : guint;
30
procedure set_in_query(var a : TGtkTipsQuery; __in_query : guint);
33
PGtkTipsQueryClass = ^TGtkTipsQueryClass;
34
TGtkTipsQueryClass = record
35
parent_class : TGtkLabelClass;
36
start_query : procedure (tips_query:PGtkTipsQuery); cdecl;
37
stop_query : procedure (tips_query:PGtkTipsQuery); cdecl;
38
widget_entered : procedure (tips_query:PGtkTipsQuery; widget:PGtkWidget; tip_text:Pgchar; tip_private:Pgchar); cdecl;
39
widget_selected : function (tips_query:PGtkTipsQuery; widget:PGtkWidget; tip_text:Pgchar; tip_private:Pgchar; event:PGdkEventButton):gint; cdecl;
43
GTK_TIPS_QUERY=PGtkTipsQuery;
44
GTK_TIPS_QUERY_CLASS=PGtkTipsQueryClass;
46
function GTK_TIPS_QUERY_TYPE:TGtkType;cdecl;external gtkdll name 'gtk_tips_query_get_type';
47
function GTK_IS_TIPS_QUERY(obj:pointer):boolean;
48
function GTK_IS_TIPS_QUERY_CLASS(klass:pointer):boolean;
50
function gtk_tips_query_get_type:TGtkType;cdecl;external gtkdll name 'gtk_tips_query_get_type';
51
function gtk_tips_query_new:PGtkWidget;cdecl;external gtkdll name 'gtk_tips_query_new';
52
procedure gtk_tips_query_start_query(tips_query:PGtkTipsQuery);cdecl;external gtkdll name 'gtk_tips_query_start_query';
53
procedure gtk_tips_query_stop_query(tips_query:PGtkTipsQuery);cdecl;external gtkdll name 'gtk_tips_query_stop_query';
54
procedure gtk_tips_query_set_caller(tips_query:PGtkTipsQuery; caller:PGtkWidget);cdecl;external gtkdll name 'gtk_tips_query_set_caller';
55
procedure gtk_tips_query_set_labels(tips_query:PGtkTipsQuery; label_inactive:Pgchar; label_no_tip:Pgchar);cdecl;external gtkdll name 'gtk_tips_query_set_labels';
57
{$endif read_interface}
60
{****************************************************************************
62
****************************************************************************}
64
{$ifdef read_implementation}
66
function emit_always(var a : TGtkTipsQuery) : guint;
68
emit_always:=(a.flag0 and bm_TGtkTipsQuery_emit_always) shr bp_TGtkTipsQuery_emit_always;
71
procedure set_emit_always(var a : TGtkTipsQuery; __emit_always : guint);
73
a.flag0:=a.flag0 or ((__emit_always shl bp_TGtkTipsQuery_emit_always) and bm_TGtkTipsQuery_emit_always);
76
function in_query(var a : TGtkTipsQuery) : guint;
78
in_query:=(a.flag0 and bm_TGtkTipsQuery_in_query) shr bp_TGtkTipsQuery_in_query;
81
procedure set_in_query(var a : TGtkTipsQuery; __in_query : guint);
83
a.flag0:=a.flag0 or ((__in_query shl bp_TGtkTipsQuery_in_query) and bm_TGtkTipsQuery_in_query);
86
function GTK_IS_TIPS_QUERY(obj:pointer):boolean;
88
GTK_IS_TIPS_QUERY:=(obj<>nil) and GTK_IS_TIPS_QUERY_CLASS(PGtkTypeObject(obj)^.klass);
91
function GTK_IS_TIPS_QUERY_CLASS(klass:pointer):boolean;
93
GTK_IS_TIPS_QUERY_CLASS:=(klass<>nil) and (PGtkTypeClass(klass)^.thetype=GTK_TIPS_QUERY_TYPE);
96
{$endif read_implementation}