gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
Pixmap.H
Go to the documentation of this file.
1 /* Copyright 2000-2018 Matt Flax <flatmax@flatmax.org>
2  This file is part of GTK+ IOStream class set
3 
4  GTK+ IOStream is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  GTK+ IOStream is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You have received a copy of the GNU General Public License
15  along with GTK+ IOStream
16  */
17 #ifndef PIXMAP_H_
18 #define PIXMAP_H_
19 
20 #include <gtk/gtk.h>
21 
22 #define PIXMAP_ORIG_VER
23 
24 #if GTK_MAJOR_VERSION>2 // if using GTK3 or more recent, then don't use GdkPixmaps, use cairo surfaces
25 #error "GTK verions is > 2, Pixmap has been superceeded by Surface"
26 #endif
27 
28 #ifndef _MSC_VER
29 #warning "Pixmap has been superceeded by Surface and is not present in GTK version 3 and greater."
30 #else
31 #pragma message("Pixmap has been superceeded by Surface and is not present in GTK version 3 and greater.")
32 #endif
33 
34 #include "Surface.H"
35 
39 class Pixmap : public Surface {
40 public:
44  Pixmap() : Surface(){
45  init(200, 200);
46  }
47 
53  Pixmap(int width, int height) : Surface(width, height){
54  init(width, height);
55  }
56 };
57 
58 #endif //PIXMAP_H_
Pixmap()
Definition: Pixmap.H:44
Definition: Pixmap.H:39
Pixmap(int width, int height)
Definition: Pixmap.H:53
void init(int width, int height)
Definition: Surface.H:134
gtkIOStream: /tmp/gtkiostream/include/Pixmap.H Source File
GTK+ IOStream  Beta