Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 57 lines (48 sloc) 1.818 kb
45cf7d8 @lylejohnson initial checkin of r2610 from trunk
lylejohnson authored
1 /***********************************************************************
2 * FXRuby -- the Ruby language bindings for the FOX GUI toolkit.
b8219ec @lylejohnson Updated copyright notice for all SWIG interface files
lylejohnson authored
3 * Copyright (c) 2001-2009 by Lyle Johnson. All Rights Reserved.
45cf7d8 @lylejohnson initial checkin of r2610 from trunk
lylejohnson authored
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * For further information please contact the author by e-mail
a934547 @lylejohnson Replaced e-mail address "lyle@users.sourceforge.net" with
lylejohnson authored
20 * at "lyle@lylejohnson.name".
45cf7d8 @lylejohnson initial checkin of r2610 from trunk
lylejohnson authored
21 ***********************************************************************/
22
23
24 /// X Pixmap image
25 class FXXPMImage : public FXImage {
26 protected:
27 FXXPMImage(){}
28 public:
29 %extend {
30 static VALUE fileExt() {
31 return rb_str_new2(FXXPMImage::fileExt);
32 }
33
34 static VALUE mimeType() {
35 return rb_str_new2(FXXPMImage::mimeType);
36 }
37 }
38 public:
bea4cad @larskanis Strip all whitespaces on line endings
authored
39
45cf7d8 @lylejohnson initial checkin of r2610 from trunk
lylejohnson authored
40 /// Construct image from compiled-in X Pixmap format
41 %extend {
42 FXXPMImage(FXApp* a,const FXchar **pix=NULL,FXuint opts=0,FXint w=1,FXint h=1){
43 return new FXRbXPMImage(a,pix,opts,w,h);
44 }
45 }
46
47 /// Destroy icon
48 virtual ~FXXPMImage();
49 };
50
51
52 DECLARE_FXOBJECT_VIRTUALS(FXXPMImage)
53 DECLARE_FXID_VIRTUALS(FXXPMImage)
54 DECLARE_FXDRAWABLE_VIRTUALS(FXXPMImage)
55 DECLARE_FXIMAGE_VIRTUALS(FXXPMImage)
56
Something went wrong with that request. Please try again.