2004-04-01 Jorn Baayen <jorn@nl.linux.org>
* gtk/Style.custom : wrappers for Text[] and Base[] * gtk/glue/style.c : glue to access text[] and base[] [fixes #54805] svn path=/trunk/gtk-sharp/; revision=24930
This commit is contained in:
parent
37738a3c26
commit
1343fb39cc
3 changed files with 62 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-04-01 Jorn Baayen <jorn@nl.linux.org>
|
||||
|
||||
* gtk/Style.custom : wrappers for Text[] and Base[]
|
||||
* gtk/glue/style.c : glue to access text[] and base[]
|
||||
[fixes #54805]
|
||||
|
||||
2004-04-01 Jeroen Zwartepoorte <jeroen@xs4all.nl>
|
||||
|
||||
* gnome/IconTheme.custom : GetSearchPath impl [fixes #51599].
|
||||
|
|
|
@ -176,6 +176,46 @@ public Gdk.Color[] Foregrounds {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue")]
|
||||
static extern IntPtr gtksharp_gtk_style_get_text (IntPtr style, int i);
|
||||
|
||||
public Gdk.Color Text (StateType state)
|
||||
{
|
||||
IntPtr raw = gtksharp_gtk_style_get_text (Handle, (int) state);
|
||||
return Gdk.Color.New (raw);
|
||||
}
|
||||
|
||||
public Gdk.Color[] TextColors {
|
||||
get {
|
||||
IntPtr[] raws = new IntPtr[6];
|
||||
Gdk.Color[] ret = new Gdk.Color[raws.Length];
|
||||
for (int i = 0; i < 6; i++) {
|
||||
ret[i] = Gdk.Color.New (gtksharp_gtk_style_get_text (Handle, i));
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue")]
|
||||
static extern IntPtr gtksharp_gtk_style_get_base (IntPtr style, int i);
|
||||
|
||||
public Gdk.Color Base (StateType state)
|
||||
{
|
||||
IntPtr raw = gtksharp_gtk_style_get_base (Handle, (int) state);
|
||||
return Gdk.Color.New (raw);
|
||||
}
|
||||
|
||||
public Gdk.Color[] BaseColors {
|
||||
get {
|
||||
IntPtr[] raws = new IntPtr[6];
|
||||
Gdk.Color[] ret = new Gdk.Color[raws.Length];
|
||||
for (int i = 0; i < 6; i++) {
|
||||
ret[i] = Gdk.Color.New (gtksharp_gtk_style_get_base (Handle, i));
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport ("gtksharpglue")]
|
||||
static extern int gtksharp_gtk_style_get_thickness (IntPtr style, int x_axis);
|
||||
[DllImport ("gtksharpglue")]
|
||||
|
|
|
@ -37,6 +37,10 @@ GdkColor *gtksharp_gtk_style_get_fg (GtkStyle *style, int i);
|
|||
|
||||
GdkColor *gtksharp_gtk_style_get_bg (GtkStyle *style, int i);
|
||||
|
||||
GdkColor *gtksharp_gtk_style_get_text (GtkStyle *style, int i);
|
||||
|
||||
GdkColor *gtksharp_gtk_style_get_base (GtkStyle *style, int i);
|
||||
|
||||
PangoFontDescription *gtksharp_gtk_style_get_font_description (GtkStyle *style);
|
||||
|
||||
int gtksharp_gtk_style_get_thickness (GtkStyle *style, int x);
|
||||
|
@ -140,6 +144,18 @@ gtksharp_gtk_style_get_bg (GtkStyle *style, int i)
|
|||
return &style->bg[i];
|
||||
}
|
||||
|
||||
GdkColor*
|
||||
gtksharp_gtk_style_get_text (GtkStyle *style, int i)
|
||||
{
|
||||
return &style->text[i];
|
||||
}
|
||||
|
||||
GdkColor*
|
||||
gtksharp_gtk_style_get_base (GtkStyle *style, int i)
|
||||
{
|
||||
return &style->base[i];
|
||||
}
|
||||
|
||||
PangoFontDescription *
|
||||
gtksharp_gtk_style_get_font_description (GtkStyle *style)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue