Added some extra functions to access the ColorContext toys.

federico
This commit is contained in:
Arturo Espinosa 1997-12-17 01:40:34 +00:00
parent 585dc6d781
commit 134466992b
3 changed files with 40 additions and 0 deletions

View File

@ -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,

View File

@ -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)

View File

@ -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)