![]() |
![]() |
Public Methods | |
virtual | ~Colormap () |
GdkColormap* | gobj () |
const GdkColormap* | gobj () const |
GdkColormap* | gobj_copy () |
int | alloc_colors (GdkColor* colors, int ncolors, bool writeable, bool best_match, gboolean* success) |
bool | alloc_color (Color& color, bool writeable=false, bool best_match=true) |
void | free_colors (GdkColor* colors, int ncolors) |
void | query_color (gulong pixel, Color& result) |
Locates the RGB color in colormap corresponding to the given hardware pixel pixel. | |
Glib::RefPtr<Visual> | get_visual () |
Glib::RefPtr<const Visual> | get_visual () const |
Glib::RefPtr<Screen> | get_screen () |
Glib::RefPtr<const Screen> | get_screen () const |
Static Public Methods | |
Glib::RefPtr<Colormap> | create (const Glib::RefPtr<Visual>& visual, bool allocate) |
Protected Methods | |
Colormap (const Glib::RefPtr<Visual>& visual, bool allocate) | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Gdk::Colormap> | wrap (GdkColormap* object, bool take_copy=false) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from Glib::ObjectBase. |
|
Reimplemented from Glib::ObjectBase. |
|
|
|
Locates the RGB color in colormap corresponding to the given hardware pixel pixel. pixel must be a valid pixel in the colormap; it's a programmer error to call this function with a pixel which is not in the colormap. Hardware pixels are normally obtained from alloc_colors(), or from a Gdk::Image. (A Gdk::Image contains image data in hardware format, a Gdk::Pixbuf contains image data in a canonical 24-bit RGB format.) This function is rarely useful, it's used for example to implement the eyedropper feature in Gtk::ColorSelection.
|
|
|