Ardour  9.0-pre0-350-gf17a656217
visual.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GDKMM_VISUAL_H
4 #define _GDKMM_VISUAL_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: visual.hg,v 1.4 2006/04/12 11:11:24 murrayc Exp $ */
11 
12 /* bitmap.h
13  *
14  * Copyright (C) 1998-2002 The gtkmm Development Team
15  *
16  * This library is free software; you can redistribute it and/or
17  * modify it under the terms of the GNU Lesser General Public
18  * License as published by the Free Software Foundation; either
19  * version 2.1 of the License, or (at your option) any later version.
20  *
21  * This library is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24  * Lesser General Public License for more details.
25  *
26  * You should have received a copy of the GNU Lesser General Public
27  * License along with this library; if not, write to the Free
28  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29  */
30 
31 #include <glibmm/object.h>
32 #include <gdkmm/screen.h>
33 
34 
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
36 typedef struct _GdkVisual GdkVisual;
37 typedef struct _GdkVisualClass GdkVisualClass;
38 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 
40 
41 #ifndef DOXYGEN_SHOULD_SKIP_THIS
42 namespace Gdk
43 { class Visual_Class; } // namespace Gdk
44 #endif //DOXYGEN_SHOULD_SKIP_THIS
45 
46 namespace Gdk
47 {
48 
49 class Screen;
50 
58 {
65 };
66 
67 } // namespace Gdk
68 
69 
70 #ifndef DOXYGEN_SHOULD_SKIP_THIS
71 namespace Glib
72 {
73 
74 template <>
75 class Value<Gdk::VisualType> : public Glib::Value_Enum<Gdk::VisualType>
76 {
77 public:
78  static GType value_type() G_GNUC_CONST;
79 };
80 
81 } // namespace Glib
82 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
83 
84 
85 namespace Gdk
86 {
87 
88 
112 class Visual : public Glib::Object
113 {
114 
115 #ifndef DOXYGEN_SHOULD_SKIP_THIS
116 
117 public:
118  typedef Visual CppObjectType;
119  typedef Visual_Class CppClassType;
120  typedef GdkVisual BaseObjectType;
121  typedef GdkVisualClass BaseClassType;
122 
123 private: friend class Visual_Class;
124  static CppClassType visual_class_;
125 
126 private:
127  // noncopyable
128  Visual(const Visual&);
129  Visual& operator=(const Visual&);
130 
131 protected:
132  explicit Visual(const Glib::ConstructParams& construct_params);
133  explicit Visual(GdkVisual* castitem);
134 
135 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
136 
137 public:
138  virtual ~Visual();
139 
142  static GType get_type() G_GNUC_CONST;
143 
144 #ifndef DOXYGEN_SHOULD_SKIP_THIS
145 
146 
147  static GType get_base_type() G_GNUC_CONST;
148 #endif
149 
151  GdkVisual* gobj() { return reinterpret_cast<GdkVisual*>(gobject_); }
152 
154  const GdkVisual* gobj() const { return reinterpret_cast<GdkVisual*>(gobject_); }
155 
158 
159 private:
160 
161 protected:
162 
164 
165 public:
166 
173  static Glib::RefPtr<Visual> get_system();
174 
180  static Glib::RefPtr<Visual> get_best();
181 
190  static Glib::RefPtr<Visual> get_best(int depth);
191 
200  static Glib::RefPtr<Visual> get_best(VisualType visual_type);
201 
209  static Glib::RefPtr<Visual> get_best(int depth, VisualType visual_type);
210 
211 
218  static int get_best_depth();
219 
225 
226 
231  Glib::RefPtr<Screen> get_screen();
232 
237  Glib::RefPtr<const Screen> get_screen() const;
238 
239 
245 
250  int get_depth() const;
251 
257 
262  int get_colormap_size() const;
263 
268  int get_bits_per_rgb() const;
269 
280  void get_red_pixel_details(guint32& mask, int& shift, int& precision) const;
281 
292  void get_green_pixel_details(guint32& mask, int& shift, int& precision) const;
293 
304  void get_blue_pixel_details(guint32& mask, int& shift, int& precision) const;
305 
306 
307 public:
308 
309 public:
310  //C++ methods used to invoke GTK+ virtual functions:
311 
312 protected:
313  //GTK+ Virtual Functions (override these to change behaviour):
314 
315  //Default Signal Handlers::
316 
317 
318 };
319 
320 } //namespace Gdk
321 
322 
323 namespace Glib
324 {
333  Glib::RefPtr<Gdk::Visual> wrap(GdkVisual* object, bool take_copy = false);
334 }
335 
336 
337 #endif /* _GDKMM_VISUAL_H */
338 
Glib::RefPtr< Gdk::Visual > wrap(GdkVisual *object, bool take_copy=false)
void get_red_pixel_details(guint32 &mask, int &shift, int &precision) const
static Glib::RefPtr< Visual > get_best(VisualType visual_type)
GdkVisual * gobj()
Provides access to the underlying C GObject.
Definition: visual.h:151
static Glib::RefPtr< Visual > get_best(int depth)
ByteOrder get_byte_order()
virtual ~Visual()
static int get_best_depth()
static Glib::RefPtr< Visual > get_system()
int get_depth() const
const GdkVisual * gobj() const
Provides access to the underlying C GObject.
Definition: visual.h:154
void get_green_pixel_details(guint32 &mask, int &shift, int &precision) const
Glib::RefPtr< const Screen > get_screen() const
Glib::RefPtr< Screen > get_screen()
VisualType get_visual_type() const
void get_blue_pixel_details(guint32 &mask, int &shift, int &precision) const
static Glib::RefPtr< Visual > get_best()
static VisualType get_best_type()
static Glib::RefPtr< Visual > get_best(int depth, VisualType visual_type)
GdkVisual * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
static GType get_type() G_GNUC_CONST
int get_colormap_size() const
int get_bits_per_rgb() const
VisualType
Definition: visual.h:58
@ VISUAL_DIRECT_COLOR
Definition: visual.h:64
@ VISUAL_GRAYSCALE
Definition: visual.h:60
@ VISUAL_TRUE_COLOR
Definition: visual.h:63
@ VISUAL_STATIC_COLOR
Definition: visual.h:61
@ VISUAL_PSEUDO_COLOR
Definition: visual.h:62
@ VISUAL_STATIC_GRAY
Definition: visual.h:59
PBD::PropertyDescriptor< float > shift
Definition: lobject.h:100