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.
|
||||||
|
|
|
@ -584,7 +584,7 @@ color or pixmap specified by this style for <paramref name="state" />.</summary>
|
||||||
<Parameter Name="height" Type="System.Int32" />
|
<Parameter Name="height" Type="System.Int32" />
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary> Draws a resize grip in the given rectangle on <paramref name="window"/> using the given parameters. </summary>
|
<summary> Draws a resize grip in the given rectangle on <paramref name="window" /> using the given parameters. </summary>
|
||||||
<param name="style">a <see cref="T:Gtk.Style" /></param>
|
<param name="style">a <see cref="T:Gtk.Style" /></param>
|
||||||
<param name="window">a <see cref="T:Gdk.Window" /></param>
|
<param name="window">a <see cref="T:Gdk.Window" /></param>
|
||||||
<param name="state_type">a <see cref="T:Gtk.StateType" /></param>
|
<param name="state_type">a <see cref="T:Gtk.StateType" /></param>
|
||||||
|
@ -652,7 +652,7 @@ color or pixmap specified by this style for <paramref name="state" />.</summary>
|
||||||
<Parameter Name="height" Type="System.Int32" />
|
<Parameter Name="height" Type="System.Int32" />
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>Draws a radio button indicator in the given rectangle on <paramref name="window"/> with the given parameters.
|
<summary>Draws a radio button indicator in the given rectangle on <paramref name="window" /> with the given parameters.
|
||||||
</summary>
|
</summary>
|
||||||
<param name="style">a <see cref="T:Gtk.Style" /></param>
|
<param name="style">a <see cref="T:Gtk.Style" /></param>
|
||||||
<param name="window">a <see cref="T:Gdk.Window" /></param>
|
<param name="window">a <see cref="T:Gdk.Window" /></param>
|
||||||
|
@ -826,7 +826,7 @@ color or pixmap specified by this style for <paramref name="state" />.</summary>
|
||||||
<Parameter Name="height" Type="System.Int32" />
|
<Parameter Name="height" Type="System.Int32" />
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>Draws an option menu tab (i.e. the up and down pointing arrows) in the given rectangle on <paramref name="window"/> using the given parameters.
|
<summary>Draws an option menu tab (i.e. the up and down pointing arrows) in the given rectangle on <paramref name="window" /> using the given parameters.
|
||||||
</summary>
|
</summary>
|
||||||
<param name="style">a <see cref="T:Gtk.Style" /></param>
|
<param name="style">a <see cref="T:Gtk.Style" /></param>
|
||||||
<param name="window">a <see cref="T:Gdk.Window" /></param>
|
<param name="window">a <see cref="T:Gdk.Window" /></param>
|
||||||
|
@ -1428,9 +1428,9 @@ color or pixmap specified by this style for <paramref name="state" />.</summary>
|
||||||
<summary>Deprecated.</summary>
|
<summary>Deprecated.</summary>
|
||||||
<returns>a <see cref="T:Gdk.Font" /></returns>
|
<returns>a <see cref="T:Gdk.Font" /></returns>
|
||||||
<remarks>
|
<remarks>
|
||||||
The <see cref="T:Gdk.Font"/> to use for a given style. This
|
The <see cref="T:Gdk.Font" /> to use for a given style. This
|
||||||
is deprecated and should not be used in new code. New code
|
is deprecated and should not be used in new code. New code
|
||||||
should use <see cref="P:Gtk.Style.FontDescription"/>
|
should use <see cref="P:Gtk.Style.FontDescription" />
|
||||||
instead.
|
instead.
|
||||||
</remarks>
|
</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
|
@ -1449,8 +1449,8 @@ color or pixmap specified by this style for <paramref name="state" />.</summary>
|
||||||
</summary>
|
</summary>
|
||||||
<remarks>
|
<remarks>
|
||||||
A connection to this signal can be useful if a widget wants
|
A connection to this signal can be useful if a widget wants
|
||||||
to cache objects like a <see cref="T:Gdk.GC"/> as object
|
to cache objects like a <see cref="T:Gdk.GC" /> as object
|
||||||
data on <see cref="T:Gtk.Style"/>. This signal provides a
|
data on <see cref="T:Gtk.Style" />. This signal provides a
|
||||||
convenient place to free such cached objects.
|
convenient place to free such cached objects.
|
||||||
</remarks>
|
</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
|
@ -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