forked from AuroraMiddleware/gtk
Added some extra functions to access the ColorContext toys.
federico
This commit is contained in:
parent
585dc6d781
commit
134466992b
@ -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,
|
||||
|
19
gdk/gdkcc.c
19
gdk/gdkcc.c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user