blob: b4eb35544e01905ad28e6e92a5153dfe27f153ad (
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
|
{
}
{****************************************************************************
Interface
****************************************************************************}
{$ifdef read_interface}
type
PGtkRadioButton = ^TGtkRadioButton;
TGtkRadioButton = record
check_button : TGtkCheckButton;
group : PGSList;
end;
PGtkRadioButtonClass = ^TGtkRadioButtonClass;
TGtkRadioButtonClass = record
parent_class : TGtkCheckButtonClass;
end;
Type
GTK_RADIO_BUTTON=PGtkRadioButton;
GTK_RADIO_BUTTON_CLASS=PGtkRadioButtonClass;
function GTK_RADIO_BUTTON_TYPE:TGtkType;cdecl;external gtkdll name 'gtk_radio_button_get_type';
function GTK_IS_RADIO_BUTTON(obj:pointer):boolean;
function GTK_IS_RADIO_BUTTON_CLASS(klass:pointer):boolean;
function gtk_radio_button_get_type:TGtkType;cdecl;external gtkdll name 'gtk_radio_button_get_type';
function gtk_radio_button_new(group:PGSList):PGtkWidget;cdecl;external gtkdll name 'gtk_radio_button_new';
function gtk_radio_button_new_from_widget(group:PGtkRadioButton):PGtkWidget;cdecl;external gtkdll name 'gtk_radio_button_new_from_widget';
function gtk_radio_button_new_with_label(group:PGSList; thelabel:Pgchar):PGtkWidget;cdecl;external gtkdll name 'gtk_radio_button_new_with_label';
function gtk_radio_button_new_with_label_from_widget(group:PGtkRadioButton; thelabel:Pgchar):PGtkWidget;cdecl;external gtkdll name 'gtk_radio_button_new_with_label_from_widget';
function gtk_radio_button_group(radio_button:PGtkRadioButton):PGSList;cdecl;external gtkdll name 'gtk_radio_button_group';
procedure gtk_radio_button_set_group(radio_button:PGtkRadioButton; group:PGSList);cdecl;external gtkdll name 'gtk_radio_button_set_group';
{$endif read_interface}
{****************************************************************************
Implementation
****************************************************************************}
{$ifdef read_implementation}
function GTK_IS_RADIO_BUTTON(obj:pointer):boolean;
begin
GTK_IS_RADIO_BUTTON:=(obj<>nil) and GTK_IS_RADIO_BUTTON_CLASS(PGtkTypeObject(obj)^.klass);
end;
function GTK_IS_RADIO_BUTTON_CLASS(klass:pointer):boolean;
begin
GTK_IS_RADIO_BUTTON_CLASS:=(klass<>nil) and (PGtkTypeClass(klass)^.thetype=GTK_RADIO_BUTTON_TYPE);
end;
{$endif read_implementation}
|