gtkmm  2.24.4
Public Member Functions | Static Public Member Functions | Protected Member Functions | Related Functions | List of all members
Gdk::Colormap Class Reference

A Colormap is an object that contains the mapping between the color values stored in memory and the RGB values that are used to display color values. More...

Inheritance diagram for Gdk::Colormap:
Inheritance graph
[legend]
Collaboration diagram for Gdk::Colormap:
Collaboration graph
[legend]

Public Member Functions

 Colormap (Colormap&& src) noexcept
 
Colormapoperator= (Colormap&& src) noexcept
 
 ~Colormap () noexceptoverride
 
GdkColormap* gobj ()
 Provides access to the underlying C GObject. More...
 
const GdkColormap* gobj () const
 Provides access to the underlying C GObject. More...
 
GdkColormap* gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
 
int alloc_colors (ArrayHandle_Color& colors, int ncolors, bool writeable, bool best_match, Glib::ArrayHandle< bool >& success)
 
void free_colors (Color& colors, int ncolors)
 
bool alloc_color (Color& color, bool writeable=false, bool best_match=true)
 Allocates a single color from a colormap. More...
 
void free_color (Color& color)
 
void query_color (gulong pixel, Color& result)
 Locates the RGB color in colormap corresponding to the given hardware pixel pixel. More...
 
Glib::RefPtr< Visualget_visual ()
 Returns the visual for which a given colormap was created. More...
 
Glib::RefPtr< const Visualget_visual () const
 Returns the visual for which a given colormap was created. More...
 
Glib::RefPtr< Screenget_screen ()
 Gets the screen for which this colormap was created. More...
 
Glib::RefPtr< const Screenget_screen () const
 Gets the screen for which this colormap was created. More...
 
- Public Member Functions inherited from Glib::Object
 Object (const Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&src) noexcept
 
Objectoperator= (Object &&src) noexcept
 
void * get_data (const QueryQuark &key)
 
void set_data (const Quark &key, void *data)
 
void set_data (const Quark &key, void *data, DestroyNotify notify)
 
void remove_data (const QueryQuark &quark)
 
void * steal_data (const QueryQuark &quark)
 
Glib::RefPtr< Glib::Object