|
Public Member Functions |
virtual | ~Colormap () |
GdkColormap* | gobj () |
| Provides access to the underlying C GObject.
|
const GdkColormap* | gobj () const |
| Provides access to the underlying C GObject.
|
GdkColormap* | gobj_copy () |
int | alloc_colors (GdkColor* colors, int ncolors, bool writeable, bool best_match, gboolean* success) |
| Allocates colors from a colormap.
|
bool | alloc_color (Color& color, bool writeable=false, bool best_match=true) |
| Allocates a single color from a colormap.
|
void | free_colors (GdkColor* colors, int ncolors) |
| Frees previously allocated colors.
|
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 () |
| Returns the visual for which a given colormap was created.
|
Glib::RefPtr<const Visual> | get_visual () const |
| Returns the visual for which a given colormap was created.
|
Glib::RefPtr<Screen> | get_screen () |
| Gets the screen for which this colormap was created.
|
Glib::RefPtr<const Screen> | get_screen () const |
| Gets the screen for which this colormap was created.
|
Static Public Member Functions |
Glib::RefPtr<Colormap> | create (const Glib::RefPtr<Visual>& visual, bool allocate) |
Protected Member Functions |
| 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) |