mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-06-20 18:27:57 +00:00
Hide the Copy, Free and Hash methods in Gdk.Color and override GetHashCode().
svn path=/trunk/gtk-sharp/; revision=13606
This commit is contained in:
parent
9d3c4431c7
commit
90fac8a1ad
|
@ -4,6 +4,9 @@
|
||||||
Fix up API in ColorSelection - Palette{From,To}String now work, and
|
Fix up API in ColorSelection - Palette{From,To}String now work, and
|
||||||
PreviousColor is now a C# property.
|
PreviousColor is now a C# property.
|
||||||
|
|
||||||
|
* api/gdk-api.xml, sources/Gdk.metadata, gdk/Color.custom: Hide the
|
||||||
|
Copy, Free and Hash methods in Gdk.Color and override GetHashCode().
|
||||||
|
|
||||||
2003-04-12 Alp Toker <alp@atoker.com>
|
2003-04-12 Alp Toker <alp@atoker.com>
|
||||||
|
|
||||||
* parser/gen_keysyms: Generates a C# Key enum from the Gdk headers
|
* parser/gen_keysyms: Generates a C# Key enum from the Gdk headers
|
||||||
|
|
|
@ -1809,7 +1809,7 @@
|
||||||
<field cname="red" type="guint16"/>
|
<field cname="red" type="guint16"/>
|
||||||
<field cname="green" type="guint16"/>
|
<field cname="green" type="guint16"/>
|
||||||
<field cname="blue" type="guint16"/>
|
<field cname="blue" type="guint16"/>
|
||||||
<method name="Copy" cname="gdk_color_copy">
|
<method name="Copy" cname="gdk_color_copy" hidden="1">
|
||||||
<return-type type="GdkColor*"/>
|
<return-type type="GdkColor*"/>
|
||||||
</method>
|
</method>
|
||||||
<method name="Equal" cname="gdk_color_equal">
|
<method name="Equal" cname="gdk_color_equal">
|
||||||
|
@ -1818,13 +1818,13 @@
|
||||||
<parameter type="const-GdkColor*" name="colorb"/>
|
<parameter type="const-GdkColor*" name="colorb"/>
|
||||||
</parameters>
|
</parameters>
|
||||||
</method>
|
</method>
|
||||||
<method name="Free" cname="gdk_color_free">
|
<method name="Free" cname="gdk_color_free" hidden="1">
|
||||||
<return-type type="void"/>
|
<return-type type="void"/>
|
||||||
</method>
|
</method>
|
||||||
<method name="GetType" cname="gdk_color_get_type" shared="true">
|
<method name="GetType" cname="gdk_color_get_type" shared="true">
|
||||||
<return-type type="GType"/>
|
<return-type type="GType"/>
|
||||||
</method>
|
</method>
|
||||||
<method name="Hash" cname="gdk_color_hash">
|
<method name="Hash" cname="gdk_color_hash" hidden="1">
|
||||||
<return-type type="guint"/>
|
<return-type type="guint"/>
|
||||||
</method>
|
</method>
|
||||||
<method name="Parse" cname="gdk_color_parse" shared="true">
|
<method name="Parse" cname="gdk_color_parse" shared="true">
|
||||||
|
|
|
@ -33,3 +33,11 @@ public Color (System.Drawing.Color color)
|
||||||
blue = (ushort) (b << 8 | b);
|
blue = (ushort) (b << 8 | b);
|
||||||
pixel = 0;
|
pixel = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[DllImport("libgdk-win32-2.0-0.dll")]
|
||||||
|
static extern uint gdk_color_hash(ref Gdk.Color raw);
|
||||||
|
|
||||||
|
public override int GetHashCode() {
|
||||||
|
return (int) gdk_color_hash(ref this);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -183,6 +183,19 @@
|
||||||
</attribute>
|
</attribute>
|
||||||
</data>
|
</data>
|
||||||
</rule>
|
</rule>
|
||||||
|
<rule>
|
||||||
|
<class name="GdkColor">
|
||||||
|
<method>Hash</method>
|
||||||
|
<method>Copy</method>
|
||||||
|
<method>Free</method>
|
||||||
|
</class>
|
||||||
|
<data>
|
||||||
|
<attribute target="method">
|
||||||
|
<name>hidden</name>
|
||||||
|
<value>1</value>
|
||||||
|
</attribute>
|
||||||
|
</data>
|
||||||
|
</rule>
|
||||||
<rule>
|
<rule>
|
||||||
<class name="GdkPixbuf">
|
<class name="GdkPixbuf">
|
||||||
<method>AddAlpha</method>
|
<method>AddAlpha</method>
|
||||||
|
|
Loading…
Reference in a new issue