2002-08-03 22:24:37 +00:00
|
|
|
/* 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)
|
|
|
|
{
|
2002-09-12 05:21:16 +00:00
|
|
|
g_object_ref (G_OBJECT (style->white_gc));
|
2002-08-03 22:24:37 +00:00
|
|
|
return style->white_gc;
|
|
|
|
}
|
|
|
|
|
|
|
|
GdkGC*
|
|
|
|
gtksharp_gtk_style_get_black_gc (GtkStyle *style)
|
|
|
|
{
|
2002-09-12 05:21:16 +00:00
|
|
|
g_object_ref (G_OBJECT (style->black_gc));
|
2002-08-03 22:24:37 +00:00
|
|
|
return style->black_gc;
|
|
|
|
}
|
|
|
|
|
|
|
|
GdkGC**
|
|
|
|
gtksharp_gtk_style_get_fg_gc (GtkStyle *style)
|
|
|
|
{
|
2002-09-12 05:21:16 +00:00
|
|
|
g_object_ref (G_OBJECT (style->fg_gc));
|
2002-08-03 22:24:37 +00:00
|
|
|
return style->fg_gc;
|
|
|
|
}
|
|
|
|
|
|
|
|
GdkGC**
|
|
|
|
gtksharp_gtk_style_get_bg_gc (GtkStyle *style)
|
|
|
|
{
|
2002-09-12 05:21:16 +00:00
|
|
|
g_object_ref (G_OBJECT (style->bg_gc));
|
2002-08-03 22:24:37 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|