* gnu/gcj/xlib/*.h: New files.
[official-gcc.git] / libjava / gnu / gcj / xlib / Visual.h
blobde3e25e33088d7991530d4bf446277c653a801cf
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __gnu_gcj_xlib_Visual__
5 #define __gnu_gcj_xlib_Visual__
7 #pragma interface
9 #include <java/lang/Object.h>
10 extern "Java"
12 namespace gnu
14 namespace gcj
16 class RawData;
17 namespace xlib
19 class Display;
20 class Screen;
21 class Visual;
27 class gnu::gcj::xlib::Visual : public ::java::lang::Object
30 public: // actually package-private
31 Visual(::gnu::gcj::RawData *, ::gnu::gcj::xlib::Screen *, jint);
32 Visual(::gnu::gcj::xlib::Display *, ::gnu::gcj::RawData *, jint);
33 public: // actually protected
34 void init(::gnu::gcj::RawData *, jint);
35 void finalize();
36 public: // actually package-private
37 ::gnu::gcj::RawData * getVisualStructure();
38 public:
39 jint getRedMask();
40 jint getGreenMask();
41 jint getBlueMask();
42 jint getScreenNumber();
43 jint getDepth();
44 ::gnu::gcj::xlib::Screen * getScreen();
45 jint getVisualClass();
46 jboolean hasRGBSubfields();
47 public: // actually protected
48 void ensureXVisualInfo(jint);
49 public:
50 ::java::lang::String * toString();
51 static const jint VC_STATIC_GRAY = 0;
52 static const jint VC_GRAY_SCALE = 1;
53 static const jint VC_STATIC_COLOR = 2;
54 static const jint VC_PSEUDO_COLOR = 3;
55 static const jint VC_TRUE_COLOR = 4;
56 static const jint VC_DIRECT_COLOR = 5;
57 public: // actually protected
58 static const jint MASK_ID = 1;
59 static const jint MASK_SCREEN = 2;
60 static const jint MASK_DEPTH = 4;
61 static const jint MASK_CLASS = 8;
62 static const jint MASK_RED = 16;
63 static const jint MASK_GREEN = 32;
64 static const jint MASK_BLUE = 64;
65 static const jint MASK_COLORMAP_SIZE = 128;
66 static const jint MASK_BITS_PER_RGB = 256;
67 static const jint MASK_ALL = 511;
68 private:
69 static const jint MASK_VISUAL_STRUCTURE = -2147483647 - 1;
70 public: // actually package-private
71 ::gnu::gcj::xlib::Display * __attribute__((aligned(__alignof__( ::java::lang::Object)))) display;
72 ::gnu::gcj::RawData * xVisualInfo;
73 jint infoMask;
74 ::gnu::gcj::xlib::Screen * screen;
75 public:
76 static ::java::lang::Class class$;
79 #endif // __gnu_gcj_xlib_Visual__