Codebase list ruby-fxruby / a045fea ext / fox16_c / include / FXRbDC.h
a045fea

Tree @a045fea (Download .tar.gz)

FXRbDC.h @a045fearaw · history · blame

  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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
/***********************************************************************
 * FXRuby -- the Ruby language bindings for the FOX GUI toolkit.
 * Copyright (c) 2001-2009 by 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 "[email protected]".
 ***********************************************************************/

/***********************************************************************
 * $Id: FXRbDC.h 2823 2008-03-28 02:04:22Z lyle $
 ***********************************************************************/

#ifndef FXRBDC_H
#define FXRBDC_H

#define DECLARE_FXDC_STUBS(klass) \
inline FXColor klass ## _readPixel(klass* self,FXint x,FXint y){ \
  return self->klass::readPixel(x,y); \
  } \
inline void klass ## _drawPoint(klass* self,FXint x,FXint y){ \
  self->klass::drawPoint(x,y); \
  } \
inline void klass ## _drawPoints(klass* self,const FXPoint* points,FXuint npoints){ \
  self->klass::drawPoints(points,npoints); \
  } \
inline void klass ## _drawPointsRel(klass* self,const FXPoint* points,FXuint npoints){ \
  self->klass::drawPointsRel(points,npoints); \
  } \
inline void klass ## _drawLine(klass* self,FXint x1,FXint y1,FXint x2,FXint y2){ \
  self->klass::drawLine(x1,y1,x2,y2); \
  } \
inline void klass ## _drawLines(klass* self,const FXPoint* points,FXuint npoints){ \
  self->klass::drawLines(points,npoints); \
  } \
inline void klass ## _drawLinesRel(klass* self,const FXPoint* points,FXuint npoints){ \
  self->klass::drawLinesRel(points,npoints); \
  } \
inline void klass ## _drawLineSegments(klass* self,const FXSegment* segments,FXuint nsegments){ \
  self->klass::drawLineSegments(segments,nsegments); \
  } \
inline void klass ## _drawRectangle(klass* self,FXint x,FXint y,FXint w,FXint h){ \
  self->klass::drawRectangle(x,y,w,h); \
  } \
inline void klass ## _drawRectangles(klass* self,const FXRectangle* rectangles,FXuint nrectangles){ \
  self->klass::drawRectangles(rectangles,nrectangles); \
  } \
inline void klass ## _drawRoundRectangle(klass* self,FXint x,FXint y,FXint w,FXint h,FXint ew,FXint eh){ \
  self->klass::drawRoundRectangle(x,y,w,h,ew,eh); \
  } \
inline void klass ## _drawArc(klass* self,FXint x,FXint y,FXint w,FXint h,FXint ang1,FXint ang2){ \
  self->klass::drawArc(x,y,w,h,ang1,ang2); \
  } \
inline void klass ## _drawArcs(klass* self,const FXArc* arcs,FXuint narcs){ \
  self->klass::drawArcs(arcs,narcs); \
  } \
inline void klass ## _drawEllipse(klass* self,FXint x,FXint y,FXint w,FXint h){ \
  self->klass::drawEllipse(x,y,w,h); \
  } \
inline void klass ## _fillRectangle(klass* self,FXint x,FXint y,FXint w,FXint h){ \
  self->klass::fillRectangle(x,y,w,h); \
  } \
inline void klass ## _fillRectangles(klass* self,const FXRectangle* rectangles,FXuint nrectangles){ \
  self->klass::fillRectangles(rectangles,nrectangles); \
  } \
inline void klass ## _fillRoundRectangle(klass* self,FXint x,FXint y,FXint w,FXint h,FXint ew,FXint eh){ \
  self->klass::fillRoundRectangle(x,y,w,h,ew,eh); \
  } \
inline void klass ## _fillChord(klass* self,FXint x,FXint y,FXint w,FXint h,FXint ang1,FXint ang2){ \
  self->klass::fillChord(x,y,w,h,ang1,ang2); \
  } \
inline void klass ## _fillChords(klass* self,const FXArc* chords,FXuint nchords){ \
  self->klass::fillChords(chords,nchords); \
  } \
inline void klass ## _fillArc(klass* self,FXint x,FXint y,FXint w,FXint h,FXint ang1,FXint ang2){ \
  self->klass::fillArc(x,y,w,h,ang1,ang2); \
  } \
inline void klass ## _fillArcs(klass* self,const FXArc* arcs,FXuint narcs){ \
  self->klass::fillArcs(arcs,narcs); \
  } \
inline void klass ## _fillEllipse(klass* self,FXint x,FXint y,FXint w,FXint h){ \
  self->klass::fillEllipse(x,y,w,h); \
  } \
inline void klass ## _fillPolygon(klass* self,const FXPoint* points,FXuint npoints){ \
  self->klass::fillPolygon(points,npoints); \
  } \
inline void klass ## _fillConcavePolygon(klass* self,const FXPoint* points,FXuint npoints){ \
  self->klass::fillConcavePolygon(points,npoints); \
  } \
inline void klass ## _fillComplexPolygon(klass* self,const FXPoint* points,FXuint npoints){ \
  self->klass::fillComplexPolygon(points,npoints); \
  } \
inline void klass ## _fillPolygonRel(klass* self,const FXPoint* points,FXuint npoints){ \
  self->klass::fillPolygonRel(points,npoints); \
  } \
inline void klass ## _fillConcavePolygonRel(klass* self,const FXPoint* points,FXuint npoints){ \
  self->klass::fillConcavePolygonRel(points,npoints); \
  } \
inline void klass ## _fillComplexPolygonRel(klass* self,const FXPoint* points,FXuint npoints){ \
  self->klass::fillComplexPolygonRel(points,npoints); \
  } \
inline void klass ## _drawHashBox(klass* self,FXint x,FXint y,FXint w,FXint h,FXint b=1){ \
  self->klass::drawHashBox(x,y,w,h,b); \
  } \
inline void klass ## _drawFocusRectangle(klass* self,FXint x,FXint y,FXint w,FXint h){ \
  self->klass::drawFocusRectangle(x,y,w,h); \
  } \
inline void klass ## _drawArea(klass* self,const FXDrawable* source,FXint sx,FXint sy,FXint sw,FXint sh,FXint dx,FXint dy){ \
  self->klass::drawArea(source,sx,sy,sw,sh,dx,dy); \
  } \
inline void klass ## _drawArea(klass* self,const FXDrawable* source,FXint sx,FXint sy,FXint sw,FXint sh,FXint dx,FXint dy,FXint dw,FXint dh){ \
  self->klass::drawArea(source,sx,sy,sw,sh,dx,dy,dw,dh); \
  } \
inline void klass ## _drawImage(klass* self,const FXImage* image,FXint dx,FXint dy){ \
  self->klass::drawImage(image,dx,dy); \
  } \
inline void klass ## _drawBitmap(klass* self,const FXBitmap* bitmap,FXint dx,FXint dy){ \
  self->klass::drawBitmap(bitmap,dx,dy); \
  } \
inline void klass ## _drawIcon(klass* self,const FXIcon* icon,FXint dx,FXint dy){ \
  self->klass::drawIcon(icon,dx,dy); \
  } \
inline void klass ## _drawIconShaded(klass* self,const FXIcon* icon,FXint dx,FXint dy){ \
  self->klass::drawIconShaded(icon,dx,dy); \
  } \
inline void klass ## _drawIconSunken(klass* self,const FXIcon* icon,FXint dx,FXint dy){ \
  self->klass::drawIconSunken(icon,dx,dy); \
  } \
inline void klass ## _drawText(klass* self,FXint x,FXint y,const FXString& string){ \
  self->klass::drawText(x,y,string); \
  } \
inline void klass ## _drawText(klass* self,FXint x,FXint y,const FXchar* string,FXuint length){ \
  self->klass::drawText(x,y,string,length); \
  } \
inline void klass ## _drawImageText(klass* self,FXint x,FXint y,const FXString& string){ \
  self->klass::drawImageText(x,y,string); \
  } \
inline void klass ## _drawImageText(klass* self,FXint x,FXint y,const FXchar* string,FXuint length){ \
  self->klass::drawImageText(x,y,string,length); \
  } \
inline void klass ## _setForeground(klass* self,FXColor clr){ \
  self->klass::setForeground(clr); \
  } \
inline void klass ## _setBackground(klass* self,FXColor clr){ \
  self->klass::setBackground(clr); \
  } \
inline void klass ## _setDashes(klass* self,FXuint dashoffset,const FXchar *dashpattern,FXuint dashlength){ \
  self->klass::setDashes(dashoffset,dashpattern,dashlength); \
  } \
inline void klass ## _setLineWidth(klass* self,FXuint linewidth){ \
  self->klass::setLineWidth(linewidth); \
  } \
inline void klass ## _setLineCap(klass* self,FXCapStyle capstyle){ \
  self->klass::setLineCap(capstyle); \
  } \
inline void klass ## _setLineJoin(klass* self,FXJoinStyle joinstyle){ \
  self->klass::setLineJoin(joinstyle); \
  } \
inline void klass ## _setLineStyle(klass* self,FXLineStyle linestyle){ \
  self->klass::setLineStyle(linestyle); \
  } \
inline void klass ## _setFillStyle(klass* self,FXFillStyle fillstyle){ \
  self->klass::setFillStyle(fillstyle); \
  } \
inline void klass ## _setFillRule(klass* self,FXFillRule fillrule){ \
  self->klass::setFillRule(fillrule); \
  } \
inline void klass ## _setFunction(klass* self,FXFunction func){ \
  self->klass::setFunction(func); \
  } \
inline void klass ## _setTile(klass* self,FXImage* image,FXint dx,FXint dy){ \
  self->klass::setTile(image,dx,dy); \
  } \
inline void klass ## _setStipple(klass* self,FXBitmap *bitmap,FXint dx,FXint dy){ \
  self->klass::setStipple(bitmap,dx,dy); \
  } \
inline void klass ## _setStipple(klass* self,FXStipplePattern pat,FXint dx,FXint dy){ \
  self->klass::setStipple(pat,dx,dy); \
  } \
inline void klass ## _setClipRegion(klass* self,const FXRegion& region){ \
  self->klass::setClipRegion(region); \
  } \
inline void klass ## _setClipRectangle(klass* self,FXint x,FXint y,FXint w,FXint h){ \
  self->klass::setClipRectangle(x,y,w,h); \
  } \
inline void klass ## _setClipRectangle(klass* self,const FXRectangle& rectangle){ \
  self->klass::setClipRectangle(rectangle); \
  } \
inline void klass ## _clearClipRectangle(klass* self){ \
  self->klass::clearClipRectangle(); \
  } \
inline void klass ## _setClipMask(klass* self,FXBitmap* bitmap,FXint dx,FXint dy){ \
  self->klass::setClipMask(bitmap,dx,dy); \
  } \
inline void klass ## _clearClipMask(klass* self){ \
  self->klass::clearClipMask(); \
  } \
inline void klass ## _setFont(klass* self,FXFont *fnt){ \
  self->klass::setFont(fnt); \
  } \
inline void klass ## _clipChildren(klass* self,FXbool yes){ \
  self->klass::clipChildren(yes); \
  }


#define IMPLEMENT_FXDC_STUBS(cls) \
  FXColor cls::readPixel(FXint x,FXint y){ \
    return FXRbCallColorMethod(this,"readPixel",x,y); \
    } \
  void cls::drawPoint(FXint x,FXint y){ \
    FXRbCallVoidMethod(this,"drawPoint",x,y); \
    } \
  void cls::drawPoints(const FXPoint* points,FXuint npoints){ \
    FXRbCallVoidArrayMethod(this,"drawPoints",points,npoints); \
    } \
  void cls::drawPointsRel(const FXPoint* points,FXuint npoints){ \
    FXRbCallVoidArrayMethod(this,"drawPointsRel",points,npoints); \
    } \
  void cls::drawLine(FXint x1,FXint y1,FXint x2,FXint y2){ \
    FXRbCallVoidMethod(this,"drawLine",x1,y1,x2,y2); \
    } \
  void cls::drawLines(const FXPoint* points,FXuint npoints){ \
    FXRbCallVoidArrayMethod(this,"drawLines",points,npoints); \
    } \
  void cls::drawLinesRel(const FXPoint* points,FXuint npoints){ \
    FXRbCallVoidArrayMethod(this,"drawLinesRel",points,npoints); \
    } \
  void cls::drawLineSegments(const FXSegment* segments,FXuint nsegments){ \
    FXRbCallVoidArrayMethod(this,"drawLineSegments",segments,nsegments); \
    } \
  void cls::drawRectangle(FXint x,FXint y,FXint w,FXint h){ \
    FXRbCallVoidMethod(this,"drawRectangle",x,y,w,h); \
    } \
  void cls::drawRoundRectangle(FXint x,FXint y,FXint w,FXint h,FXint ew,FXint eh){ \
    FXRbCallVoidMethod(this,"drawRoundRectangle",x,y,w,h,ew,eh); \
    } \
  void cls::drawRectangles(const FXRectangle* rectangles,FXuint nrectangles){ \
    FXRbCallVoidArrayMethod(this,"drawRectangles",rectangles,nrectangles); \
    } \
  void cls::drawArc(FXint x,FXint y,FXint w,FXint h,FXint ang1,FXint ang2){ \
    FXRbCallVoidMethod(this,"drawArc",x,y,w,h,ang1,ang2); \
    } \
  void cls::drawArcs(const FXArc* arcs,FXuint narcs){ \
    FXRbCallVoidArrayMethod(this,"drawArcs",arcs,narcs); \
    } \
  void cls::drawEllipse(FXint x,FXint y,FXint w,FXint h){ \
    FXRbCallVoidMethod(this,"drawEllipse",x,y,w,h); \
    } \
  void cls::fillRectangle(FXint x,FXint y,FXint w,FXint h){ \
    FXRbCallVoidMethod(this,"fillRectangle",x,y,w,h); \
    } \
  void cls::fillRectangles(const FXRectangle* rectangles,FXuint nrectangles){ \
    FXRbCallVoidArrayMethod(this,"fillRectangles",rectangles,nrectangles); \
    } \
  void cls::fillRoundRectangle(FXint x,FXint y,FXint w,FXint h,FXint ew,FXint eh){ \
    FXRbCallVoidMethod(this,"fillRoundRectangle",x,y,w,h,ew,eh); \
    } \
  void cls::fillChord(FXint x,FXint y,FXint w,FXint h,FXint ang1,FXint ang2){ \
    FXRbCallVoidMethod(this,"fillChord",x,y,w,h,ang1,ang2); \
    } \
  void cls::fillChords(const FXArc* chords,FXuint nchords){ \
    FXRbCallVoidArrayMethod(this,"fillChords",chords,nchords); \
    } \
  void cls::fillArc(FXint x,FXint y,FXint w,FXint h,FXint ang1,FXint ang2){ \
    FXRbCallVoidMethod(this,"fillArc",x,y,w,h,ang1,ang2); \
    } \
  void cls::fillArcs(const FXArc* arcs,FXuint narcs){ \
    FXRbCallVoidArrayMethod(this,"fillArcs",arcs,narcs); \
    } \
  void cls::fillEllipse(FXint x,FXint y,FXint w,FXint h){ \
    FXRbCallVoidMethod(this,"fillEllipse",x,y,w,h); \
    } \
  void cls::fillPolygon(const FXPoint* points,FXuint npoints){ \
    FXRbCallVoidArrayMethod(this,"fillPolygon",points,npoints); \
    } \
  void cls::fillConcavePolygon(const FXPoint* points,FXuint npoints){ \
    FXRbCallVoidArrayMethod(this,"fillConcavePolygon",points,npoints); \
    } \
  void cls::fillComplexPolygon(const FXPoint* points,FXuint npoints){ \
    FXRbCallVoidArrayMethod(this,"fillComplexPolygon",points,npoints); \
    } \
  void cls::fillPolygonRel(const FXPoint* points,FXuint npoints){ \
    FXRbCallVoidArrayMethod(this,"fillPolygonRel",points,npoints); \
    } \
  void cls::fillConcavePolygonRel(const FXPoint* points,FXuint npoints){ \
    FXRbCallVoidArrayMethod(this,"fillConcavePolygonRel",points,npoints); \
    } \
  void cls::fillComplexPolygonRel(const FXPoint* points,FXuint npoints){ \
    FXRbCallVoidArrayMethod(this,"fillComplexPolygonRel",points,npoints); \
    } \
  void cls::drawHashBox(FXint x,FXint y,FXint w,FXint h,FXint b){ \
    FXRbCallVoidMethod(this,"drawHashBox",x,y,w,h,b); \
    } \
  void cls::drawFocusRectangle(FXint x,FXint y,FXint w,FXint h){ \
    FXRbCallVoidMethod(this,"drawFocusRectangle",x,y,w,h); \
    } \
  void cls::drawArea(const FXDrawable* source,FXint sx,FXint sy,FXint sw,FXint sh,FXint dx,FXint dy){ \
    FXRbCallVoidMethod(this,"drawArea",source,sx,sy,sw,sh,dx,dy); \
    } \
  void cls::drawArea(const FXDrawable* source,FXint sx,FXint sy,FXint sw,FXint sh,FXint dx,FXint dy,FXint dw,FXint dh){ \
    FXRbCallVoidMethod(this,"drawArea",source,sx,sy,sw,sh,dx,dy,dw,dh); \
    } \
  void cls::drawImage(const FXImage* image,FXint dx,FXint dy){ \
    FXRbCallVoidMethod(this,"drawImage",image,dx,dy); \
    } \
  void cls::drawBitmap(const FXBitmap* bitmap,FXint dx,FXint dy){ \
    FXRbCallVoidMethod(this,"drawBitmap",bitmap,dx,dy); \
    } \
  void cls::drawIcon(const FXIcon* icon,FXint dx,FXint dy){ \
    FXRbCallVoidMethod(this,"drawIcon",icon,dx,dy); \
    } \
  void cls::drawIconShaded(const FXIcon* icon,FXint dx,FXint dy){ \
    FXRbCallVoidMethod(this,"drawIconShaded",icon,dx,dy); \
    } \
  void cls::drawIconSunken(const FXIcon* icon,FXint dx,FXint dy){ \
    FXRbCallVoidMethod(this,"drawIconSunken",icon,dx,dy); \
    } \
  void cls::drawText(FXint x,FXint y,const FXString& string){ \
    FXRbCallDCDrawMethod(this, "drawText", x, y, string); \
    } \
  void cls::drawText(FXint x,FXint y,const FXchar* string,FXuint length){ \
    FXRbCallDCDrawMethod(this, "drawText", x, y, string, length); \
    } \
  void cls::drawImageText(FXint x,FXint y,const FXString& string){ \
    FXRbCallDCDrawMethod(this, "drawImageText", x, y, string); \
    } \
  void cls::drawImageText(FXint x,FXint y,const FXchar* string,FXuint length){ \
    FXRbCallDCDrawMethod(this, "drawImageText", x, y, string, length); \
    } \
  void cls::setForeground(FXColor clr){ \
    FXRbCallVoidMethod(this,"setForeground",clr); \
    } \
  void cls::setBackground(FXColor clr){ \
    FXRbCallVoidMethod(this,"setBackground",clr); \
    } \
  void cls::setDashes(FXuint dashoffset,const FXchar *dashpattern,FXuint dashlength){ \
    FXRbCallSetDashes(this,"setDashes",dashoffset,dashpattern,dashlength); \
    } \
  void cls::setLineWidth(FXuint linewidth){ \
    FXRbCallVoidMethod(this,"setLineWidth",linewidth); \
    } \
  void cls::setLineCap(FXCapStyle capstyle){ \
    FXRbCallVoidMethod(this,"setLineCap",capstyle); \
    } \
  void cls::setLineJoin(FXJoinStyle joinstyle){ \
    FXRbCallVoidMethod(this,"setLineJoin",joinstyle); \
    } \
  void cls::setLineStyle(FXLineStyle linestyle){ \
    FXRbCallVoidMethod(this,"setLineStyle",linestyle); \
    } \
  void cls::setFillStyle(FXFillStyle fillstyle){ \
    FXRbCallVoidMethod(this,"setFillStyle",fillstyle); \
    } \
  void cls::setFillRule(FXFillRule fillrule){ \
    FXRbCallVoidMethod(this,"setFillRule",fillrule); \
    } \
  void cls::setFunction(FXFunction func){ \
    FXRbCallVoidMethod(this,"setFunction",func); \
    } \
  void cls::setTile(FXImage* image,FXint dx,FXint dy){ \
    FXRbCallVoidMethod(this,"setTile",image,dx,dy); \
    } \
  void cls::setStipple(FXBitmap *bitmap,FXint dx,FXint dy){ \
    FXRbCallVoidMethod(this,"setStipple",bitmap,dx,dy); \
    } \
  void cls::setStipple(FXStipplePattern pat,FXint dx,FXint dy){ \
    FXRbCallVoidMethod(this,"setStipple",pat,dx,dy); \
    } \
  void cls::setClipRegion(const FXRegion& region){ \
    FXRbCallVoidMethod(this,"setClipRegion",region); \
    } \
  void cls::setClipRectangle(FXint x,FXint y,FXint w,FXint h){ \
    FXRbCallVoidMethod(this,"setClipRectangle",x,y,w,h); \
    } \
  void cls::setClipRectangle(const FXRectangle& rectangle){ \
    FXRbCallVoidMethod(this,"setClipRectangle",rectangle); \
    } \
  void cls::clearClipRectangle(){ \
    FXRbCallVoidMethod(this,"clearClipRectangle"); \
    } \
  void cls::setClipMask(FXBitmap* bitmap,FXint dx,FXint dy){ \
    FXRbCallVoidMethod(this,"setClipMask",bitmap,dx,dy); \
    } \
  void cls::clearClipMask(){ \
    FXRbCallVoidMethod(this,"clearClipMask"); \
    } \
  void cls::setFont(FXFont *fnt){ \
    FXRbCallVoidMethod(this,"setFont",fnt); \
    } \
  void cls::clipChildren(FXbool yes){ \
    FXRbCallVoidMethod(this,"clipChildren",yes); \
    }


class FXRbDC : public FXDC {
#include "FXRbDCVirtuals.h"
public:
  // Constructor
  FXRbDC(FXApp* app) : FXDC(app){
    FXRbRegisterAppSensitiveObject(this);
    }

  // Mark dependencies for the GC
  static void markfunc(FXDC* self);

  // Destructor
  virtual ~FXRbDC(){
    FXTRACE((100,"FXRbDC::~FXRbDC() %p\n",this));
    FXRbUnregisterRubyObj(this);
    FXRbUnregisterAppSensitiveObject(this);
    }
  };

#endif