2003-08-28 Alp Toker <alp@atoker.com>
* glue/style.c: glue and corresponding .custom entries for TextGC svn path=/trunk/gtk-sharp/; revision=17678
This commit is contained in:
parent
310ff89edd
commit
68261125e9
3 changed files with 40 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2003-08-28 Alp Toker <alp@atoker.com>
|
||||||
|
|
||||||
|
* glue/style.c: glue and corresponding .custom entries for
|
||||||
|
TextGC
|
||||||
|
|
||||||
2003-08-26 John Luke <jluke@cfl.rr.com>
|
2003-08-26 John Luke <jluke@cfl.rr.com>
|
||||||
|
|
||||||
* gtk/ThreadNotify.cs: mark dllimported methods private
|
* gtk/ThreadNotify.cs: mark dllimported methods private
|
||||||
|
|
18
glue/style.c
18
glue/style.c
|
@ -19,12 +19,16 @@ GdkGC *gtksharp_gtk_style_get_bg_gc (GtkStyle *style, int i);
|
||||||
|
|
||||||
GdkGC *gtksharp_gtk_style_get_base_gc (GtkStyle *style, int i);
|
GdkGC *gtksharp_gtk_style_get_base_gc (GtkStyle *style, int i);
|
||||||
|
|
||||||
|
GdkGC *gtksharp_gtk_style_get_text_gc (GtkStyle *style, int i);
|
||||||
|
|
||||||
void gtksharp_gtk_style_set_fg_gc (GtkStyle *style, int i, GdkGC *gc);
|
void gtksharp_gtk_style_set_fg_gc (GtkStyle *style, int i, GdkGC *gc);
|
||||||
|
|
||||||
void gtksharp_gtk_style_set_bg_gc (GtkStyle *style, int i, GdkGC *gc);
|
void gtksharp_gtk_style_set_bg_gc (GtkStyle *style, int i, GdkGC *gc);
|
||||||
|
|
||||||
void gtksharp_gtk_style_set_base_gc (GtkStyle *style, int i, GdkGC *gc);
|
void gtksharp_gtk_style_set_base_gc (GtkStyle *style, int i, GdkGC *gc);
|
||||||
|
|
||||||
|
void gtksharp_gtk_style_set_text_gc (GtkStyle *style, int i, GdkGC *gc);
|
||||||
|
|
||||||
GdkColor *gtksharp_gtk_style_get_white (GtkStyle *style);
|
GdkColor *gtksharp_gtk_style_get_white (GtkStyle *style);
|
||||||
|
|
||||||
GdkColor *gtksharp_gtk_style_get_black (GtkStyle *style);
|
GdkColor *gtksharp_gtk_style_get_black (GtkStyle *style);
|
||||||
|
@ -77,6 +81,13 @@ gtksharp_gtk_style_get_base_gc (GtkStyle *style, int i)
|
||||||
return style->base_gc[i];
|
return style->base_gc[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GdkGC*
|
||||||
|
gtksharp_gtk_style_get_text_gc (GtkStyle *style, int i)
|
||||||
|
{
|
||||||
|
g_object_ref (G_OBJECT (style->text_gc[i]));
|
||||||
|
return style->text_gc[i];
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
gtksharp_gtk_style_set_fg_gc (GtkStyle *style, int i, GdkGC *gc)
|
gtksharp_gtk_style_set_fg_gc (GtkStyle *style, int i, GdkGC *gc)
|
||||||
{
|
{
|
||||||
|
@ -98,6 +109,13 @@ gtksharp_gtk_style_set_base_gc (GtkStyle *style, int i, GdkGC *gc)
|
||||||
style->base_gc[i] = gc;
|
style->base_gc[i] = gc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
gtksharp_gtk_style_set_text_gc (GtkStyle *style, int i, GdkGC *gc)
|
||||||
|
{
|
||||||
|
g_object_ref (G_OBJECT (gc));
|
||||||
|
style->text_gc[i] = gc;
|
||||||
|
}
|
||||||
|
|
||||||
GdkColor*
|
GdkColor*
|
||||||
gtksharp_gtk_style_get_white (GtkStyle *style)
|
gtksharp_gtk_style_get_white (GtkStyle *style)
|
||||||
{
|
{
|
||||||
|
|
|
@ -105,6 +105,23 @@ public void SetBaseGC (StateType state, Gdk.GC gc)
|
||||||
gtksharp_gtk_style_set_base_gc (Handle, (int) state, gc.Handle);
|
gtksharp_gtk_style_set_base_gc (Handle, (int) state, gc.Handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue")]
|
||||||
|
static extern IntPtr gtksharp_gtk_style_get_text_gc (IntPtr style, int i);
|
||||||
|
|
||||||
|
public Gdk.GC TextGC (StateType state)
|
||||||
|
{
|
||||||
|
IntPtr raw = gtksharp_gtk_style_get_text_gc (Handle, (int) state);
|
||||||
|
return EnsureGC (raw);
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue")]
|
||||||
|
static extern IntPtr gtksharp_gtk_style_set_text_gc (IntPtr style, int i, IntPtr gc);
|
||||||
|
|
||||||
|
public void SetTextGC (StateType state, Gdk.GC gc)
|
||||||
|
{
|
||||||
|
gtksharp_gtk_style_set_text_gc (Handle, (int) state, gc.Handle);
|
||||||
|
}
|
||||||
|
|
||||||
[DllImport("gtksharpglue")]
|
[DllImport("gtksharpglue")]
|
||||||
static extern IntPtr gtksharp_gtk_style_get_white (IntPtr style);
|
static extern IntPtr gtksharp_gtk_style_get_white (IntPtr style);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue