1
{$IfDef read_interface}
4
PGnomeIconTextItem = ^TGnomeIconTextItem;
5
TGnomeIconTextItem = record
6
canvas_item : TGnomeCanvasItem;
15
ti : PGnomeIconTextInfo;
20
GNOME_ICON_TEXT_ITEM = PGnomeIconTextItem;
23
bm_GnomeIconTextItem_editing = $1;
24
bp_GnomeIconTextItem_editing = 0;
25
bm_GnomeIconTextItem_selected = $2;
26
bp_GnomeIconTextItem_selected = 1;
27
bm_GnomeIconTextItem_selecting = $1;
28
bp_GnomeIconTextItem_selecting = 0;
29
bm_GnomeIconTextItem_is_editable = $2;
30
bp_GnomeIconTextItem_is_editable = 1;
31
bm_GnomeIconTextItem_is_text_allocated = $4;
32
bp_GnomeIconTextItem_is_text_allocated = 2;
34
function editing(var a : TGnomeIconTextItem) : dword;
35
procedure set_editing(var a : TGnomeIconTextItem; __editing : dword);
36
function selected(var a : TGnomeIconTextItem) : dword;
37
procedure set_selected(var a : TGnomeIconTextItem; __selected : dword);
38
function selecting(var a : TGnomeIconTextItem) : dword;
39
procedure set_selecting(var a : TGnomeIconTextItem; __selecting : dword);
40
function is_editable(var a : TGnomeIconTextItem) : dword;
41
procedure set_is_editable(var a : TGnomeIconTextItem; __is_editable : dword);
42
function is_text_allocated(var a : TGnomeIconTextItem) : dword;
43
procedure set_is_text_allocated(var a : TGnomeIconTextItem; __is_text_allocated : dword);
46
PGnomeIconTextItemClass = ^TGnomeIconTextItemClass;
47
TGnomeIconTextItemClass = record
48
parent_class : TGnomeCanvasItemClass;
49
text_changed : function (iti:PGnomeIconTextItem):longint;cdecl;
50
height_changed : procedure (iti:PGnomeIconTextItem);cdecl;
51
width_changed : procedure (iti:PGnomeIconTextItem);cdecl;
52
editing_started : procedure (iti:PGnomeIconTextItem);cdecl;
53
editing_stopped : procedure (iti:PGnomeIconTextItem);cdecl;
54
selection_started : procedure (iti:PGnomeIconTextItem);cdecl;
55
selection_stopped : procedure (iti:PGnomeIconTextItem);cdecl;
57
GNOME_ICON_TEXT_ITEM_CLASS = PGnomeIconTextItemClass;
59
function GNOME_TYPE_ICON_TEXT_ITEM : TGTKType;
60
function GNOME_IS_ICON_TEXT_ITEM(obj : Pointer) : Boolean;
61
function GNOME_IS_ICON_TEXT_ITEM_CLASS(klass : Pointer) : Boolean;
63
function gnome_icon_text_item_get_type:TGtkType;cdecl;external libgnomeuidll name 'gnome_icon_text_item_get_type';
64
procedure gnome_icon_text_item_configure(iti:PGnomeIconTextItem; x:longint; y:longint; width:longint; fontname:Pchar;
65
thetext:Pchar; is_editable:gboolean; is_static:gboolean);cdecl;external libgnomeuidll name 'gnome_icon_text_item_configure';
66
procedure gnome_icon_text_item_setxy(iti:PGnomeIconTextItem; x:longint; y:longint);cdecl;external libgnomeuidll name 'gnome_icon_text_item_setxy';
67
procedure gnome_icon_text_item_select(iti:PGnomeIconTextItem; sel:longint);cdecl;external libgnomeuidll name 'gnome_icon_text_item_select';
68
function gnome_icon_text_item_get_text(iti:PGnomeIconTextItem):Pchar;cdecl;external libgnomeuidll name 'gnome_icon_text_item_get_text';
69
procedure gnome_icon_text_item_start_editing(iti:PGnomeIconTextItem);cdecl;external libgnomeuidll name 'gnome_icon_text_item_start_editing';
70
procedure gnome_icon_text_item_stop_editing(iti:PGnomeIconTextItem; accept:gboolean);cdecl;external libgnomeuidll name 'gnome_icon_text_item_stop_editing';
72
{$EndIf read_interface}
74
{$Ifdef read_implementation}
76
function GNOME_TYPE_ICON_TEXT_ITEM : TGTKType;
78
GNOME_TYPE_ICON_TEXT_ITEM:=gnome_icon_text_item_get_type;
81
function GNOME_IS_ICON_TEXT_ITEM(obj : Pointer) : Boolean;
83
GNOME_IS_ICON_TEXT_ITEM:=(obj<>nil) and GNOME_IS_ICON_TEXT_ITEM_CLASS(PGtkTypeObject(obj)^.klass);
86
function GNOME_IS_ICON_TEXT_ITEM_CLASS(klass : Pointer) : Boolean;
88
GNOME_IS_ICON_TEXT_ITEM_CLASS:=(klass<>nil) and (PGtkTypeClass(klass)^.thetype=GNOME_TYPE_ICON_TEXT_ITEM);
91
function editing(var a : TGnomeIconTextItem) : dword;
93
editing:=(a.flag0 and bm_GnomeIconTextItem_editing) shr bp_GnomeIconTextItem_editing;
96
procedure set_editing(var a : TGnomeIconTextItem; __editing : dword);
98
a.flag0:=a.flag0 or ((__editing shl bp_GnomeIconTextItem_editing) and bm_GnomeIconTextItem_editing);
101
function selected(var a : TGnomeIconTextItem) : dword;
103
selected:=(a.flag0 and bm_GnomeIconTextItem_selected) shr bp_GnomeIconTextItem_selected;
106
procedure set_selected(var a : TGnomeIconTextItem; __selected : dword);
108
a.flag0:=a.flag0 or ((__selected shl bp_GnomeIconTextItem_selected) and bm_GnomeIconTextItem_selected);
111
function selecting(var a : TGnomeIconTextItem) : dword;
113
selecting:=(a.flag1 and bm_GnomeIconTextItem_selecting) shr bp_GnomeIconTextItem_selecting;
116
procedure set_selecting(var a : TGnomeIconTextItem; __selecting : dword);
118
a.flag1:=a.flag1 or ((__selecting shl bp_GnomeIconTextItem_selecting) and bm_GnomeIconTextItem_selecting);
121
function is_editable(var a : TGnomeIconTextItem) : dword;
123
is_editable:=(a.flag1 and bm_GnomeIconTextItem_is_editable) shr bp_GnomeIconTextItem_is_editable;
126
procedure set_is_editable(var a : TGnomeIconTextItem; __is_editable : dword);
128
a.flag1:=a.flag1 or ((__is_editable shl bp_GnomeIconTextItem_is_editable) and bm_GnomeIconTextItem_is_editable);
131
function is_text_allocated(var a : TGnomeIconTextItem) : dword;
133
is_text_allocated:=(a.flag1 and bm_GnomeIconTextItem_is_text_allocated) shr bp_GnomeIconTextItem_is_text_allocated;
136
procedure set_is_text_allocated(var a : TGnomeIconTextItem; __is_text_allocated : dword);
138
a.flag1:=a.flag1 or ((__is_text_allocated shl bp_GnomeIconTextItem_is_text_allocated) and bm_GnomeIconTextItem_is_text_allocated);
141
{$Endif read_implementation}