3 #ifndef _GDKMM_COLORMAP_H
4 #define _GDKMM_COLORMAP_H
6 #include <gdkmmconfig.h>
9 #include <glibmm/ustring.h>
10 #include <sigc++/sigc++.h>
37 #include <glibmm/object.h>
42 #ifndef DOXYGEN_SHOULD_SKIP_THIS
48 #ifndef DOXYGEN_SHOULD_SKIP_THIS
50 {
class Colormap_Class; }
69 #ifndef DOXYGEN_SHOULD_SKIP_THIS
78 static CppClassType colormap_class_;
86 explicit Colormap(
const Glib::ConstructParams& construct_params);
98 #ifndef DOXYGEN_SHOULD_SKIP_THIS
101 static GType get_base_type() G_GNUC_CONST;
117 explicit Colormap(
const Glib::RefPtr<Visual>& visual,
bool allocate);
122 static Glib::RefPtr<Colormap>
create(
const Glib::RefPtr<Visual>& visual,
bool allocate);
134 #ifndef GDKMM_DISABLE_DEPRECATED
static GType get_type() G_GNUC_CONST
Glib::RefPtr< Screen > get_screen()
Glib::RefPtr< const Screen > get_screen() const
Glib::RefPtr< const Visual > get_visual() const
int alloc_colors(ArrayHandle_Color &colors, int ncolors, bool writeable, bool best_match, Glib::ArrayHandle< bool > &success)
Glib::RefPtr< Gdk::Colormap > wrap(GdkColormap *object, bool take_copy=false)
static Glib::RefPtr< Colormap > get_system()
bool alloc_color(Color &color, bool writeable=false, bool best_match=true)
void free_colors(Color &colors, int ncolors)
GdkColormap * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
GdkColormap * gobj()
Provides access to the underlying C GObject.
Glib::RefPtr< Visual > get_visual()
static Glib::RefPtr< Colormap > create(const Glib::RefPtr< Visual > &visual, bool allocate)
void free_color(Color &color)
const GdkColormap * gobj() const
Provides access to the underlying C GObject.
Colormap(const Glib::RefPtr< Visual > &visual, bool allocate)
void query_color(gulong pixel, Color &result)
PBD::PropertyDescriptor< uint32_t > color
Glib::ArrayHandle< Color, ColorTraits > ArrayHandle_Color