Commit 13446699 authored by Arturo Espinosa's avatar Arturo Espinosa

Added some extra functions to access the ColorContext toys.

federico
parent 585dc6d7
......@@ -680,6 +680,8 @@ void gdk_color_context_get_pixels_incremental (GdkColorContext *cc,
gint *nallocated);
gint gdk_color_context_get_num_colors (GdkColorContext *cc);
gint gdk_color_context_get_depth (GdkColorContext *cc);
GdkColorContextMode gdk_color_context_get_mode (GdkColorContext *cc);
gint gdk_color_context_query_color (GdkColorContext *cc,
GdkColor *color);
gint gdk_color_context_query_colors (GdkColorContext *cc,
......
......@@ -1335,6 +1335,25 @@ gdk_color_context_get_num_colors(GdkColorContext *cc)
return ((GdkColorContextPrivate *) cc)->num_colors;
}
gint
gdk_color_context_get_depth (GdkColorContext *cc)
{
GdkColorContextPrivate *ccp = (GdkColorContextPrivate *) cc;
g_assert (cc != NULL);
return ccp->visual->depth;
}
GdkColorContextMode
gdk_color_context_get_mode (GdkColorContext *cc)
{
g_assert (cc != NULL);
return ((GdkColorContextPrivate *) cc)->mode;
}
gint
gdk_color_context_query_color(GdkColorContext *cc,
GdkColor *color)
......
......@@ -1335,6 +1335,25 @@ gdk_color_context_get_num_colors(GdkColorContext *cc)
return ((GdkColorContextPrivate *) cc)->num_colors;
}
gint
gdk_color_context_get_depth (GdkColorContext *cc)
{
GdkColorContextPrivate *ccp = (GdkColorContextPrivate *) cc;
g_assert (cc != NULL);
return ccp->visual->depth;
}
GdkColorContextMode
gdk_color_context_get_mode (GdkColorContext *cc)
{
g_assert (cc != NULL);
return ((GdkColorContextPrivate *) cc)->mode;
}
gint
gdk_color_context_query_color(GdkColorContext *cc,
GdkColor *color)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment