2005-01-17 Mike Kestner <mkestner@novell.com>
* gtk/Style.custom : add Light, LightColors, Mid, MidColors, Dark, and DarkColors. * gtk/glue/style.c : add get_light and get_dark svn path=/trunk/gtk-sharp/; revision=39073
This commit is contained in:
parent
41982e431d
commit
b857dbe608
4 changed files with 180 additions and 9 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2005-01-17 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
|
* gtk/Style.custom : add Light, LightColors, Mid, MidColors, Dark,
|
||||||
|
and DarkColors.
|
||||||
|
* gtk/glue/style.c : add get_light and get_dark
|
||||||
|
|
||||||
2005-01-17 Mike Kestner <mkestner@novell.com>
|
2005-01-17 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
* gtk/Gtk.metadata : hide Stock.
|
* gtk/Gtk.metadata : hide Stock.
|
||||||
|
|
|
@ -1508,7 +1508,8 @@ color or pixmap specified by this style for <paramref name="state" />.</summary>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>Deprecated. Do not use.</summary>
|
<summary>Deprecated. Do not use.</summary>
|
||||||
<returns>a <see cref="T:Gtk.Style" /></returns>
|
<returns>a <see cref="T:Gtk.Style" /></returns>
|
||||||
<remarks></remarks>
|
<remarks>
|
||||||
|
</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
<Member MemberName="Unref">
|
<Member MemberName="Unref">
|
||||||
|
@ -1520,7 +1521,95 @@ color or pixmap specified by this style for <paramref name="state" />.</summary>
|
||||||
<Parameters />
|
<Parameters />
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>Deprecated. Do not use.</summary>
|
<summary>Deprecated. Do not use.</summary>
|
||||||
<remarks></remarks>
|
<remarks>
|
||||||
|
</remarks>
|
||||||
|
</Docs>
|
||||||
|
</Member>
|
||||||
|
<Member MemberName="LightColors">
|
||||||
|
<MemberSignature Language="C#" Value="public Gdk.Color [] LightColors { get; };" />
|
||||||
|
<MemberType>Property</MemberType>
|
||||||
|
<ReturnValue>
|
||||||
|
<ReturnType>Gdk.Color[]</ReturnType>
|
||||||
|
</ReturnValue>
|
||||||
|
<Parameters />
|
||||||
|
<Docs>
|
||||||
|
<summary>Light colors indexed by state.</summary>
|
||||||
|
<returns>a <see cref="T:Gdk.Color[]" /></returns>
|
||||||
|
<remarks />
|
||||||
|
</Docs>
|
||||||
|
</Member>
|
||||||
|
<Member MemberName="MidColors">
|
||||||
|
<MemberSignature Language="C#" Value="public Gdk.Color [] MidColors { get; };" />
|
||||||
|
<MemberType>Property</MemberType>
|
||||||
|
<ReturnValue>
|
||||||
|
<ReturnType>Gdk.Color[]</ReturnType>
|
||||||
|
</ReturnValue>
|
||||||
|
<Parameters />
|
||||||
|
<Docs>
|
||||||
|
<summary>Mid colors indexed by state.</summary>
|
||||||
|
<returns>a <see cref="T:Gdk.Color[]" /></returns>
|
||||||
|
<remarks />
|
||||||
|
</Docs>
|
||||||
|
</Member>
|
||||||
|
<Member MemberName="DarkColors">
|
||||||
|
<MemberSignature Language="C#" Value="public Gdk.Color [] DarkColors { get; };" />
|
||||||
|
<MemberType>Property</MemberType>
|
||||||
|
<ReturnValue>
|
||||||
|
<ReturnType>Gdk.Color[]</ReturnType>
|
||||||
|
</ReturnValue>
|
||||||
|
<Parameters />
|
||||||
|
<Docs>
|
||||||
|
<summary>Dark colors indexed by state.</summary>
|
||||||
|
<returns>a <see cref="T:Gdk.Color[]" /></returns>
|
||||||
|
<remarks />
|
||||||
|
</Docs>
|
||||||
|
</Member>
|
||||||
|
<Member MemberName="Light">
|
||||||
|
<MemberSignature Language="C#" Value="public Gdk.Color Light (Gtk.StateType state);" />
|
||||||
|
<MemberType>Method</MemberType>
|
||||||
|
<ReturnValue>
|
||||||
|
<ReturnType>Gdk.Color</ReturnType>
|
||||||
|
</ReturnValue>
|
||||||
|
<Parameters>
|
||||||
|
<Parameter Name="state" Type="Gtk.StateType" />
|
||||||
|
</Parameters>
|
||||||
|
<Docs>
|
||||||
|
<summary>Gets the light color for a given state.</summary>
|
||||||
|
<param name="state">a <see cref="T:System.Int32" /></param>
|
||||||
|
<returns>a <see cref="T:Gdk.Color" /></returns>
|
||||||
|
<remarks />
|
||||||
|
</Docs>
|
||||||
|
</Member>
|
||||||
|
<Member MemberName="Mid">
|
||||||
|
<MemberSignature Language="C#" Value="public Gdk.Color Mid (Gtk.StateType state);" />
|
||||||
|
<MemberType>Method</MemberType>
|
||||||
|
<ReturnValue>
|
||||||
|
<ReturnType>Gdk.Color</ReturnType>
|
||||||
|
</ReturnValue>
|
||||||
|
<Parameters>
|
||||||
|
<Parameter Name="state" Type="Gtk.StateType" />
|
||||||
|
</Parameters>
|
||||||
|
<Docs>
|
||||||
|
<summary>Gets the mid color for a given state.</summary>
|
||||||
|
<param name="state">a <see cref="T:System.Int32" /></param>
|
||||||
|
<returns>a <see cref="T:Gdk.Color" /></returns>
|
||||||
|
<remarks />
|
||||||
|
</Docs>
|
||||||
|
</Member>
|
||||||
|
<Member MemberName="Dark">
|
||||||
|
<MemberSignature Language="C#" Value="public Gdk.Color Dark (Gtk.StateType state);" />
|
||||||
|
<MemberType>Method</MemberType>
|
||||||
|
<ReturnValue>
|
||||||
|
<ReturnType>Gdk.Color</ReturnType>
|
||||||
|
</ReturnValue>
|
||||||
|
<Parameters>
|
||||||
|
<Parameter Name="state" Type="Gtk.StateType" />
|
||||||
|
</Parameters>
|
||||||
|
<Docs>
|
||||||
|
<summary>Gets the dark color for a given state.</summary>
|
||||||
|
<param name="state">a <see cref="T:System.Int32" /></param>
|
||||||
|
<returns>a <see cref="T:Gdk.Color" /></returns>
|
||||||
|
<remarks />
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
</Members>
|
</Members>
|
||||||
|
|
|
@ -299,6 +299,66 @@ public Gdk.Color[] BaseColors {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue-2")]
|
||||||
|
static extern IntPtr gtksharp_gtk_style_get_light (IntPtr style, int i);
|
||||||
|
|
||||||
|
public Gdk.Color Light (StateType state)
|
||||||
|
{
|
||||||
|
IntPtr raw = gtksharp_gtk_style_get_light (Handle, (int) state);
|
||||||
|
return Gdk.Color.New (raw);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Gdk.Color[] LightColors {
|
||||||
|
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_light (Handle, i));
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue-2")]
|
||||||
|
static extern IntPtr gtksharp_gtk_style_get_mid (IntPtr style, int i);
|
||||||
|
|
||||||
|
public Gdk.Color Mid (StateType state)
|
||||||
|
{
|
||||||
|
IntPtr raw = gtksharp_gtk_style_get_mid (Handle, (int) state);
|
||||||
|
return Gdk.Color.New (raw);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Gdk.Color[] MidColors {
|
||||||
|
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_mid (Handle, i));
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue-2")]
|
||||||
|
static extern IntPtr gtksharp_gtk_style_get_dark (IntPtr style, int i);
|
||||||
|
|
||||||
|
public Gdk.Color Dark (StateType state)
|
||||||
|
{
|
||||||
|
IntPtr raw = gtksharp_gtk_style_get_dark (Handle, (int) state);
|
||||||
|
return Gdk.Color.New (raw);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Gdk.Color[] DarkColors {
|
||||||
|
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_dark (Handle, i));
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[DllImport ("gtksharpglue-2")]
|
[DllImport ("gtksharpglue-2")]
|
||||||
static extern int gtksharp_gtk_style_get_thickness (IntPtr style, int x_axis);
|
static extern int gtksharp_gtk_style_get_thickness (IntPtr style, int x_axis);
|
||||||
[DllImport ("gtksharpglue-2")]
|
[DllImport ("gtksharpglue-2")]
|
||||||
|
|
|
@ -67,8 +67,12 @@ 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_bg (GtkStyle *style, int i);
|
||||||
|
|
||||||
|
GdkColor *gtksharp_gtk_style_get_light (GtkStyle *style, int i);
|
||||||
|
|
||||||
GdkColor *gtksharp_gtk_style_get_mid (GtkStyle *style, int i);
|
GdkColor *gtksharp_gtk_style_get_mid (GtkStyle *style, int i);
|
||||||
|
|
||||||
|
GdkColor *gtksharp_gtk_style_get_dark (GtkStyle *style, int i);
|
||||||
|
|
||||||
GdkColor *gtksharp_gtk_style_get_text (GtkStyle *style, int i);
|
GdkColor *gtksharp_gtk_style_get_text (GtkStyle *style, int i);
|
||||||
|
|
||||||
GdkColor *gtksharp_gtk_style_get_base (GtkStyle *style, int i);
|
GdkColor *gtksharp_gtk_style_get_base (GtkStyle *style, int i);
|
||||||
|
@ -225,12 +229,24 @@ gtksharp_gtk_style_get_bg (GtkStyle *style, int i)
|
||||||
return &style->bg[i];
|
return &style->bg[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GdkColor*
|
||||||
|
gtksharp_gtk_style_get_light (GtkStyle *style, int i)
|
||||||
|
{
|
||||||
|
return &style->light[i];
|
||||||
|
}
|
||||||
|
|
||||||
GdkColor*
|
GdkColor*
|
||||||
gtksharp_gtk_style_get_mid (GtkStyle *style, int i)
|
gtksharp_gtk_style_get_mid (GtkStyle *style, int i)
|
||||||
{
|
{
|
||||||
return &style->mid[i];
|
return &style->mid[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GdkColor*
|
||||||
|
gtksharp_gtk_style_get_dark (GtkStyle *style, int i)
|
||||||
|
{
|
||||||
|
return &style->dark[i];
|
||||||
|
}
|
||||||
|
|
||||||
GdkColor*
|
GdkColor*
|
||||||
gtksharp_gtk_style_get_text (GtkStyle *style, int i)
|
gtksharp_gtk_style_get_text (GtkStyle *style, int i)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue