Newer
Older
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
/***********************************************************************
* FXRuby -- the Ruby language bindings for the FOX GUI toolkit.
* Copyright (c) 2001-2003 by J. Lyle Johnson. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* For further information please contact the author by e-mail
* at "lyle@users.sourceforge.net".
***********************************************************************/
class FXIcon;
/// MDI Delete button
class FXMDIDeleteButton : public FXButton {
protected:
FXMDIDeleteButton(){}
public:
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
public:
%extend {
/// Constructor
FXMDIDeleteButton(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=FRAME_RAISED,FXint x=0,FXint y=0,FXint w=0,FXint h=0){
return new FXRbMDIDeleteButton(p,tgt,sel,opts,x,y,w,h);
}
}
/// Destructor
virtual ~FXMDIDeleteButton();
};
DECLARE_FXOBJECT_VIRTUALS(FXMDIDeleteButton)
DECLARE_FXID_VIRTUALS(FXMDIDeleteButton)
DECLARE_FXDRAWABLE_VIRTUALS(FXMDIDeleteButton)
DECLARE_FXWINDOW_VIRTUALS(FXMDIDeleteButton)
/// MDI Restore button
class FXMDIRestoreButton : public FXButton {
protected:
FXMDIRestoreButton(){}
public:
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
public:
%extend {
/// Constructor
FXMDIRestoreButton(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=FRAME_RAISED,FXint x=0,FXint y=0,FXint w=0,FXint h=0){
return new FXRbMDIRestoreButton(p,tgt,sel,opts,x,y,w,h);
}
}
/// Destructor
virtual ~FXMDIRestoreButton();
};
DECLARE_FXOBJECT_VIRTUALS(FXMDIRestoreButton)
DECLARE_FXID_VIRTUALS(FXMDIRestoreButton)
DECLARE_FXDRAWABLE_VIRTUALS(FXMDIRestoreButton)
DECLARE_FXWINDOW_VIRTUALS(FXMDIRestoreButton)
/// MDI Maximize button
class FXMDIMaximizeButton : public FXButton {
protected:
FXMDIMaximizeButton(){}
public:
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
public:
%extend {
/// Constructor
FXMDIMaximizeButton(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=FRAME_RAISED,FXint x=0,FXint y=0,FXint w=0,FXint h=0){
return new FXRbMDIMaximizeButton(p,tgt,sel,opts,x,y,w,h);
}
}
/// Destructor
virtual ~FXMDIMaximizeButton();
};
DECLARE_FXOBJECT_VIRTUALS(FXMDIMaximizeButton)
DECLARE_FXID_VIRTUALS(FXMDIMaximizeButton)
DECLARE_FXDRAWABLE_VIRTUALS(FXMDIMaximizeButton)
DECLARE_FXWINDOW_VIRTUALS(FXMDIMaximizeButton)
/// MDI Minimize button
class FXMDIMinimizeButton : public FXButton {
protected:
FXMDIMinimizeButton(){}
public:
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
public:
%extend {
/// Constructor
FXMDIMinimizeButton(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=FRAME_RAISED,FXint x=0,FXint y=0,FXint w=0,FXint h=0){
return new FXRbMDIMinimizeButton(p,tgt,sel,opts,x,y,w,h);
}
}
/// Destructor
virtual ~FXMDIMinimizeButton();
};
DECLARE_FXOBJECT_VIRTUALS(FXMDIMinimizeButton)
DECLARE_FXID_VIRTUALS(FXMDIMinimizeButton)
DECLARE_FXDRAWABLE_VIRTUALS(FXMDIMinimizeButton)
DECLARE_FXWINDOW_VIRTUALS(FXMDIMinimizeButton)
/// MDI Window button
class FXMDIWindowButton : public FXMenuButton {
protected:
FXMDIWindowButton(){}
public:
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
public:
%extend {
/// Constructor
FXMDIWindowButton(FXComposite* p,FXPopup* pup,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0){
return new FXRbMDIWindowButton(p,pup,tgt,sel,opts,x,y,w,h);
}
}
/// Destructor
virtual ~FXMDIWindowButton();
};
DECLARE_FXOBJECT_VIRTUALS(FXMDIWindowButton)
DECLARE_FXID_VIRTUALS(FXMDIWindowButton)
DECLARE_FXDRAWABLE_VIRTUALS(FXMDIWindowButton)
DECLARE_FXWINDOW_VIRTUALS(FXMDIWindowButton)
/// MDI Window Menu
class FXMDIMenu : public FXMenuPane {
protected:
FXMDIMenu(){}
public:
%extend {
/// Construct MDI menu
FXMDIMenu(FXWindow *owner,FXObject* tgt=NULL){
return new FXRbMDIMenu(owner,tgt);
}
}
/// Destructor
virtual ~FXMDIMenu();
};
DECLARE_FXOBJECT_VIRTUALS(FXMDIMenu)
DECLARE_FXID_VIRTUALS(FXMDIMenu)
DECLARE_FXDRAWABLE_VIRTUALS(FXMDIMenu)
DECLARE_FXWINDOW_VIRTUALS(FXMDIMenu)
DECLARE_FXPOPUP_VIRTUALS(FXMDIMenu)