GtkSharp/glue/style.c

64 lines
1 KiB
C
Raw Normal View History

/* style.c : Glue to access fields in GtkStyle.
*
* Author: Rachel Hestilow <hestilow@ximian.com>
*
* <c> 2002 Rachel Hestilow, Mike Kestner
*/
#include <gtk/gtkstyle.h>
/* FIXME: include all fields */
GdkGC*
gtksharp_gtk_style_get_white_gc (GtkStyle *style)
{
g_object_ref (G_OBJECT (style->white_gc));
return style->white_gc;
}
GdkGC*
gtksharp_gtk_style_get_black_gc (GtkStyle *style)
{
g_object_ref (G_OBJECT (style->black_gc));
return style->black_gc;
}
GdkGC**
gtksharp_gtk_style_get_fg_gc (GtkStyle *style)
{
g_object_ref (G_OBJECT (style->fg_gc));
return style->fg_gc;
}
GdkGC**
gtksharp_gtk_style_get_bg_gc (GtkStyle *style)
{
g_object_ref (G_OBJECT (style->bg_gc));
return style->bg_gc;
}
GdkColor*
gtksharp_gtk_style_get_white (GtkStyle *style)
{
return &style->white;
}
GdkColor*
gtksharp_gtk_style_get_black (GtkStyle *style)
{
return &style->black;
}
GdkColor*
gtksharp_gtk_style_get_fg (GtkStyle *style)
{
return style->fg;
}
GdkColor**
gtksharp_gtk_style_get_bg (GtkStyle *style)
{
return style->bg;
}