mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 16:05:34 +00:00
622c360576
a constructor or a ref, unref, or destroy method, then it must be a reference type, so mark it "opaque" but then also mark all of its fields public and writable. * */*-api*.raw: Regen * generator/Parser.cs (ParseNamespace): make the opaque attribute check actually look at the value of the attribute rather than just checking if it's there, so that you can change a struct's opaque attribute from "true" to "false" via metadata and have that work. * generator/BoxedGen.cs (Generate): do not generate the boxed's "Free" method (since it's guaranteed to crash when we pass it a stack pointer). If "Copy" is marked deprecated, create a deprecated no-op for it, otherwise just skip it (since otherwise it will just leak memory when we copy its result onto the stack). * pango/Pango.metadata: deprecate Pango.Color.Copy and Pango.Matrix.Copy. Hide some array fields in Pango.GlyphString that we've never generated correctly. Tweak Pango.LayoutLine fields to be the same as they used to be. * pango/GlyphItem.custom (glyphs, item): * pango/GlyphString.custom (Zero, New): * pango/Item.custom (Zero, New): * pango/LayoutRun.custom (glyphs, item): add deprecated API compat * gdk/Gdk.metadata: undo the parser's new opaquification of Gdk.Font; it's been deprecated since pre-gtk# times, and no one should be using it, so there's no point in fixing it now. Fix up a few other things to match how they used to be. Fix RgbCmap's constructor args. * gdk/RgbCmap.custom (Zero, New): deprecated API compat * gdk/PangoAttrEmbossed.custom: * gdk/PangoAttrStipple.custom (Zero, New, Attr): deprecated API compat (explicit operator ...): allow casting back and forth between Pango.Attribute. (We can't usefully make them real subclasses of Pango.Attribute, because there's no way for Pango.Attribute.GetAttribute() to be able to dtrt with them.) * gtk/Gtk.metadata: deprecate Gtk.Requisition.Copy, Gtk.TextIter.Copy, and Gtk.TreeIter.Copy. Mark the return value of TextView.DefaultAttributes as "owned". Mark TargetList's fields private so it stays how it used to be. * gtk/TextAttributes.custom (Zero, New): deprecated API compat * gnomevfs/Gnomevfs.metadata: remove a bunch of opaque declarations that the parser figures out on its own now. * art/Art.metadata: * glade/Glade.metadata: * rsvg/Rsvg.metadata: un-mark everything the parser marked opaque in these libraries, because all of the structs in question would still be unusably broken, so the API churn would be pointless. svn path=/trunk/gtk-sharp/; revision=48387
369 lines
16 KiB
Plaintext
369 lines
16 KiB
Plaintext
<?xml version="1.0"?>
|
|
<api>
|
|
<!--
|
|
|
|
This file was automatically generated.
|
|
Please DO NOT MODIFY THIS FILE, modify .metadata files instead.
|
|
|
|
-->
|
|
<namespace name="Glade" library="libglade-2.0-0.dll">
|
|
<callback name="ApplyCustomPropFunc" cname="GladeApplyCustomPropFunc">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="GladeXML*" name="xml" />
|
|
<parameter type="GtkWidget*" name="widget" />
|
|
<parameter type="const-gchar*" name="propname" />
|
|
<parameter type="const-gchar*" name="value" />
|
|
</parameters>
|
|
</callback>
|
|
<callback name="BuildChildrenFunc" cname="GladeBuildChildrenFunc">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="GladeXML*" name="xml" />
|
|
<parameter type="GtkWidget*" name="parent" />
|
|
<parameter type="GladeWidgetInfo*" name="info" />
|
|
</parameters>
|
|
</callback>
|
|
<callback name="FindInternalChildFunc" cname="GladeFindInternalChildFunc">
|
|
<return-type type="GtkWidget*" />
|
|
<parameters>
|
|
<parameter type="GladeXML*" name="xml" />
|
|
<parameter type="GtkWidget*" name="parent" />
|
|
<parameter type="const-gchar*" name="childname" />
|
|
</parameters>
|
|
</callback>
|
|
<callback name="NewFunc" cname="GladeNewFunc">
|
|
<return-type type="GtkWidget*" />
|
|
<parameters>
|
|
<parameter type="GladeXML*" name="xml" />
|
|
<parameter type="GType" name="widget_type" />
|
|
<parameter type="GladeWidgetInfo*" name="info" />
|
|
</parameters>
|
|
</callback>
|
|
<callback name="XMLConnectFunc" cname="GladeXMLConnectFunc">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="const-gchar*" name="handler_name" />
|
|
<parameter type="GObject*" name="object" />
|
|
<parameter type="const-gchar*" name="signal_name" />
|
|
<parameter type="const-gchar*" name="signal_data" />
|
|
<parameter type="GObject*" name="connect_object" />
|
|
<parameter type="gboolean" name="after" />
|
|
<parameter type="gpointer" name="user_data" />
|
|
</parameters>
|
|
</callback>
|
|
<callback name="XMLCustomWidgetHandler" cname="GladeXMLCustomWidgetHandler">
|
|
<return-type type="GtkWidget*" />
|
|
<parameters>
|
|
<parameter type="GladeXML*" name="xml" />
|
|
<parameter type="gchar*" name="func_name" />
|
|
<parameter type="gchar*" name="name" />
|
|
<parameter type="gchar*" name="string1" />
|
|
<parameter type="gchar*" name="string2" />
|
|
<parameter type="gint" name="int1" />
|
|
<parameter type="gint" name="int2" />
|
|
<parameter type="gpointer" name="user_data" />
|
|
</parameters>
|
|
</callback>
|
|
<object name="XML" cname="GladeXML" parent="GObject">
|
|
<field name="Filename" cname="filename" type="char*" />
|
|
<field name="Priv" cname="priv" type="GladeXMLPrivate*" />
|
|
<virtual_method name="LookupType" cname="lookup_type">
|
|
<return-type type="GType" />
|
|
<parameters>
|
|
<parameter type="GladeXML*self" name="arg1" />
|
|
<parameter type="const-char*" name="gtypename" />
|
|
</parameters>
|
|
</virtual_method>
|
|
<method name="BuildWidget" cname="glade_xml_build_widget">
|
|
<return-type type="GtkWidget*" />
|
|
<parameters>
|
|
<parameter type="GladeWidgetInfo*" name="info" />
|
|
</parameters>
|
|
</method>
|
|
<method name="Construct" cname="glade_xml_construct">
|
|
<return-type type="gboolean" />
|
|
<parameters>
|
|
<parameter type="const-char*" name="fname" />
|
|
<parameter type="const-char*" name="root" />
|
|
<parameter type="const-char*" name="domain" />
|
|
</parameters>
|
|
</method>
|
|
<method name="EnsureAccel" cname="glade_xml_ensure_accel">
|
|
<return-type type="GtkAccelGroup*" />
|
|
</method>
|
|
<method name="GetType" cname="glade_xml_get_type" shared="true">
|
|
<return-type type="GType" />
|
|
</method>
|
|
<method name="GetWidget" cname="glade_xml_get_widget">
|
|
<return-type type="GtkWidget*" />
|
|
<parameters>
|
|
<parameter type="const-char*" name="name" />
|
|
</parameters>
|
|
</method>
|
|
<method name="GetWidgetPrefix" cname="glade_xml_get_widget_prefix">
|
|
<return-type type="GList*" />
|
|
<parameters>
|
|
<parameter type="const-char*" name="name" />
|
|
</parameters>
|
|
</method>
|
|
<method name="HandleInternalChild" cname="glade_xml_handle_internal_child">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="GtkWidget*" name="parent" />
|
|
<parameter type="GladeChildInfo*" name="child_info" />
|
|
</parameters>
|
|
</method>
|
|
<method name="HandleWidgetProp" cname="glade_xml_handle_widget_prop">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="GtkWidget*" name="widget" />
|
|
<parameter type="const-gchar*" name="prop_name" />
|
|
<parameter type="const-gchar*" name="value_name" />
|
|
</parameters>
|
|
</method>
|
|
<constructor cname="glade_xml_new">
|
|
<parameters>
|
|
<parameter type="const-char*" name="fname" />
|
|
<parameter type="const-char*" name="root" />
|
|
<parameter type="const-char*" name="domain" />
|
|
</parameters>
|
|
</constructor>
|
|
<constructor cname="glade_xml_new_from_buffer">
|
|
<parameters>
|
|
<parameter type="const-char*" name="buffer" />
|
|
<parameter type="int" name="size" />
|
|
<parameter type="const-char*" name="root" />
|
|
<parameter type="const-char*" name="domain" />
|
|
</parameters>
|
|
</constructor>
|
|
<method name="RelativeFile" cname="glade_xml_relative_file">
|
|
<return-type type="gchar*" />
|
|
<parameters>
|
|
<parameter type="const-gchar*" name="filename" />
|
|
</parameters>
|
|
</method>
|
|
<method name="SetCommonParams" cname="glade_xml_set_common_params">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="GtkWidget*" name="widget" />
|
|
<parameter type="GladeWidgetInfo*" name="info" />
|
|
</parameters>
|
|
</method>
|
|
<method name="SetPackingProperty" cname="glade_xml_set_packing_property">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="GtkWidget*" name="parent" />
|
|
<parameter type="GtkWidget*" name="child" />
|
|
<parameter type="const-char*" name="name" />
|
|
<parameter type="const-char*" name="value" />
|
|
</parameters>
|
|
</method>
|
|
<method name="SetToplevel" cname="glade_xml_set_toplevel">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="GtkWindow*" name="window" />
|
|
</parameters>
|
|
</method>
|
|
<method name="SetValueFromString" cname="glade_xml_set_value_from_string">
|
|
<return-type type="gboolean" />
|
|
<parameters>
|
|
<parameter type="GParamSpec*" name="pspec" />
|
|
<parameter type="const-gchar*" name="string" />
|
|
<parameter type="GValue*" name="value" />
|
|
</parameters>
|
|
</method>
|
|
<method name="SignalAutoconnect" cname="glade_xml_signal_autoconnect">
|
|
<return-type type="void" />
|
|
</method>
|
|
<method name="SignalAutoconnectFull" cname="glade_xml_signal_autoconnect_full">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="GladeXMLConnectFunc" name="func" />
|
|
<parameter type="gpointer" name="user_data" />
|
|
</parameters>
|
|
</method>
|
|
<method name="SignalConnect" cname="glade_xml_signal_connect">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="const-char*" name="handlername" />
|
|
<parameter type="GCallback" name="func" />
|
|
</parameters>
|
|
</method>
|
|
<method name="SignalConnectData" cname="glade_xml_signal_connect_data">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="const-char*" name="handlername" />
|
|
<parameter type="GCallback" name="func" />
|
|
<parameter type="gpointer" name="user_data" />
|
|
</parameters>
|
|
</method>
|
|
<method name="SignalConnectFull" cname="glade_xml_signal_connect_full">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="const-gchar*" name="handler_name" />
|
|
<parameter type="GladeXMLConnectFunc" name="func" />
|
|
<parameter type="gpointer" name="user_data" />
|
|
</parameters>
|
|
</method>
|
|
</object>
|
|
<struct name="AccelInfo" cname="GladeAccelInfo">
|
|
<field name="Key" cname="key" type="guint" />
|
|
<field name="Modifiers" cname="modifiers" type="GdkModifierType" />
|
|
<field name="Signal" cname="signal" type="gchar*" />
|
|
</struct>
|
|
<struct name="AtkActionInfo" cname="GladeAtkActionInfo">
|
|
<field name="ActionName" cname="action_name" type="gchar*" />
|
|
<field name="Description" cname="description" type="gchar*" />
|
|
</struct>
|
|
<struct name="AtkRelationInfo" cname="GladeAtkRelationInfo">
|
|
<field name="Target" cname="target" type="gchar*" />
|
|
<field name="Type" cname="type" type="gchar*" />
|
|
</struct>
|
|
<struct name="ChildInfo" cname="GladeChildInfo">
|
|
<field name="Properties" cname="properties" type="GladeProperty*" />
|
|
<field name="NProperties" cname="n_properties" type="guint" />
|
|
<field name="Child" cname="child" type="GladeWidgetInfo*" />
|
|
<field name="InternalChild" cname="internal_child" type="gchar*" />
|
|
</struct>
|
|
<struct name="Interface" cname="GladeInterface" opaque="true">
|
|
<field name="Requires" cname="requires" type="gchar**" access="public" writeable="true" />
|
|
<field name="NRequires" cname="n_requires" type="guint" access="public" writeable="true" />
|
|
<field name="Toplevels" cname="toplevels" type="GladeWidgetInfo**" access="public" writeable="true" />
|
|
<field name="NToplevels" cname="n_toplevels" type="guint" access="public" writeable="true" />
|
|
<field name="Names" cname="names" type="GHashTable*" access="public" writeable="true" />
|
|
<field name="Strings" cname="strings" type="GHashTable*" access="public" writeable="true" />
|
|
<method name="Destroy" cname="glade_interface_destroy">
|
|
<return-type type="void" />
|
|
</method>
|
|
<method name="Dump" cname="glade_interface_dump">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="const-gchar*" name="filename" />
|
|
</parameters>
|
|
</method>
|
|
</struct>
|
|
<struct name="Property" cname="GladeProperty">
|
|
<field name="Name" cname="name" type="gchar*" />
|
|
<field name="Value" cname="value" type="gchar*" />
|
|
</struct>
|
|
<struct name="SignalInfo" cname="GladeSignalInfo">
|
|
<field name="Name" cname="name" type="gchar*" />
|
|
<field name="Handler" cname="handler" type="gchar*" />
|
|
<field name="Object" cname="object" type="gchar*" />
|
|
<field name="After" cname="after" bits="1" type="guint" />
|
|
</struct>
|
|
<struct name="WidgetInfo" cname="GladeWidgetInfo">
|
|
<field name="Parent" cname="parent" type="GladeWidgetInfo*" />
|
|
<field name="Classname" cname="classname" type="gchar*" />
|
|
<field name="Name" cname="name" type="gchar*" />
|
|
<field name="Properties" cname="properties" type="GladeProperty*" />
|
|
<field name="NProperties" cname="n_properties" type="guint" />
|
|
<field name="AtkProps" cname="atk_props" type="GladeProperty*" />
|
|
<field name="NAtkProps" cname="n_atk_props" type="guint" />
|
|
<field name="Signals" cname="signals" type="GladeSignalInfo*" />
|
|
<field name="NSignals" cname="n_signals" type="guint" />
|
|
<field name="AtkActions" cname="atk_actions" type="GladeAtkActionInfo*" />
|
|
<field name="NAtkActions" cname="n_atk_actions" type="guint" />
|
|
<field name="Relations" cname="relations" type="GladeAtkRelationInfo*" />
|
|
<field name="NRelations" cname="n_relations" type="guint" />
|
|
<field name="Accels" cname="accels" type="GladeAccelInfo*" />
|
|
<field name="NAccels" cname="n_accels" type="guint" />
|
|
<field name="Children" cname="children" type="GladeChildInfo*" />
|
|
<field name="NChildren" cname="n_children" type="guint" />
|
|
</struct>
|
|
<class name="Global" cname="GladeGlobal">
|
|
<method name="EnumFromString" cname="glade_enum_from_string" shared="true">
|
|
<return-type type="gint" />
|
|
<parameters>
|
|
<parameter type="GType" name="type" />
|
|
<parameter type="const-char*" name="string" />
|
|
</parameters>
|
|
</method>
|
|
<method name="FlagsFromString" cname="glade_flags_from_string" shared="true">
|
|
<return-type type="guint" />
|
|
<parameters>
|
|
<parameter type="GType" name="type" />
|
|
<parameter type="const-char*" name="string" />
|
|
</parameters>
|
|
</method>
|
|
<method name="GetWidgetName" cname="glade_get_widget_name" shared="true">
|
|
<return-type type="const-char*" />
|
|
<parameters>
|
|
<parameter type="GtkWidget*" name="widget" />
|
|
</parameters>
|
|
</method>
|
|
<method name="GetWidgetTree" cname="glade_get_widget_tree" shared="true">
|
|
<return-type type="GladeXML*" />
|
|
<parameters>
|
|
<parameter type="GtkWidget*" name="widget" />
|
|
</parameters>
|
|
</method>
|
|
<method name="ModuleCheckVersion" cname="glade_module_check_version" shared="true">
|
|
<return-type type="gchar*" />
|
|
<parameters>
|
|
<parameter type="gint" name="version" />
|
|
</parameters>
|
|
</method>
|
|
<method name="RegisterCustomProp" cname="glade_register_custom_prop" shared="true">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="GType" name="type" />
|
|
<parameter type="const-gchar*" name="prop_name" />
|
|
<parameter type="GladeApplyCustomPropFunc" name="apply_prop" />
|
|
</parameters>
|
|
</method>
|
|
<method name="RegisterWidget" cname="glade_register_widget" shared="true">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="GType" name="type" />
|
|
<parameter type="GladeNewFunc" name="new_func" />
|
|
<parameter type="GladeBuildChildrenFunc" name="build_children" />
|
|
<parameter type="GladeFindInternalChildFunc" name="find_internal_child" />
|
|
</parameters>
|
|
</method>
|
|
<method name="SetCustomHandler" cname="glade_set_custom_handler" shared="true">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="GladeXMLCustomWidgetHandler" name="handler" />
|
|
<parameter type="gpointer" name="user_data" />
|
|
</parameters>
|
|
</method>
|
|
</class>
|
|
<class name="Parser" cname="GladeParser_">
|
|
<method name="ParseBuffer" cname="glade_parser_parse_buffer" shared="true">
|
|
<return-type type="GladeInterface*" />
|
|
<parameters>
|
|
<parameter type="const-gchar*" name="buffer" />
|
|
<parameter type="gint" name="len" />
|
|
<parameter type="const-gchar*" name="domain" />
|
|
</parameters>
|
|
</method>
|
|
<method name="ParseFile" cname="glade_parser_parse_file" shared="true">
|
|
<return-type type="GladeInterface*" />
|
|
<parameters>
|
|
<parameter type="const-gchar*" name="file" />
|
|
<parameter type="const-gchar*" name="domain" />
|
|
</parameters>
|
|
</method>
|
|
</class>
|
|
<class name="Standard" cname="GladeStandard_">
|
|
<method name="BuildChildren" cname="glade_standard_build_children" shared="true">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="GladeXML*" name="self" />
|
|
<parameter type="GtkWidget*" name="parent" />
|
|
<parameter type="GladeWidgetInfo*" name="info" />
|
|
</parameters>
|
|
</method>
|
|
<method name="BuildWidget" cname="glade_standard_build_widget" shared="true">
|
|
<return-type type="GtkWidget*" />
|
|
<parameters>
|
|
<parameter type="GladeXML*" name="xml" />
|
|
<parameter type="GType" name="widget_type" />
|
|
<parameter type="GladeWidgetInfo*" name="info" />
|
|
</parameters>
|
|
</method>
|
|
</class>
|
|
</namespace>
|
|
</api> |