2002-08-19 Rachel Hestilow <hestilow@ximian.com>

* art/Makefile.in (clean): Change to avoid bugging out on generated/CVS.

	* glib/ObjectManager.cs: Added. Used to be auto-generated, but
	now it can infer names, and relies on per-namespace ObjectManager
	classes to inform it of oddly-named classes.

	* generator/IGeneratable.cs, GenBase.cs: New "DoGenerate" property.
	* generator/*Gen.cs: Honor DoGenerate.
	* generator/CodeGenerator.cs: Support including dependency files
	which will not be generated.
	* generator/ObjectGen.cs: Generate mapping file per-namespace, as one
	that calls back to the one in glib. Only generate if the name does
	not follow the normal conventions, otherwise, GtkSharp.ObjectManager
	can infer the name.
	* generator/Parser.cs: Accept 'generate' flag to pass on to the
	IGeneratables. Parse a new toplevel element, "symbol", which adds
	a type to the SymbolTable (instead of hard-coding it).
	* generator/SignalHandler.cs: Do not optimize signal handler creation,
   instead creating them in their own namespaces. Do not generate
	if the calling Signal told us not to.
	* generator/Signal.cs: Do not generate handlers if container's DoGenerate
	is false. Adjust to the marshaller name being in a sub-namespace.
	* generator/SymbolTable.cs (AddSimpleType, AddManualType): Used
	to add simple and manually wrapped types at runtime instead of
	compile-time.
	(FromNative): Remove hard-coded cases for manually wrapped types, use
	a generic case instead.

	* api: Added. Move api files and generation targets here.
	* source: Added. Move source parsing here.

	* generator/makefile: Move actual generation to api/.
	* glib/Makefile.in: Remove generated/* target.
	* glue/Makefile.am: Fix to include canvas-marshal. Move canvas stuff
	to GNOME target.

	* gnome/CanvasProxy.cs: Update to work with SignalHandlers being
	namespace-specific.

	* parser/Metadata.pm: Moved to GAPI/Metadata.pm, renamed, etc.
	* parser/gapi2xml.pl: Use GAPI::Metadata.
	* parser/makefile: Install scripts, remove source parse build target.
	Rename formatXML to gapi_format_xml.

svn path=/trunk/gtk-sharp/; revision=6818
This commit is contained in:
Rachel Hestilow 2002-08-20 19:56:18 +00:00
parent eb6f4934d7
commit e9d1e0b6dc
40 changed files with 8169 additions and 23095 deletions

View file

@ -1,3 +1,49 @@
2002-08-19 Rachel Hestilow <hestilow@ximian.com>
* art/Makefile.in (clean): Change to avoid bugging out on generated/CVS.
* glib/ObjectManager.cs: Added. Used to be auto-generated, but
now it can infer names, and relies on per-namespace ObjectManager
classes to inform it of oddly-named classes.
* generator/IGeneratable.cs, GenBase.cs: New "DoGenerate" property.
* generator/*Gen.cs: Honor DoGenerate.
* generator/CodeGenerator.cs: Support including dependency files
which will not be generated.
* generator/ObjectGen.cs: Generate mapping file per-namespace, as one
that calls back to the one in glib. Only generate if the name does
not follow the normal conventions, otherwise, GtkSharp.ObjectManager
can infer the name.
* generator/Parser.cs: Accept 'generate' flag to pass on to the
IGeneratables. Parse a new toplevel element, "symbol", which adds
a type to the SymbolTable (instead of hard-coding it).
* generator/SignalHandler.cs: Do not optimize signal handler creation,
instead creating them in their own namespaces. Do not generate
if the calling Signal told us not to.
* generator/Signal.cs: Do not generate handlers if container's DoGenerate
is false. Adjust to the marshaller name being in a sub-namespace.
* generator/SymbolTable.cs (AddSimpleType, AddManualType): Used
to add simple and manually wrapped types at runtime instead of
compile-time.
(FromNative): Remove hard-coded cases for manually wrapped types, use
a generic case instead.
* api: Added. Move api files and generation targets here.
* source: Added. Move source parsing here.
* generator/makefile: Move actual generation to api/.
* glib/Makefile.in: Remove generated/* target.
* glue/Makefile.am: Fix to include canvas-marshal. Move canvas stuff
to GNOME target.
* gnome/CanvasProxy.cs: Update to work with SignalHandlers being
namespace-specific.
* parser/Metadata.pm: Moved to GAPI/Metadata.pm, renamed, etc.
* parser/gapi2xml.pl: Use GAPI::Metadata.
* parser/makefile: Install scripts, remove source parse build target.
Rename formatXML to gapi_format_xml.
2002-08-17 Miguel de Icaza <miguel@ximian.com>
* gtk/ThreadNotify.cs: New file, used to notify invoke code in the

747
api/art-api.xml Normal file
View file

@ -0,0 +1,747 @@
<?xml version="1.0" encoding="UTF-8"?>
<api>
<namespace name="Art" library="art_lgpl">
<enum name="AlphaType" cname="ArtAlphaType" type="enum">
<member cname="ART_ALPHA_NONE" name="None"/>
<member cname="ART_ALPHA_SEPARATE" name="Separate" value="1"/>
<member cname="ART_ALPHA_PREMUL" name="Premul" value="2"/>
</enum>
<enum name="CompositingMode" cname="ArtCompositingMode" type="enum">
<member cname="ART_COMPOSITE_NORMAL" name="Normal"/>
<member cname="ART_COMPOSITE_MULTIPLY" name="Multiply"/>
<member cname="ART_COMPOSITE_CUSTOM" name="Custom"/>
</enum>
<enum name="FilterLevel" cname="ArtFilterLevel" type="enum">
<member cname="ART_FILTER_NEAREST" name="Nearest"/>
<member cname="ART_FILTER_TILES" name="Tiles"/>
<member cname="ART_FILTER_BILINEAR" name="Bilinear"/>
<member cname="ART_FILTER_HYPER" name="Hyper"/>
</enum>
<enum name="GradientSpread" cname="ArtGradientSpread" type="enum">
<member cname="ART_GRADIENT_PAD" name="Pad"/>
<member cname="ART_GRADIENT_REFLECT" name="Reflect"/>
<member cname="ART_GRADIENT_REPEAT" name="Repeat"/>
</enum>
<enum name="ImageSourceFlags" cname="ArtImageSourceFlags" type="enum">
<member cname="ART_IMAGE_SOURCE_CAN_CLEAR" name="Clear" value="1"/>
<member cname="ART_IMAGE_SOURCE_CAN_COMPOSITE" name="Composite" value="2"/>
</enum>
<enum name="PathStrokeCapType" cname="ArtPathStrokeCapType" type="enum">
<member cname="ART_PATH_STROKE_CAP_BUTT" name="Butt"/>
<member cname="ART_PATH_STROKE_CAP_ROUND" name="Round"/>
<member cname="ART_PATH_STROKE_CAP_SQUARE" name="Square"/>
</enum>
<enum name="PathStrokeJoinType" cname="ArtPathStrokeJoinType" type="enum">
<member cname="ART_PATH_STROKE_JOIN_MITER" name="Miter"/>
<member cname="ART_PATH_STROKE_JOIN_ROUND" name="Round"/>
<member cname="ART_PATH_STROKE_JOIN_BEVEL" name="Bevel"/>
</enum>
<enum name="Pathcode" cname="ArtPathcode" type="enum">
<member cname="ART_MOVETO" name="Moveto"/>
<member cname="ART_MOVETO_OPEN" name="MovetoOpen"/>
<member cname="ART_CURVETO" name="Curveto"/>
<member cname="ART_LINETO" name="Lineto"/>
<member cname="ART_END" name="End"/>
</enum>
<enum name="PixFormat" cname="ArtPixFormat" type="enum">
<member cname="ART_PIX_RGB" name="Rgb"/>
</enum>
<enum name="WindRule" cname="ArtWindRule" type="enum">
<member cname="ART_WIND_RULE_NONZERO" name="Nonzero"/>
<member cname="ART_WIND_RULE_INTERSECT" name="Intersect"/>
<member cname="ART_WIND_RULE_ODDEVEN" name="Oddeven"/>
<member cname="ART_WIND_RULE_POSITIVE" name="Positive"/>
</enum>
<callback name="DestroyNotify" cname="ArtDestroyNotify">
<return-type type="void"/>
<parameters>
<parameter type="void*" name="func_data"/>
<parameter type="void*" name="data"/>
</parameters>
</callback>
<struct name="AlphaGamma" cname="ArtAlphaGamma">
<field cname="gamma" type="double"/>
<field cname="invtable_size" type="int"/>
<field cname="table" array_len="256" type="int"/>
<field cname="invtable" array_len="1" type="art_u8"/>
<method name="Free" cname="art_alphagamma_free">
<return-type type="void"/>
</method>
<constructor cname="art_alphagamma_new">
<parameters>
<parameter type="double" name="gamma"/>
</parameters>
</constructor>
</struct>
<struct name="Bpath" cname="ArtBpath">
<field cname="code" type="ArtPathcode"/>
<field cname="x1" type="double"/>
<field cname="y1" type="double"/>
<field cname="x2" type="double"/>
<field cname="y2" type="double"/>
<field cname="x3" type="double"/>
<field cname="y3" type="double"/>
<method name="AffineTransform" cname="art_bpath_affine_transform">
<return-type type="ArtBpath*"/>
<parameters>
<parameter type="const-double" array="true" name="matrix"/>
</parameters>
</method>
</struct>
<struct name="DRect" cname="ArtDRect">
<field cname="x0" type="double"/>
<field cname="y0" type="double"/>
<field cname="x1" type="double"/>
<field cname="y1" type="double"/>
<method name="AffineTransform" cname="art_drect_affine_transform">
<return-type type="void"/>
<parameters>
<parameter type="const-ArtDRect*" name="src"/>
<parameter type="const-double" array="true" name="matrix"/>
</parameters>
</method>
<method name="Copy" cname="art_drect_copy">
<return-type type="void"/>
<parameters>
<parameter type="const-ArtDRect*" name="src"/>
</parameters>
</method>
<method name="Empty" cname="art_drect_empty">
<return-type type="int"/>
</method>
<method name="Intersect" cname="art_drect_intersect">
<return-type type="void"/>
<parameters>
<parameter type="const-ArtDRect*" name="src1"/>
<parameter type="const-ArtDRect*" name="src2"/>
</parameters>
</method>
<method name="Svp" cname="art_drect_svp">
<return-type type="void"/>
<parameters>
<parameter type="const-ArtSVP*" name="svp"/>
</parameters>
</method>
<method name="SvpUnion" cname="art_drect_svp_union">
<return-type type="void"/>
<parameters>
<parameter type="const-ArtSVP*" name="svp"/>
</parameters>
</method>
<method name="ToIrect" cname="art_drect_to_irect" shared="true">
<return-type type="void"/>
<parameters>
<parameter type="ArtIRect*" name="dst"/>
<parameter type="ArtDRect*" name="src"/>
</parameters>
</method>
<method name="Union" cname="art_drect_union">
<return-type type="void"/>
<parameters>
<parameter type="const-ArtDRect*" name="src1"/>
<parameter type="const-ArtDRect*" name="src2"/>
</parameters>
</method>
</struct>
<struct name="GradientLinear" cname="ArtGradientLinear">
<field cname="a" type="double"/>
<field cname="b" type="double"/>
<field cname="c" type="double"/>
<field cname="spread" type="ArtGradientSpread"/>
<field cname="n_stops" type="int"/>
<field cname="stops" type="ArtGradientStop*"/>
</struct>
<struct name="GradientRadial" cname="ArtGradientRadial">
<field cname="affine" array_len="6" type="double"/>
<field cname="fx" type="double"/>
<field cname="fy" type="double"/>
<field cname="n_stops" type="int"/>
<field cname="stops" type="ArtGradientStop*"/>
</struct>
<struct name="GradientStop" cname="ArtGradientStop">
<field cname="offset" type="double"/>
<field cname="color" array_len="ART_MAX_CHAN + 1" type="ArtPixMaxDepth"/>
</struct>
<struct name="IRect" cname="ArtIRect">
<field cname="x0" type="int"/>
<field cname="y0" type="int"/>
<field cname="x1" type="int"/>
<field cname="y1" type="int"/>
<method name="Copy" cname="art_irect_copy">
<return-type type="void"/>
<parameters>
<parameter type="const-ArtIRect*" name="src"/>
</parameters>
</method>
<method name="Empty" cname="art_irect_empty">
<return-type type="int"/>
</method>
<method name="Intersect" cname="art_irect_intersect">
<return-type type="void"/>
<parameters>
<parameter type="const-ArtIRect*" name="src1"/>
<parameter type="const-ArtIRect*" name="src2"/>
</parameters>
</method>
<method name="Union" cname="art_irect_union">
<return-type type="void"/>
<parameters>
<parameter type="const-ArtIRect*" name="src1"/>
<parameter type="const-ArtIRect*" name="src2"/>
</parameters>
</method>
</struct>
<struct name="ImageSource" cname="ArtImageSource">
<field cname="super" type="ArtRenderCallback"/>
<callback cname="negotiate">
<return-type type="void"/>
<parameters>
<parameter type="ArtImageSource*" name="self,"/>
</parameters>
</callback>
</struct>
<struct name="MaskSource" cname="ArtMaskSource">
<field cname="super" type="ArtRenderCallback"/>
<callback cname="can_drive">
<return-type type="int"/>
<parameters>
<parameter type="ArtMaskSource*" name="self,"/>
</parameters>
</callback>
<callback cname="invoke_driver">
<return-type type="void"/>
<parameters>
<parameter type="ArtMaskSource*" name="self,"/>
</parameters>
</callback>
<callback cname="prepare">
<return-type type="void"/>
<parameters>
<parameter type="ArtMaskSource*" name="self,"/>
</parameters>
</callback>
</struct>
<struct name="PixBuf" cname="ArtPixBuf">
<field cname="format" type="ArtPixFormat"/>
<field cname="n_channels" type="int"/>
<field cname="has_alpha" type="int"/>
<field cname="bits_per_sample" type="int"/>
<field cname="pixels" type="art_u8*"/>
<field cname="width" type="int"/>
<field cname="height" type="int"/>
<field cname="rowstride" type="int"/>
<field cname="destroy_data" type="void*"/>
<field cname="destroy" type="ArtDestroyNotify"/>
<method name="Duplicate" cname="art_pixbuf_duplicate">
<return-type type="ArtPixBuf*"/>
</method>
<method name="Free" cname="art_pixbuf_free">
<return-type type="void"/>
</method>
<method name="FreeShallow" cname="art_pixbuf_free_shallow">
<return-type type="void"/>
</method>
<constructor cname="art_pixbuf_new_const_rgb">
<parameters>
<parameter type="const-art_u8*" name="pixels"/>
<parameter type="int" name="width"/>
<parameter type="int" name="height"/>
<parameter type="int" name="rowstride"/>
</parameters>
</constructor>
<constructor cname="art_pixbuf_new_const_rgba">
<parameters>
<parameter type="const-art_u8*" name="pixels"/>
<parameter type="int" name="width"/>
<parameter type="int" name="height"/>
<parameter type="int" name="rowstride"/>
</parameters>
</constructor>
<constructor cname="art_pixbuf_new_rgb">
<parameters>
<parameter type="art_u8*" name="pixels"/>
<parameter type="int" name="width"/>
<parameter type="int" name="height"/>
<parameter type="int" name="rowstride"/>
</parameters>
</constructor>
<constructor cname="art_pixbuf_new_rgb_dnotify">
<parameters>
<parameter type="art_u8*" name="pixels"/>
<parameter type="int" name="width"/>
<parameter type="int" name="height"/>
<parameter type="int" name="rowstride"/>
<parameter type="void*" name="dfunc_data"/>
<parameter type="ArtDestroyNotify" name="dfunc"/>
</parameters>
</constructor>
<constructor cname="art_pixbuf_new_rgba">
<parameters>
<parameter type="art_u8*" name="pixels"/>
<parameter type="int" name="width"/>
<parameter type="int" name="height"/>
<parameter type="int" name="rowstride"/>
</parameters>
</constructor>
<constructor cname="art_pixbuf_new_rgba_dnotify">
<parameters>
<parameter type="art_u8*" name="pixels"/>
<parameter type="int" name="width"/>
<parameter type="int" name="height"/>
<parameter type="int" name="rowstride"/>
<parameter type="void*" name="dfunc_data"/>
<parameter type="ArtDestroyNotify" name="dfunc"/>
</parameters>
</constructor>
</struct>
<alias name="PixMaxDepth" cname="ArtPixMaxDepth" type="art_u8 "/>
<struct name="Point" cname="ArtPoint">
<field cname="x" type="double"/>
<field cname="y" type="double"/>
</struct>
<struct name="Render" cname="ArtRender">
<field cname="x0" type="int"/>
<field cname="y0" type="int"/>
<field cname="x1" type="int"/>
<field cname="y1" type="int"/>
<field cname="pixels" type="art_u8*"/>
<field cname="rowstride" type="int"/>
<field cname="n_chan" type="int"/>
<field cname="depth" type="int"/>
<field cname="alpha_type" type="ArtAlphaType"/>
<field cname="clear" type="art_boolean"/>
<field cname="clear_color" array_len="ART_MAX_CHAN + 1" type="ArtPixMaxDepth"/>
<field cname="opacity" type="art_u32"/>
<field cname="compositing_mode" type="ArtCompositingMode"/>
<field cname="alphagamma" type="ArtAlphaGamma*"/>
<field cname="alpha_buf" type="art_u8*"/>
<field cname="buf_depth" type="int"/>
<field cname="buf_alpha" type="ArtAlphaType"/>
<field cname="image_buf" type="art_u8*"/>
<field cname="n_run" type="int"/>
<field cname="run" type="ArtRenderMaskRun*"/>
<field cname="n_span" type="int"/>
<field cname="span_x" type="int*"/>
<field cname="need_span" type="art_boolean"/>
<method name="AddImageSource" cname="art_render_add_image_source">
<return-type type="void"/>
<parameters>
<parameter type="ArtImageSource*" name="image_source"/>
</parameters>
</method>
<method name="AddMaskSource" cname="art_render_add_mask_source">
<return-type type="void"/>
<parameters>
<parameter type="ArtMaskSource*" name="mask_source"/>
</parameters>
</method>
<method name="Clear" cname="art_render_clear">
<return-type type="void"/>
<parameters>
<parameter type="const-ArtPixMaxDepth*" name="clear_color"/>
</parameters>
</method>
<method name="ClearRgb" cname="art_render_clear_rgb">
<return-type type="void"/>
<parameters>
<parameter type="art_u32" name="clear_rgb"/>
</parameters>
</method>
<method name="GradientLinear" cname="art_render_gradient_linear">
<return-type type="void"/>
<parameters>
<parameter type="const-ArtGradientLinear*" name="gradient"/>
<parameter type="ArtFilterLevel" name="level"/>
</parameters>
</method>
<method name="GradientRadial" cname="art_render_gradient_radial">
<return-type type="void"/>
<parameters>
<parameter type="const-ArtGradientRadial*" name="gradient"/>
<parameter type="ArtFilterLevel" name="level"/>
</parameters>
</method>
<method name="ImageSolid" cname="art_render_image_solid">
<return-type type="void"/>
<parameters>
<parameter type="ArtPixMaxDepth*" name="color"/>
</parameters>
</method>
<method name="Invoke" cname="art_render_invoke">
<return-type type="void"/>
</method>
<method name="InvokeCallbacks" cname="art_render_invoke_callbacks">
<return-type type="void"/>
<parameters>
<parameter type="art_u8*" name="dest"/>
<parameter type="int" name="y"/>
</parameters>
</method>
<method name="Mask" cname="art_render_mask">
<return-type type="void"/>
<parameters>
<parameter type="int" name="x0"/>
<parameter type="int" name="y0"/>
<parameter type="int" name="x1"/>
<parameter type="int" name="y1"/>
<parameter type="const-art_u8*" name="mask_buf"/>
<parameter type="int" name="rowstride"/>
</parameters>
</method>
<method name="MaskSolid" cname="art_render_mask_solid">
<return-type type="void"/>
<parameters>
<parameter type="int" name="opacity"/>
</parameters>
</method>
<constructor cname="art_render_new">
<parameters>
<parameter type="int" name="x0"/>
<parameter type="int" name="y0"/>
<parameter type="int" name="x1"/>
<parameter type="int" name="y1"/>
<parameter type="art_u8*" name="pixels"/>
<parameter type="int" name="rowstride"/>
<parameter type="int" name="n_chan"/>
<parameter type="int" name="depth"/>
<parameter type="ArtAlphaType" name="alpha_type"/>
<parameter type="ArtAlphaGamma*" name="alphagamma"/>
</parameters>
</constructor>
<method name="Svp" cname="art_render_svp">
<return-type type="void"/>
<parameters>
<parameter type="const-ArtSVP*" name="svp"/>
</parameters>
</method>
</struct>
<struct name="RenderCallback" cname="ArtRenderCallback">
<callback cname="render">
<return-type type="void"/>
<parameters>
<parameter type="ArtRenderCallback*" name="self,"/>
</parameters>
</callback>
<callback cname="done">
<return-type type="void"/>
<parameters>
<parameter type="ArtRenderCallback*" name="self,"/>
</parameters>
</callback>
</struct>
<struct name="RenderMaskRun" cname="ArtRenderMaskRun">
<field cname="x" type="int"/>
<field cname="alpha" type="int"/>
</struct>
<struct name="SVP" cname="ArtSVP">
<field cname="n_segs" type="int"/>
<field cname="segs" array_len="1" type="ArtSVPSeg"/>
<method name="AddSegment" cname="art_svp_add_segment">
<return-type type="int"/>
<parameters>
<parameter type="int*" name="pn_segs_max"/>
<parameter type="int**" name="pn_points_max"/>
<parameter type="int" name="n_points"/>
<parameter type="int" name="dir"/>
<parameter type="ArtPoint*" name="points"/>
<parameter type="ArtDRect*" name="bbox"/>
</parameters>
</method>
<method name="Diff" cname="art_svp_diff">
<return-type type="ArtSVP*"/>
<parameters>
<parameter type="const-ArtSVP*" name="svp2"/>
</parameters>
</method>
<method name="Free" cname="art_svp_free">
<return-type type="void"/>
</method>
<method name="FromVpath" cname="art_svp_from_vpath" shared="true">
<return-type type="ArtSVP*"/>
<parameters>
<parameter type="ArtVpath*" name="vpath"/>
</parameters>
</method>
<method name="Intersect" cname="art_svp_intersect">
<return-type type="ArtSVP*"/>
<parameters>
<parameter type="const-ArtSVP*" name="svp2"/>
</parameters>
</method>
<method name="Intersector" cname="art_svp_intersector">
<return-type type="void"/>
<parameters>
<parameter type="ArtSvpWriter*" name="out"/>
</parameters>
</method>
<method name="Minus" cname="art_svp_minus">
<return-type type="ArtSVP*"/>
<parameters>
<parameter type="const-ArtSVP*" name="svp2"/>
</parameters>
</method>
<method name="PointDist" cname="art_svp_point_dist">
<return-type type="double"/>
<parameters>
<parameter type="double" name="x"/>
<parameter type="double" name="y"/>
</parameters>
</method>
<method name="PointWind" cname="art_svp_point_wind">
<return-type type="int"/>
<parameters>
<parameter type="double" name="x"/>
<parameter type="double" name="y"/>
</parameters>
</method>
<method name="RenderAa" cname="art_svp_render_aa">
<return-type type="void"/>
<parameters>
<parameter type="int" name="x0"/>
<parameter type="int" name="y0"/>
<parameter type="int" name="x1"/>
<parameter type="int" name="y1"/>
<callback cname="callback">
<return-type type="void"/>
<parameters>
<parameter type="void*" name="callback_data"/>
<parameter type="int" name="y"/>
<parameter type="int" name="start"/>
<parameter type="ArtSVPRenderAAStep*" name="steps"/>
<parameter type="int" name="n_steps"/>
</parameters>
</callback>
<parameter type="void*" name="callback_data"/>
</parameters>
</method>
<method name="RenderAaIter" cname="art_svp_render_aa_iter">
<return-type type="ArtSVPRenderAAIter*"/>
<parameters>
<parameter type="int" name="x0"/>
<parameter type="int" name="y0"/>
<parameter type="int" name="x1"/>
<parameter type="int" name="y1"/>
</parameters>
</method>
<method name="RewindUncrossed" cname="art_svp_rewind_uncrossed">
<return-type type="ArtSVP*"/>
<parameters>
<parameter type="ArtWindRule" name="rule"/>
</parameters>
</method>
<method name="Uncross" cname="art_svp_uncross">
<return-type type="ArtSVP*"/>
</method>
<method name="Union" cname="art_svp_union">
<return-type type="ArtSVP*"/>
<parameters>
<parameter type="const-ArtSVP*" name="svp2"/>
</parameters>
</method>
<method name="VpathStroke" cname="art_svp_vpath_stroke" shared="true">
<return-type type="ArtSVP*"/>
<parameters>
<parameter type="ArtVpath*" name="vpath"/>
<parameter type="ArtPathStrokeJoinType" name="join"/>
<parameter type="ArtPathStrokeCapType" name="cap"/>
<parameter type="double" name="line_width"/>
<parameter type="double" name="miter_limit"/>
<parameter type="double" name="flatness"/>
</parameters>
</method>
<method name="VpathStrokeRaw" cname="art_svp_vpath_stroke_raw" shared="true">
<return-type type="ArtVpath*"/>
<parameters>
<parameter type="ArtVpath*" name="vpath"/>
<parameter type="ArtPathStrokeJoinType" name="join"/>
<parameter type="ArtPathStrokeCapType" name="cap"/>
<parameter type="double" name="line_width"/>
<parameter type="double" name="miter_limit"/>
<parameter type="double" name="flatness"/>
</parameters>
</method>
</struct>
<struct name="SVPRenderAAIter" cname="ArtSVPRenderAAIter" opaque="true">
<method name="Done" cname="art_svp_render_aa_iter_done">
<return-type type="void"/>
</method>
<method name="Step" cname="art_svp_render_aa_iter_step">
<return-type type="void"/>
<parameters>
<parameter type="int*" name="p_start"/>
<parameter type="ArtSVPRenderAAStep**" name="p_steps"/>
<parameter type="int*" name="p_n_steps"/>
</parameters>
</method>
</struct>
<struct name="SVPRenderAAStep" cname="ArtSVPRenderAAStep">
<field cname="x" type="int"/>
<field cname="delta" type="int"/>
</struct>
<struct name="SVPSeg" cname="ArtSVPSeg">
<field cname="n_points" type="int"/>
<field cname="dir" type="int"/>
<field cname="bbox" type="ArtDRect"/>
<field cname="points" type="ArtPoint*"/>
<method name="Compare" cname="art_svp_seg_compare" shared="true">
<return-type type="int"/>
<parameters>
<parameter type="const-void*" name="s1"/>
<parameter type="const-void*" name="s2"/>
</parameters>
</method>
</struct>
<struct name="SvpWriter" cname="ArtSvpWriter">
<callback cname="add_segment">
<return-type type="int"/>
<parameters>
<parameter type="ArtSvpWriter*" name="self,"/>
</parameters>
</callback>
<callback cname="add_point">
<return-type type="void"/>
<parameters>
<parameter type="ArtSvpWriter*" name="self,"/>
</parameters>
</callback>
<callback cname="close_segment">
<return-type type="void"/>
<parameters>
<parameter type="ArtSvpWriter*" name="self,"/>
</parameters>
</callback>
<method name="RewindNew" cname="art_svp_writer_rewind_new" shared="true">
<return-type type="ArtSvpWriter*"/>
<parameters>
<parameter type="ArtWindRule" name="rule"/>
</parameters>
</method>
<method name="RewindReap" cname="art_svp_writer_rewind_reap">
<return-type type="ArtSVP*"/>
</method>
</struct>
<struct name="Uta" cname="ArtUta">
<field cname="x0" type="int"/>
<field cname="y0" type="int"/>
<field cname="width" type="int"/>
<field cname="height" type="int"/>
<field cname="utiles" type="ArtUtaBbox*"/>
<method name="AddLine" cname="art_uta_add_line">
<return-type type="void"/>
<parameters>
<parameter type="double" name="x0"/>
<parameter type="double" name="y0"/>
<parameter type="double" name="x1"/>
<parameter type="double" name="y1"/>
<parameter type="int*" name="rbuf"/>
<parameter type="int" name="rbuf_rowstride"/>
</parameters>
</method>
<method name="Free" cname="art_uta_free">
<return-type type="void"/>
</method>
<method name="FromIrect" cname="art_uta_from_irect" shared="true">
<return-type type="ArtUta*"/>
<parameters>
<parameter type="ArtIRect*" name="bbox"/>
</parameters>
</method>
<method name="FromSvp" cname="art_uta_from_svp" shared="true">
<return-type type="ArtUta*"/>
<parameters>
<parameter type="const-ArtSVP*" name="svp"/>
</parameters>
</method>
<method name="FromVpath" cname="art_uta_from_vpath" shared="true">
<return-type type="ArtUta*"/>
<parameters>
<parameter type="const-ArtVpath*" name="vec"/>
</parameters>
</method>
<constructor cname="art_uta_new">
<parameters>
<parameter type="int" name="x0"/>
<parameter type="int" name="y0"/>
<parameter type="int" name="x1"/>
<parameter type="int" name="y1"/>
</parameters>
</constructor>
<constructor cname="art_uta_new_coords">
<parameters>
<parameter type="int" name="x0"/>
<parameter type="int" name="y0"/>
<parameter type="int" name="x1"/>
<parameter type="int" name="y1"/>
</parameters>
</constructor>
<method name="Union" cname="art_uta_union">
<return-type type="ArtUta*"/>
<parameters>
<parameter type="ArtUta*" name="uta2"/>
</parameters>
</method>
</struct>
<alias name="UtaBbox" cname="ArtUtaBbox" type="art_u32 "/>
<struct name="Vpath" cname="ArtVpath">
<field cname="code" type="ArtPathcode"/>
<field cname="x" type="double"/>
<field cname="y" type="double"/>
<method name="AddPoint" cname="art_vpath_add_point">
<return-type type="void"/>
<parameters>
<parameter type="int*" name="pn_points"/>
<parameter type="int*" name="pn_points_max"/>
<parameter type="ArtPathcode" name="code"/>
<parameter type="double" name="x"/>
<parameter type="double" name="y"/>
</parameters>
</method>
<method name="AffineTransform" cname="art_vpath_affine_transform">
<return-type type="ArtVpath*"/>
<parameters>
<parameter type="const-double" array="true" name="matrix"/>
</parameters>
</method>
<method name="BboxDrect" cname="art_vpath_bbox_drect">
<return-type type="void"/>
<parameters>
<parameter type="ArtDRect*" name="drect"/>
</parameters>
</method>
<method name="BboxIrect" cname="art_vpath_bbox_irect">
<return-type type="void"/>
<parameters>
<parameter type="ArtIRect*" name="irect"/>
</parameters>
</method>
<method name="Dash" cname="art_vpath_dash">
<return-type type="ArtVpath*"/>
<parameters>
<parameter type="const-ArtVpathDash*" name="dash"/>
</parameters>
</method>
<method name="FromSvp" cname="art_vpath_from_svp" shared="true">
<return-type type="ArtVpath*"/>
<parameters>
<parameter type="const-ArtSVP*" name="svp"/>
</parameters>
</method>
<constructor cname="art_vpath_new_circle">
<parameters>
<parameter type="double" name="x"/>
<parameter type="double" name="y"/>
<parameter type="double" name="r"/>
</parameters>
</constructor>
<method name="Perturb" cname="art_vpath_perturb">
<return-type type="ArtVpath*"/>
</method>
</struct>
<struct name="VpathDash" cname="ArtVpathDash">
<field cname="offset" type="double"/>
<field cname="n_dash" type="int"/>
<field cname="dash" type="double*"/>
</struct>
<alias name="" cname="art_boolean" type="int "/>
</namespace>
</api>

1390
api/atk-api.xml Normal file

File diff suppressed because it is too large Load diff

612
api/gdk-api.xml Normal file
View file

@ -0,0 +1,612 @@
<?xml version="1.0" encoding="UTF-8"?>
<api>
<namespace name="Gdk" library="gdk_pixbuf-2.0">
<enum name="Colorspace" cname="GdkColorspace" type="enum">
<member cname="GDK_COLORSPACE_RGB" name="Rgb"/>
</enum>
<enum name="InterpType" cname="GdkInterpType" type="enum">
<member cname="GDK_INTERP_NEAREST" name="Nearest"/>
<member cname="GDK_INTERP_TILES" name="Tiles"/>
<member cname="GDK_INTERP_BILINEAR" name="Bilinear"/>
<member cname="GDK_INTERP_HYPER" name="Hyper"/>
</enum>
<enum name="PixbufAlphaMode" cname="GdkPixbufAlphaMode" type="enum">
<member cname="GDK_PIXBUF_ALPHA_BILEVEL" name="Bilevel"/>
<member cname="GDK_PIXBUF_ALPHA_FULL" name="Full"/>
</enum>
<enum name="PixbufError" cname="GdkPixbufError" type="enum">
<member cname="GDK_PIXBUF_ERROR_CORRUPT_IMAGE" name="CorruptImage"/>
<member cname="GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY" name="InsufficientMemory"/>
<member cname="GDK_PIXBUF_ERROR_BAD_OPTION" name="BadOption"/>
<member cname="GDK_PIXBUF_ERROR_UNKNOWN_TYPE" name="UnknownType"/>
<member cname="GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION" name="UnsupportedOperation"/>
<member cname="GDK_PIXBUF_ERROR_FAILED" name="Failed"/>
</enum>
<enum name="PixbufFrameAction" cname="GdkPixbufFrameAction" type="enum">
<member cname="GDK_PIXBUF_FRAME_RETAIN" name="Retain"/>
<member cname="GDK_PIXBUF_FRAME_DISPOSE" name="Dispose"/>
<member cname="GDK_PIXBUF_FRAME_REVERT" name="Revert"/>
</enum>
<enum name="PixdataDumpType" cname="GdkPixdataDumpType" type="flags">
<member cname="GDK_PIXDATA_DUMP_PIXDATA_STREAM" name="PixdataStream"/>
<member cname="GDK_PIXDATA_DUMP_PIXDATA_STRUCT" name="PixdataStruct" value="1"/>
<member cname="GDK_PIXDATA_DUMP_MACROS" name="Macros" value="2"/>
<member cname="GDK_PIXDATA_DUMP_GTYPES" name="Gtypes"/>
<member cname="GDK_PIXDATA_DUMP_CTYPES" name="Ctypes" value="1 &lt;&lt; 8"/>
<member cname="GDK_PIXDATA_DUMP_STATIC" name="Static" value="1 &lt;&lt; 9"/>
<member cname="GDK_PIXDATA_DUMP_CONST" name="Const" value="1 &lt;&lt; 10"/>
<member cname="GDK_PIXDATA_DUMP_RLE_DECODER" name="RleDecoder" value="1 &lt;&lt; 16"/>
</enum>
<enum name="PixdataType" cname="GdkPixdataType" type="enum">
<member cname="GDK_PIXDATA_COLOR_TYPE_RGB" name="ColorTypeRgb" value="0x01"/>
<member cname="GDK_PIXDATA_COLOR_TYPE_RGBA" name="ColorTypeRgba" value="0x02"/>
<member cname="GDK_PIXDATA_COLOR_TYPE_MASK" name="ColorTypeMask" value="0xff"/>
<member cname="GDK_PIXDATA_SAMPLE_WIDTH_8" name="SampleWidth8" value="1 &lt;&lt; 16"/>
<member cname="GDK_PIXDATA_SAMPLE_WIDTH_MASK" name="SampleWidthMask" value="0x0f &lt;&lt; 16"/>
<member cname="GDK_PIXDATA_ENCODING_RAW" name="EncodingRaw" value="1 &lt;&lt; 24"/>
<member cname="GDK_PIXDATA_ENCODING_RLE" name="EncodingRle" value="0x02 &lt;&lt; 24"/>
<member cname="GDK_PIXDATA_ENCODING_MASK" name="EncodingMask" value="0x0f &lt;&lt; 24"/>
</enum>
<callback name="PixbufDestroyNotify" cname="GdkPixbufDestroyNotify">
<return-type type="void"/>
<parameters>
<parameter type="guchar*" name="pixels"/>
<parameter type="gpointer" name="data"/>
</parameters>
</callback>
<object name="Pixbuf" cname="GdkPixbuf" parent="GObject">
<method name="AddAlpha" cname="gdk_pixbuf_add_alpha">
<return-type type="GdkPixbuf*"/>
<parameters>
<parameter type="gboolean" name="substitute_color"/>
<parameter type="guchar" name="r"/>
<parameter type="guchar" name="g"/>
<parameter type="guchar" name="b"/>
</parameters>
</method>
<method name="AlphaModeGetType" cname="gdk_pixbuf_alpha_mode_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="Composite" cname="gdk_pixbuf_composite">
<return-type type="void"/>
<parameters>
<parameter type="GdkPixbuf*" name="dest"/>
<parameter type="int" name="dest_x"/>
<parameter type="int" name="dest_y"/>
<parameter type="int" name="dest_width"/>
<parameter type="int" name="dest_height"/>
<parameter type="double" name="offset_x"/>
<parameter type="double" name="offset_y"/>
<parameter type="double" name="scale_x"/>
<parameter type="double" name="scale_y"/>
<parameter type="GdkInterpType" name="interp_type"/>
<parameter type="int" name="overall_alpha"/>
</parameters>
</method>
<method name="CompositeColor" cname="gdk_pixbuf_composite_color">
<return-type type="void"/>
<parameters>
<parameter type="GdkPixbuf*" name="dest"/>
<parameter type="int" name="dest_x"/>
<parameter type="int" name="dest_y"/>
<parameter type="int" name="dest_width"/>
<parameter type="int" name="dest_height"/>
<parameter type="double" name="offset_x"/>
<parameter type="double" name="offset_y"/>
<parameter type="double" name="scale_x"/>
<parameter type="double" name="scale_y"/>
<parameter type="GdkInterpType" name="interp_type"/>
<parameter type="int" name="overall_alpha"/>
<parameter type="int" name="check_x"/>
<parameter type="int" name="check_y"/>
<parameter type="int" name="check_size"/>
<parameter type="guint32" name="color1"/>
<parameter type="guint32" name="color2"/>
</parameters>
</method>
<method name="CompositeColorSimple" cname="gdk_pixbuf_composite_color_simple">
<return-type type="GdkPixbuf*"/>
<parameters>
<parameter type="int" name="dest_width"/>
<parameter type="int" name="dest_height"/>
<parameter type="GdkInterpType" name="interp_type"/>
<parameter type="int" name="overall_alpha"/>
<parameter type="int" name="check_size"/>
<parameter type="guint32" name="color1"/>
<parameter type="guint32" name="color2"/>
</parameters>
</method>
<method name="Copy" cname="gdk_pixbuf_copy">
<return-type type="GdkPixbuf*"/>
</method>
<method name="CopyArea" cname="gdk_pixbuf_copy_area">
<return-type type="void"/>
<parameters>
<parameter type="int" name="src_x"/>
<parameter type="int" name="src_y"/>
<parameter type="int" name="width"/>
<parameter type="int" name="height"/>
<parameter type="GdkPixbuf*" name="dest_pixbuf"/>
<parameter type="int" name="dest_x"/>
<parameter type="int" name="dest_y"/>
</parameters>
</method>
<method name="ErrorGetType" cname="gdk_pixbuf_error_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="ErrorQuark" cname="gdk_pixbuf_error_quark" shared="true">
<return-type type="GQuark"/>
</method>
<method name="Fill" cname="gdk_pixbuf_fill">
<return-type type="void"/>
<parameters>
<parameter type="guint32" name="pixel"/>
</parameters>
</method>
<method name="FromPixdata" cname="gdk_pixbuf_from_pixdata" shared="true">
<return-type type="GdkPixbuf*"/>
<parameters>
<parameter type="const-GdkPixdata*" name="pixdata"/>
<parameter type="gboolean" name="copy_pixels"/>
<parameter type="GError**" name="error"/>
</parameters>
</method>
<method name="GetBitsPerSample" cname="gdk_pixbuf_get_bits_per_sample">
<return-type type="int"/>
</method>
<method name="GetColorspace" cname="gdk_pixbuf_get_colorspace">
<return-type type="GdkColorspace"/>
</method>
<method name="GetFromDrawable" cname="gdk_pixbuf_get_from_drawable" library="gdk-x11-2.0">
<return-type type="GdkPixbuf*"/>
<parameters>
<parameter type="GdkDrawable*" name="src"/>
<parameter type="GdkColormap*" name="cmap"/>
<parameter type="int" name="src_x"/>
<parameter type="int" name="src_y"/>
<parameter type="int" name="dest_x"/>
<parameter type="int" name="dest_y"/>
<parameter type="int" name="width"/>
<parameter type="int" name="height"/>
</parameters>
</method>
<method name="GetFromImage" cname="gdk_pixbuf_get_from_image" library="gdk-x11-2.0">
<return-type type="GdkPixbuf*"/>
<parameters>
<parameter type="GdkImage*" name="src"/>
<parameter type="GdkColormap*" name="cmap"/>
<parameter type="int" name="src_x"/>
<parameter type="int" name="src_y"/>
<parameter type="int" name="dest_x"/>
<parameter type="int" name="dest_y"/>
<parameter type="int" name="width"/>
<parameter type="int" name="height"/>
</parameters>
</method>
<method name="GetHasAlpha" cname="gdk_pixbuf_get_has_alpha">
<return-type type="gboolean"/>
</method>
<method name="GetHeight" cname="gdk_pixbuf_get_height">
<return-type type="int"/>
</method>
<method name="GetNChannels" cname="gdk_pixbuf_get_n_channels">
<return-type type="int"/>
</method>
<method name="GetOption" cname="gdk_pixbuf_get_option">
<return-type type="const-gchar*"/>
<parameters>
<parameter type="const-gchar*" name="key"/>
</parameters>
</method>
<method name="GetPixels" cname="gdk_pixbuf_get_pixels">
<return-type type="guchar*"/>
</method>
<method name="GetRowstride" cname="gdk_pixbuf_get_rowstride">
<return-type type="int"/>
</method>
<method name="GetType" cname="gdk_pixbuf_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="GetWidth" cname="gdk_pixbuf_get_width">
<return-type type="int"/>
</method>
<constructor cname="gdk_pixbuf_new">
<parameters>
<parameter type="GdkColorspace" name="colorspace"/>
<parameter type="gboolean" name="has_alpha"/>
<parameter type="int" name="bits_per_sample"/>
<parameter type="int" name="width"/>
<parameter type="int" name="height"/>
</parameters>
</constructor>
<constructor cname="gdk_pixbuf_new_from_data">
<parameters>
<parameter type="const-guchar*" name="data"/>
<parameter type="GdkColorspace" name="colorspace"/>
<parameter type="gboolean" name="has_alpha"/>
<parameter type="int" name="bits_per_sample"/>
<parameter type="int" name="width"/>
<parameter type="int" name="height"/>
<parameter type="int" name="rowstride"/>
<parameter type="GdkPixbufDestroyNotify" name="destroy_fn"/>
<parameter type="gpointer" name="destroy_fn_data"/>
</parameters>
</constructor>
<constructor cname="gdk_pixbuf_new_from_file" preferred="1">
<parameters>
<parameter type="const-char*" name="filename"/>
<parameter type="GError**" name="error"/>
</parameters>
</constructor>
<constructor cname="gdk_pixbuf_new_from_inline">
<parameters>
<parameter type="gint" name="data_length"/>
<parameter type="const-guint8*" name="data"/>
<parameter type="gboolean" name="copy_pixels"/>
<parameter type="GError**" name="error"/>
</parameters>
</constructor>
<constructor cname="gdk_pixbuf_new_from_xpm_data">
<parameters>
<parameter type="const-char**" name="data"/>
</parameters>
</constructor>
<constructor cname="gdk_pixbuf_new_subpixbuf">
<parameters>
<parameter type="GdkPixbuf*" name="src_pixbuf"/>
<parameter type="int" name="src_x"/>
<parameter type="int" name="src_y"/>
<parameter type="int" name="width"/>
<parameter type="int" name="height"/>
</parameters>
</constructor>
<method name="RenderPixmapAndMask" cname="gdk_pixbuf_render_pixmap_and_mask" library="gdk-x11-2.0">
<return-type type="void"/>
<parameters>
<parameter type="GdkPixmap**" name="pixmap_return"/>
<parameter type="GdkBitmap**" name="mask_return"/>
<parameter type="int" name="alpha_threshold"/>
</parameters>
</method>
<method name="RenderPixmapAndMaskForColormap" cname="gdk_pixbuf_render_pixmap_and_mask_for_colormap" library="gdk-x11-2.0">
<return-type type="void"/>
<parameters>
<parameter type="GdkColormap*" name="colormap"/>
<parameter type="GdkPixmap**" name="pixmap_return"/>
<parameter type="GdkBitmap**" name="mask_return"/>
<parameter type="int" name="alpha_threshold"/>
</parameters>
</method>
<method name="RenderThresholdAlpha" cname="gdk_pixbuf_render_threshold_alpha" library="gdk-x11-2.0">
<return-type type="void"/>
<parameters>
<parameter type="GdkBitmap*" name="bitmap"/>
<parameter type="int" name="src_x"/>
<parameter type="int" name="src_y"/>
<parameter type="int" name="dest_x"/>
<parameter type="int" name="dest_y"/>
<parameter type="int" name="width"/>
<parameter type="int" name="height"/>
<parameter type="int" name="alpha_threshold"/>
</parameters>
</method>
<method name="RenderToDrawable" cname="gdk_pixbuf_render_to_drawable" library="gdk-x11-2.0">
<return-type type="void"/>
<parameters>
<parameter type="GdkDrawable*" name="drawable"/>
<parameter type="GdkGC*" name="gc"/>
<parameter type="int" name="src_x"/>
<parameter type="int" name="src_y"/>
<parameter type="int" name="dest_x"/>
<parameter type="int" name="dest_y"/>
<parameter type="int" name="width"/>
<parameter type="int" name="height"/>
<parameter type="GdkRgbDither" name="dither"/>
<parameter type="int" name="x_dither"/>
<parameter type="int" name="y_dither"/>
</parameters>
</method>
<method name="RenderToDrawableAlpha" cname="gdk_pixbuf_render_to_drawable_alpha" library="gdk-x11-2.0">
<return-type type="void"/>
<parameters>
<parameter type="GdkDrawable*" name="drawable"/>
<parameter type="int" name="src_x"/>
<parameter type="int" name="src_y"/>
<parameter type="int" name="dest_x"/>
<parameter type="int" name="dest_y"/>
<parameter type="int" name="width"/>
<parameter type="int" name="height"/>
<parameter type="GdkPixbufAlphaMode" name="alpha_mode"/>
<parameter type="int" name="alpha_threshold"/>
<parameter type="GdkRgbDither" name="dither"/>
<parameter type="int" name="x_dither"/>
<parameter type="int" name="y_dither"/>
</parameters>
</method>
<method name="SaturateAndPixelate" cname="gdk_pixbuf_saturate_and_pixelate">
<return-type type="void"/>
<parameters>
<parameter type="GdkPixbuf*" name="dest"/>
<parameter type="gfloat" name="saturation"/>
<parameter type="gboolean" name="pixelate"/>
</parameters>
</method>
<method name="Save" cname="gdk_pixbuf_save">
<return-type type="gboolean"/>
<parameters>
<parameter type="const-char*" name="filename"/>
<parameter type="const-char*" name="type"/>
<parameter type="GError**" name="error"/>
<parameter ellipsis="true"/>
</parameters>
</method>
<method name="Savev" cname="gdk_pixbuf_savev">
<return-type type="gboolean"/>
<parameters>
<parameter type="const-char*" name="filename"/>
<parameter type="const-char*" name="type"/>
<parameter type="char**" name="option_keys"/>
<parameter type="char**" name="option_values"/>
<parameter type="GError**" name="error"/>
</parameters>
</method>
<method name="Scale" cname="gdk_pixbuf_scale">
<return-type type="void"/>
<parameters>
<parameter type="GdkPixbuf*" name="dest"/>
<parameter type="int" name="dest_x"/>
<parameter type="int" name="dest_y"/>
<parameter type="int" name="dest_width"/>
<parameter type="int" name="dest_height"/>
<parameter type="double" name="offset_x"/>
<parameter type="double" name="offset_y"/>
<parameter type="double" name="scale_x"/>
<parameter type="double" name="scale_y"/>
<parameter type="GdkInterpType" name="interp_type"/>
</parameters>
</method>
<method name="ScaleSimple" cname="gdk_pixbuf_scale_simple">
<return-type type="GdkPixbuf*"/>
<parameters>
<parameter type="int" name="dest_width"/>
<parameter type="int" name="dest_height"/>
<parameter type="GdkInterpType" name="interp_type"/>
</parameters>
</method>
</object>
<object name="PixbufAnimation" cname="GdkPixbufAnimation" parent="GObject">
<method name="GetHeight" cname="gdk_pixbuf_animation_get_height">
<return-type type="int"/>
</method>
<method name="GetIter" cname="gdk_pixbuf_animation_get_iter">
<return-type type="GdkPixbufAnimationIter*"/>
<parameters>
<parameter type="const-GTimeVal*" name="start_time"/>
</parameters>
</method>
<method name="GetStaticImage" cname="gdk_pixbuf_animation_get_static_image">
<return-type type="GdkPixbuf*"/>
</method>
<method name="GetType" cname="gdk_pixbuf_animation_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="GetWidth" cname="gdk_pixbuf_animation_get_width">
<return-type type="int"/>
</method>
<method name="IsStaticImage" cname="gdk_pixbuf_animation_is_static_image">
<return-type type="gboolean"/>
</method>
<constructor cname="gdk_pixbuf_animation_new_from_file">
<parameters>
<parameter type="const-char*" name="filename"/>
<parameter type="GError**" name="error"/>
</parameters>
</constructor>
</object>
<object name="PixbufAnimationIter" cname="GdkPixbufAnimationIter" parent="GObject">
<method name="Advance" cname="gdk_pixbuf_animation_iter_advance">
<return-type type="gboolean"/>
<parameters>
<parameter type="const-GTimeVal*" name="current_time"/>
</parameters>
</method>
<method name="GetDelayTime" cname="gdk_pixbuf_animation_iter_get_delay_time">
<return-type type="int"/>
</method>
<method name="GetPixbuf" cname="gdk_pixbuf_animation_iter_get_pixbuf">
<return-type type="GdkPixbuf*"/>
</method>
<method name="GetType" cname="gdk_pixbuf_animation_iter_get_type" shared="true">
<return-type type="GType"/>
</method>
<method name="OnCurrentlyLoadingFrame" cname="gdk_pixbuf_animation_iter_on_currently_loading_frame">
<return-type type="gboolean"/>
</method>
</object>
<object name="PixbufGifAnim" cname="GdkPixbufGifAnim" parent="GdkPixbufAnimation">
<field cname="n_frames" type="int"/>
<field cname="total_time" type="int"/>
<field cname="frames" type="GList*"/>
<field cname="width" type="int"/>
<field cname="height" type="int"/>
<field cname="bg_red" type="guchar"/>
<field cname="bg_green" type="guchar"/>
<field cname="bg_blue" type="guchar"/>
<method name="FrameComposite" cname="gdk_pixbuf_gif_anim_frame_composite">
<return-type type="void"/>
<parameters>
<parameter type="GdkPixbufFrame*" name="frame"/>
</parameters>
</method>
<method name="GetType" cname="gdk_pixbuf_gif_anim_get_type" shared="true">
<return-type type="GType"/>
</method>
</object>
<object name="PixbufGifAnimIter" cname="GdkPixbufGifAnimIter" parent="GdkPixbufAnimationIter">
<field cname="gif_anim" type="GdkPixbufGifAnim*"/>
<field cname="start_time" type="GTimeVal"/>
<field cname="current_time" type="GTimeVal"/>
<field cname="position" type="gint"/>
<field cname="current_frame" type="GList*"/>
<method name="GetType" cname="gdk_pixbuf_gif_anim_iter_get_type" shared="true">
<return-type type="GType"/>
</method>
</object>
<object name="PixbufLoader" cname="GdkPixbufLoader" parent="GObject">
<field cname="priv" type="gpointer"/>
<signal name="AreaPrepared" cname="area_prepared" when="LAST">
<return-type type="void"/>
<parameters>
<parameter type="GdkPixbufLoader*" name="loader"/>
</parameters>
</signal>
<signal name="AreaUpdated" cname="area_updated" when="LAST">
<return-type type="void"/>
<parameters>
<parameter type="GdkPixbufLoader*" name="loader"/>
<parameter type="int" name="x"/>
<parameter type="int" name="y"/>
<parameter type="int" name="width"/>
<parameter type="int" name="height"/>
</parameters>
</signal>
<signal name="Closed" cname="closed" when="LAST">
<return-type type="void"/>
<parameters>
<parameter type="GdkPixbufLoader*" name="loader"/>
</parameters>
</signal>
<method name="Close" cname="gdk_pixbuf_loader_close">
<return-type type="gboolean"/>
<parameters>
<parameter type="GError**" name="error"/>
</parameters>
</method>
<method name="GetAnimation" cname="gdk_pixbuf_loader_get_animation">
<return-type type="GdkPixbufAnimation*"/>
</method>
<method name="GetPixbuf" cname="gdk_pixbuf_loader_get_pixbuf">
<return-type type="GdkPixbuf*"/>
</method>
<method name="GetType" cname="gdk_pixbuf_loader_get_type" shared="true">
<return-type type="GType"/>
</method>
<constructor cname="gdk_pixbuf_loader_new"/>
<constructor cname="gdk_pixbuf_loader_new_with_type">
<parameters>
<parameter type="const-char*" name="image_type"/>
<parameter type="GError**" name="error"/>
</parameters>
</constructor>
<method name="Write" cname="gdk_pixbuf_loader_write">
<return-type type="gboolean"/>
<parameters>
<parameter type="const-guchar*" name="buf" array="1"/>
<parameter type="gsize" name="count"/>
<parameter type="GError**" name="error"/>
</parameters>
</method>
</object>
<struct name="PixbufFrame" cname="GdkPixbufFrame">
<field cname="pixbuf" type="GdkPixbuf*"/>
<field cname="x_offset" type="int"/>
<field cname="y_offset" type="int"/>
<field cname="delay_time" type="int"/>
<field cname="elapsed" type="int"/>
<field cname="action" type="GdkPixbufFrameAction"/>
<field cname="need_recomposite" type="gboolean"/>
<field cname="bg_transparent" type="gboolean"/>
<field cname="composited" type="GdkPixbuf*"/>
<field cname="revert" type="GdkPixbuf*"/>
</struct>
<struct name="PixbufModule" cname="GdkPixbufModule">
<field cname="module_name" type="char*"/>
<callback cname="format_check">
<return-type type="gboolean"/>
<parameters>
<parameter type="guchar*" name="buffer,"/>
</parameters>
</callback>
<field cname="module" type="GModule*"/>
<callback cname="load">
<return-type type="GdkPixbuf*"/>
<parameters>
<parameter type="FILE*" name="f,GError**"/>
</parameters>
</callback>
<callback cname="load_xpm_data">
<return-type type="GdkPixbuf*"/>
<parameters>
<parameter type="const-char**" name="data"/>
</parameters>
</callback>
<callback cname="begin_load">
<return-type type="gpointer"/>
<parameters>
<parameter type="ModulePreparedNotifyFunc" name="prepare_func,ModuleUpdatedNotifyFunc"/>
</parameters>
</callback>
<callback cname="stop_load">
<return-type type="gboolean"/>
<parameters>
<parameter type="gpointer" name="context,GError**"/>
</parameters>
</callback>
<callback cname="load_increment">
<return-type type="gboolean"/>
<parameters>
<parameter type="gpointer" name="context,const-guchar*"/>
</parameters>
</callback>
<callback cname="load_animation">
<return-type type="GdkPixbufAnimation*"/>
<parameters>
<parameter type="FILE*" name="f,GError**"/>
</parameters>
</callback>
<callback cname="save">
<return-type type="gboolean"/>
<parameters>
<parameter type="FILE*" name="f,GdkPixbuf*"/>
</parameters>
</callback>
</struct>
<struct name="Pixdata" cname="GdkPixdata">
<field cname="magic" type="guint32"/>
<field cname="length" type="gint32"/>
<field cname="pixdata_type" type="guint32"/>
<field cname="rowstride" type="guint32"/>
<field cname="width" type="guint32"/>
<field cname="height" type="guint32"/>
<field cname="pixel_data" type="guint8*"/>
<method name="Deserialize" cname="gdk_pixdata_deserialize">
<return-type type="gboolean"/>
<parameters>
<parameter type="guint" name="stream_length"/>
<parameter type="const-guint8*" name="stream"/>
<parameter type="GError**" name="error"/>
</parameters>
</method>
<method name="FromPixbuf" cname="gdk_pixdata_from_pixbuf">
<return-type type="gpointer"/>
<parameters>
<parameter type="const-GdkPixbuf*" name="pixbuf"/>
<parameter type="gboolean" name="use_rle"/>
</parameters>
</method>
<method name="Serialize" cname="gdk_pixdata_serialize">
<return-type type="guint8*"/>
<parameters>
<parameter type="guint*" name="stream_length_p"/>
</parameters>
</method>
<method name="ToCsource" cname="gdk_pixdata_to_csource">
<return-type type="GString*"/>
<parameters>
<parameter type="const-gchar*" name="name"/>
<parameter type="GdkPixdataDumpType" name="dump_type"/>
</parameters>
</method>
</struct>
</namespace>
</api>

6
api/gdk-symbols.xml Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<api>
<symbol type="simple" cname="GdkAtom" name="IntPtr"/>
<symbol type="manual" cname="GdkEvent" name="Gdk.Event"/>
</api>

263
api/glade-api.xml Normal file
View file

@ -0,0 +1,263 @@
<?xml version="1.0" encoding="UTF-8"?>
<api>
<namespace name="Glade" library="glade-2.0">
<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 cname="filename" type="char*"/>
<field cname="priv" type="GladeXMLPrivate*"/>
<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 cname="key" type="guint"/>
<field cname="modifiers" type="GdkModifierType"/>
<field cname="signal" type="gchar*"/>
</struct>
<struct name="AtkActionInfo" cname="GladeAtkActionInfo">
<field cname="action_name" type="gchar*"/>
<field cname="description" type="gchar*"/>
</struct>
<struct name="AtkRelationInfo" cname="GladeAtkRelationInfo">
<field cname="target" type="gchar*"/>
<field cname="type" type="gchar*"/>
</struct>
<struct name="ChildInfo" cname="GladeChildInfo">
<field cname="properties" type="GladeProperty*"/>
<field cname="n_properties" type="guint"/>
<field cname="child" type="GladeWidgetInfo*"/>
<field cname="internal_child" type="gchar*"/>
</struct>
<struct name="Interface" cname="GladeInterface">
<field cname="requires" type="gchar**"/>
<field cname="n_requires" type="guint"/>
<field cname="toplevels" type="GladeWidgetInfo**"/>
<field cname="n_toplevels" type="guint"/>
<field cname="names" type="GHashTable*"/>
<field cname="strings" type="GHashTable*"/>
<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 cname="name" type="gchar*"/>
<field cname="value" type="gchar*"/>
</struct>
<struct name="SignalInfo" cname="GladeSignalInfo">
<field cname="name" type="gchar*"/>
<field cname="handler" type="gchar*"/>
<field cname="object" type="gchar*"/>
<field cname="after" bits="1" type="guint"/>
</struct>
<struct name="WidgetInfo" cname="GladeWidgetInfo">
<field cname="parent" type="GladeWidgetInfo*"/>
<field cname="classname" type="gchar*"/>
<field cname="name" type="gchar*"/>
<field cname="properties" type="GladeProperty*"/>
<field cname="n_properties" type="guint"/>
<field cname="atk_props" type="GladeProperty*"/>
<field cname="n_atk_props" type="guint"/>
<field cname="signals" type="GladeSignalInfo*"/>
<field cname="n_signals" type="guint"/>
<field cname="atk_actions" type="GladeAtkActionInfo*"/>
<field cname="n_atk_actions" type="guint"/>
<field cname="relations" type="GladeAtkRelationInfo*"/>
<field cname="n_relations" type="guint"/>
<field cname="accels" type="GladeAccelInfo*"/>
<field cname="n_accels" type="guint"/>
<field cname="children" type="GladeChildInfo*"/>
<field cname="n_children" type="guint"/>
</struct>
</namespace>
</api>

2359
api/gnome-api.xml Normal file

File diff suppressed because it is too large Load diff

895
api/gtk-api.xml Normal file
View file

@ -0,0 +1,895 @@
<?xml version="1.0" encoding="UTF-8"?>
<api>
<namespace name="Gtk" library="gtkhtml-3.0">
<enum name="HTMLCommandType" cname="GtkHTMLCommandType" type="enum">
<member cname="GTK_HTML_COMMAND_UNDO" name="Undo"/>
<member cname="GTK_HTML_COMMAND_REDO" name="Redo"/>
<member cname="GTK_HTML_COMMAND_COPY" name="Copy"/>
<member cname="GTK_HTML_COMMAND_COPY_AND_DISABLE_SELECTION" name="CopyAndDisableSelection"/>
<member cname="GTK_HTML_COMMAND_CUT" name="Cut"/>
<member cname="GTK_HTML_COMMAND_PASTE" name="Paste"/>
<member cname="GTK_HTML_COMMAND_CUT_LINE" name="CutLine"/>
<member cname="GTK_HTML_COMMAND_INSERT_PARAGRAPH" name="InsertParagraph"/>
<member cname="GTK_HTML_COMMAND_INSERT_TAB" name="InsertTab"/>
<member cname="GTK_HTML_COMMAND_INSERT_RULE" name="InsertRule"/>
<member cname="GTK_HTML_COMMAND_INSERT_RULE_PARAM" name="InsertRuleParam"/>
<member cname="GTK_HTML_COMMAND_INSERT_IMAGE_PARAM" name="InsertImageParam"/>
<member cname="GTK_HTML_COMMAND_INSERT_TAB_OR_INDENT_MORE" name="InsertTabOrIndentMore"/>
<member cname="GTK_HTML_COMMAND_INSERT_TAB_OR_NEXT_CELL" name="InsertTabOrNextCell"/>
<member cname="GTK_HTML_COMMAND_MAKE_LINK" name="MakeLink"/>
<member cname="GTK_HTML_COMMAND_REMOVE_LINK" name="RemoveLink"/>
<member cname="GTK_HTML_COMMAND_DELETE" name="Delete"/>
<member cname="GTK_HTML_COMMAND_DELETE_BACK" name="DeleteBack"/>
<member cname="GTK_HTML_COMMAND_DELETE_BACK_OR_INDENT_DEC" name="DeleteBackOrIndentDec"/>
<member cname="GTK_HTML_COMMAND_SELECTION_MODE" name="SelectionMode"/>
<member cname="GTK_HTML_COMMAND_DISABLE_SELECTION" name="DisableSelection"/>
<member cname="GTK_HTML_COMMAND_BOLD_ON" name="BoldOn"/>
<member cname="GTK_HTML_COMMAND_BOLD_OFF" name="BoldOff"/>
<member cname="GTK_HTML_COMMAND_BOLD_TOGGLE" name="BoldToggle"/>
<member cname="GTK_HTML_COMMAND_ITALIC_ON" name="ItalicOn"/>
<member cname="GTK_HTML_COMMAND_ITALIC_OFF" name="ItalicOff"/>
<member cname="GTK_HTML_COMMAND_ITALIC_TOGGLE" name="ItalicToggle"/>
<member cname="GTK_HTML_COMMAND_UNDERLINE_ON" name="UnderlineOn"/>
<member cname="GTK_HTML_COMMAND_UNDERLINE_OFF" name="UnderlineOff"/>
<member cname="GTK_HTML_COMMAND_UNDERLINE_TOGGLE" name="UnderlineToggle"/>
<member cname="GTK_HTML_COMMAND_STRIKEOUT_ON" name="StrikeoutOn"/>
<member cname="GTK_HTML_COMMAND_STRIKEOUT_OFF" name="StrikeoutOff"/>
<member cname="GTK_HTML_COMMAND_STRIKEOUT_TOGGLE" name="StrikeoutToggle"/>
<member cname="GTK_HTML_COMMAND_SIZE_MINUS_2" name="SizeMinus2"/>
<member cname="GTK_HTML_COMMAND_SIZE_MINUS_1" name="SizeMinus1"/>
<member cname="GTK_HTML_COMMAND_SIZE_PLUS_0" name="SizePlus0"/>
<member cname="GTK_HTML_COMMAND_SIZE_PLUS_1" name="SizePlus1"/>
<member cname="GTK_HTML_COMMAND_SIZE_PLUS_2" name="SizePlus2"/>
<member cname="GTK_HTML_COMMAND_SIZE_PLUS_3" name="SizePlus3"/>
<member cname="GTK_HTML_COMMAND_SIZE_PLUS_4" name="SizePlus4"/>
<member cname="GTK_HTML_COMMAND_SIZE_INCREASE" name="SizeIncrease"/>
<member cname="GTK_HTML_COMMAND_SIZE_DECREASE" name="SizeDecrease"/>
<member cname="GTK_HTML_COMMAND_ALIGN_LEFT" name="AlignLeft"/>
<member cname="GTK_HTML_COMMAND_ALIGN_CENTER" name="AlignCenter"/>
<member cname="GTK_HTML_COMMAND_ALIGN_RIGHT" name="AlignRight"/>
<member cname="GTK_HTML_COMMAND_INDENT_ZERO" name="IndentZero"/>
<member cname="GTK_HTML_COMMAND_INDENT_INC" name="IndentInc"/>
<member cname="GTK_HTML_COMMAND_INDENT_INC_OR_NEXT_CELL" name="IndentIncOrNextCell"/>
<member cname="GTK_HTML_COMMAND_INDENT_DEC" name="IndentDec"/>
<member cname="GTK_HTML_COMMAND_PREV_CELL" name="PrevCell"/>
<member cname="GTK_HTML_COMMAND_INDENT_PARAGRAPH" name="IndentParagraph"/>
<member cname="GTK_HTML_COMMAND_BREAK_AND_FILL_LINE" name="BreakAndFillLine"/>
<member cname="GTK_HTML_COMMAND_SPACE_AND_FILL_LINE" name="SpaceAndFillLine"/>
<member cname="GTK_HTML_COMMAND_PARAGRAPH_STYLE_NORMAL" name="ParagraphStyleNormal"/>
<member cname="GTK_HTML_COMMAND_PARAGRAPH_STYLE_H1" name="ParagraphStyleH1"/>
<member cname="GTK_HTML_COMMAND_PARAGRAPH_STYLE_H2" name="ParagraphStyleH2"/>
<member cname="GTK_HTML_COMMAND_PARAGRAPH_STYLE_H3" name="ParagraphStyleH3"/>
<member cname="GTK_HTML_COMMAND_PARAGRAPH_STYLE_H4" name="ParagraphStyleH4"/>
<member cname="GTK_HTML_COMMAND_PARAGRAPH_STYLE_H5" name="ParagraphStyleH5"/>
<member cname="GTK_HTML_COMMAND_PARAGRAPH_STYLE_H6" name="ParagraphStyleH6"/>
<member cname="GTK_HTML_COMMAND_PARAGRAPH_STYLE_ADDRESS" name="ParagraphStyleAddress"/>
<member cname="GTK_HTML_COMMAND_PARAGRAPH_STYLE_PRE" name="ParagraphStylePre"/>
<member cname="GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMDOTTED" name="ParagraphStyleItemdotted"/>
<member cname="GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMROMAN" name="ParagraphStyleItemroman"/>
<member cname="GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMDIGIT" name="ParagraphStyleItemdigit"/>
<member cname="GTK_HTML_COMMAND_PARAGRAPH_STYLE_ITEMALPHA" name="ParagraphStyleItemalpha"/>
<member cname="GTK_HTML_COMMAND_MODIFY_SELECTION_UP" name="ModifySelectionUp"/>
<member cname="GTK_HTML_COMMAND_MODIFY_SELECTION_DOWN" name="ModifySelectionDown"/>
<member cname="GTK_HTML_COMMAND_MODIFY_SELECTION_LEFT" name="ModifySelectionLeft"/>
<member cname="GTK_HTML_COMMAND_MODIFY_SELECTION_RIGHT" name="ModifySelectionRight"/>
<member cname="GTK_HTML_COMMAND_MODIFY_SELECTION_PAGEUP" name="ModifySelectionPageup"/>
<member cname="GTK_HTML_COMMAND_MODIFY_SELECTION_PAGEDOWN" name="ModifySelectionPagedown"/>
<member cname="GTK_HTML_COMMAND_MODIFY_SELECTION_BOL" name="ModifySelectionBol"/>
<member cname="GTK_HTML_COMMAND_MODIFY_SELECTION_EOL" name="ModifySelectionEol"/>
<member cname="GTK_HTML_COMMAND_MODIFY_SELECTION_BOD" name="ModifySelectionBod"/>
<member cname="GTK_HTML_COMMAND_MODIFY_SELECTION_EOD" name="ModifySelectionEod"/>
<member cname="GTK_HTML_COMMAND_MODIFY_SELECTION_PREV_WORD" name="ModifySelectionPrevWord"/>
<member cname="GTK_HTML_COMMAND_MODIFY_SELECTION_NEXT_WORD" name="ModifySelectionNextWord"/>
<member cname="GTK_HTML_COMMAND_CAPITALIZE_WORD" name="CapitalizeWord"/>
<member cname="GTK_HTML_COMMAND_UPCASE_WORD" name="UpcaseWord"/>
<member cname="GTK_HTML_COMMAND_DOWNCASE_WORD" name="DowncaseWord"/>
<member cname="GTK_HTML_COMMAND_SPELL_SUGGEST" name="SpellSuggest"/>
<member cname="GTK_HTML_COMMAND_SPELL_PERSONAL_DICTIONARY_ADD" name="SpellPersonalDictionaryAdd"/>
<member cname="GTK_HTML_COMMAND_SPELL_SESSION_DICTIONARY_ADD" name="SpellSessionDictionaryAdd"/>
<member cname="GTK_HTML_COMMAND_SEARCH" name="Search"/>
<member cname="GTK_HTML_COMMAND_SEARCH_INCREMENTAL_FORWARD" name="SearchIncrementalForward"/>
<member cname="GTK_HTML_COMMAND_SEARCH_INCREMENTAL_BACKWARD" name="SearchIncrementalBackward"/>
<member cname="GTK_HTML_COMMAND_SEARCH_REGEX" name="SearchRegex"/>
<member cname="GTK_HTML_COMMAND_FOCUS_FORWARD" name="FocusForward"/>
<member cname="GTK_HTML_COMMAND_FOCUS_BACKWARD" name="FocusBackward"/>
<member cname="GTK_HTML_COMMAND_POPUP_MENU" name="PopupMenu"/>
<member cname="GTK_HTML_COMMAND_PROPERTIES_DIALOG" name="PropertiesDialog"/>
<member cname="GTK_HTML_COMMAND_CURSOR_FORWARD" name="CursorForward"/>
<member cname="GTK_HTML_COMMAND_CURSOR_BACKWARD" name="CursorBackward"/>
<member cname="GTK_HTML_COMMAND_INSERT_TABLE_1_1" name="InsertTable11"/>
<member cname="GTK_HTML_COMMAND_TABLE_INSERT_COL_AFTER" name="TableInsertColAfter"/>
<member cname="GTK_HTML_COMMAND_TABLE_INSERT_COL_BEFORE" name="TableInsertColBefore"/>
<member cname="GTK_HTML_COMMAND_TABLE_INSERT_ROW_AFTER" name="TableInsertRowAfter"/>
<member cname="GTK_HTML_COMMAND_TABLE_INSERT_ROW_BEFORE" name="TableInsertRowBefore"/>
<member cname="GTK_HTML_COMMAND_TABLE_DELETE_COL" name="TableDeleteCol"/>
<member cname="GTK_HTML_COMMAND_TABLE_DELETE_ROW" name="TableDeleteRow"/>
<member cname="GTK_HTML_COMMAND_TABLE_CELL_INC_CSPAN" name="TableCellIncCspan"/>
<member cname="GTK_HTML_COMMAND_TABLE_CELL_DEC_CSPAN" name="TableCellDecCspan"/>
<member cname="GTK_HTML_COMMAND_TABLE_CELL_INC_RSPAN" name="TableCellIncRspan"/>
<member cname="GTK_HTML_COMMAND_TABLE_CELL_DEC_RSPAN" name="TableCellDecRspan"/>
<member cname="GTK_HTML_COMMAND_TABLE_CELL_JOIN_LEFT" name="TableCellJoinLeft"/>
<member cname="GTK_HTML_COMMAND_TABLE_CELL_JOIN_RIGHT" name="TableCellJoinRight"/>
<member cname="GTK_HTML_COMMAND_TABLE_CELL_JOIN_UP" name="TableCellJoinUp"/>
<member cname="GTK_HTML_COMMAND_TABLE_CELL_JOIN_DOWN" name="TableCellJoinDown"/>
<member cname="GTK_HTML_COMMAND_TABLE_BORDER_WIDTH_INC" name="TableBorderWidthInc"/>
<member cname="GTK_HTML_COMMAND_TABLE_BORDER_WIDTH_DEC" name="TableBorderWidthDec"/>
<member cname="GTK_HTML_COMMAND_TABLE_BORDER_WIDTH_ZERO" name="TableBorderWidthZero"/>
<member cname="GTK_HTML_COMMAND_TEXT_SET_DEFAULT_COLOR" name="TextSetDefaultColor"/>
<member cname="GTK_HTML_COMMAND_SELECT_WORD" name="SelectWord"/>
<member cname="GTK_HTML_COMMAND_SELECT_LINE" name="SelectLine"/>
<member cname="GTK_HTML_COMMAND_SELECT_PARAGRAPH" name="SelectParagraph"/>
<member cname="GTK_HTML_COMMAND_SELECT_PARAGRAPH_EXTENDED" name="SelectParagraphExtended"/>
<member cname="GTK_HTML_COMMAND_SELECT_ALL" name="SelectAll"/>
<member cname="GTK_HTML_COMMAND_CURSOR_POSITION_SAVE" name="CursorPositionSave"/>
<member cname="GTK_HTML_COMMAND_CURSOR_POSITION_RESTORE" name="CursorPositionRestore"/>
<member cname="GTK_HTML_COMMAND_CURSOR_BOD" name="CursorBod"/>
<member cname="GTK_HTML_COMMAND_CURSOR_EOD" name="CursorEod"/>
<member cname="GTK_HTML_COMMAND_BLOCK_REDRAW" name="BlockRedraw"/>
<member cname="GTK_HTML_COMMAND_UNBLOCK_REDRAW" name="UnblockRedraw"/>
<member cname="GTK_HTML_COMMAND_ZOOM_IN" name="ZoomIn"/>
<member cname="GTK_HTML_COMMAND_ZOOM_OUT" name="ZoomOut"/>
<member cname="GTK_HTML_COMMAND_ZOOM_RESET" name="ZoomReset"/>
<member cname="GTK_HTML_COMMAND_TABLE_SPACING_INC" name="TableSpacingInc"/>
<member cname="GTK_HTML_COMMAND_TABLE_SPACING_DEC" name="TableSpacingDec"/>
<member cname="GTK_HTML_COMMAND_TABLE_SPACING_ZERO" name="TableSpacingZero"/>
<member cname="GTK_HTML_COMMAND_TABLE_PADDING_INC" name="TablePaddingInc"/>
<member cname="GTK_HTML_COMMAND_TABLE_PADDING_DEC" name="TablePaddingDec"/>
<member cname="GTK_HTML_COMMAND_TABLE_PADDING_ZERO" name="TablePaddingZero"/>
<member cname="GTK_HTML_COMMAND_DELETE_TABLE" name="DeleteTable"/>
<member cname="GTK_HTML_COMMAND_DELETE_TABLE_ROW" name="DeleteTableRow"/>
<member cname="GTK_HTML_COMMAND_DELETE_TABLE_COLUMN" name="DeleteTableColumn"/>
<member cname="GTK_HTML_COMMAND_DELETE_TABLE_CELL_CONTENTS" name="DeleteTableCellContents"/>
<member cname="GTK_HTML_COMMAND_GRAB_FOCUS" name="GrabFocus"/>
<member cname="GTK_HTML_COMMAND_KILL_WORD" name="KillWord"/>
<member cname="GTK_HTML_COMMAND_KILL_WORD_BACKWARD" name="KillWordBackward"/>
<member cname="GTK_HTML_COMMAND_TEXT_COLOR_APPLY" name="TextColorApply"/>
<member cname="GTK_HTML_COMMAND_SAVE_DATA_ON" name="SaveDataOn"/>
<member cname="GTK_HTML_COMMAND_SAVE_DATA_OFF" name="SaveDataOff"/>
</enum>
<enum name="HTMLCursorSkipType" cname="GtkHTMLCursorSkipType" type="enum">
<member cname="GTK_HTML_CURSOR_SKIP_ONE" name="One"/>
<member cname="GTK_HTML_CURSOR_SKIP_WORD" name="Word"/>
<member cname="GTK_HTML_CURSOR_SKIP_PAGE" name="Page"/>
<member cname="GTK_HTML_CURSOR_SKIP_ALL" name="All"/>
</enum>
<enum name="HTMLEditorEventType" cname="GtkHTMLEditorEventType" type="enum">
<member cname="GTK_HTML_EDITOR_EVENT_COMMAND_BEFORE" name="CommandBefore"/>
<member cname="GTK_HTML_EDITOR_EVENT_COMMAND_AFTER" name="CommandAfter"/>
<member cname="GTK_HTML_EDITOR_EVENT_IMAGE_URL" name="ImageUrl"/>
<member cname="GTK_HTML_EDITOR_EVENT_DELETE" name="Delete"/>
</enum>
<enum name="HTMLEtchStyle" cname="GtkHTMLEtchStyle" type="enum">
<member cname="GTK_HTML_ETCH_IN" name="In"/>
<member cname="GTK_HTML_ETCH_OUT" name="Out"/>
<member cname="GTK_HTML_ETCH_NONE" name="None"/>
</enum>
<enum name="HTMLFontStyle" cname="GtkHTMLFontStyle" type="flags">
<member cname="GTK_HTML_FONT_STYLE_DEFAULT" name="Default"/>
<member cname="GTK_HTML_FONT_STYLE_SIZE_1" name="Size1" value="1"/>
<member cname="GTK_HTML_FONT_STYLE_SIZE_2" name="Size2" value="2"/>
<member cname="GTK_HTML_FONT_STYLE_SIZE_3" name="Size3" value="3"/>
<member cname="GTK_HTML_FONT_STYLE_SIZE_4" name="Size4" value="4"/>
<member cname="GTK_HTML_FONT_STYLE_SIZE_5" name="Size5" value="5"/>
<member cname="GTK_HTML_FONT_STYLE_SIZE_6" name="Size6" value="6"/>
<member cname="GTK_HTML_FONT_STYLE_SIZE_7" name="Size7" value="7"/>
<member cname="GTK_HTML_FONT_STYLE_SIZE_MASK" name="SizeMask" value="0x7"/>
<member cname="GTK_HTML_FONT_STYLE_BOLD" name="Bold" value="1 &lt;&lt; 3"/>
<member cname="GTK_HTML_FONT_STYLE_ITALIC" name="Italic" value="1 &lt;&lt; 4"/>
<member cname="GTK_HTML_FONT_STYLE_UNDERLINE" name="Underline" value="1 &lt;&lt; 5"/>
<member cname="GTK_HTML_FONT_STYLE_STRIKEOUT" name="Strikeout" value="1 &lt;&lt; 6"/>
<member cname="GTK_HTML_FONT_STYLE_FIXED" name="Fixed" value="1 &lt;&lt; 7"/>
<member cname="GTK_HTML_FONT_STYLE_SUBSCRIPT" name="Subscript" value="1 &lt;&lt; 8"/>
<member cname="GTK_HTML_FONT_STYLE_SUPERSCRIPT" name="Superscript" value="1 &lt;&lt; 9"/>
</enum>
<enum name="HTMLParagraphAlignment" cname="GtkHTMLParagraphAlignment" type="enum">
<member cname="GTK_HTML_PARAGRAPH_ALIGNMENT_LEFT" name="Left"/>
<member cname="GTK_HTML_PARAGRAPH_ALIGNMENT_RIGHT" name="Right"/>
<member cname="GTK_HTML_PARAGRAPH_ALIGNMENT_CENTER" name="Center"/>
</enum>
<enum name="HTMLParagraphStyle" cname="GtkHTMLParagraphStyle" type="enum">
<member cname="GTK_HTML_PARAGRAPH_STYLE_NORMAL" name="Normal"/>
<member cname="GTK_HTML_PARAGRAPH_STYLE_H1" name="H1"/>
<member cname="GTK_HTML_PARAGRAPH_STYLE_H2" name="H2"/>
<member cname="GTK_HTML_PARAGRAPH_STYLE_H3" name="H3"/>
<member cname="GTK_HTML_PARAGRAPH_STYLE_H4" name="H4"/>
<member cname="GTK_HTML_PARAGRAPH_STYLE_H5" name="H5"/>
<member cname="GTK_HTML_PARAGRAPH_STYLE_H6" name="H6"/>
<member cname="GTK_HTML_PARAGRAPH_STYLE_ADDRESS" name="Address"/>
<member cname="GTK_HTML_PARAGRAPH_STYLE_PRE" name="Pre"/>
<member cname="GTK_HTML_PARAGRAPH_STYLE_ITEMDOTTED" name="Itemdotted"/>
<member cname="GTK_HTML_PARAGRAPH_STYLE_ITEMROMAN" name="Itemroman"/>
<member cname="GTK_HTML_PARAGRAPH_STYLE_ITEMDIGIT" name="Itemdigit"/>
<member cname="GTK_HTML_PARAGRAPH_STYLE_ITEMALPHA" name="Itemalpha"/>
</enum>
<enum name="HTMLStreamStatus" cname="GtkHTMLStreamStatus" type="enum">
<member cname="GTK_HTML_STREAM_OK" name="Ok"/>
<member cname="GTK_HTML_STREAM_ERROR" name="Error"/>
</enum>
<callback name="HTMLPrintCallback" cname="GtkHTMLPrintCallback">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="GnomePrintContext*" name="print_context"/>
<parameter type="gdouble" name="x"/>
<parameter type="gdouble" name="y"/>
<parameter type="gdouble" name="width"/>
<parameter type="gdouble" name="height"/>
<parameter type="gpointer" name="user_data"/>
</parameters>
</callback>
<callback name="HTMLSaveReceiverFn" cname="GtkHTMLSaveReceiverFn">
<return-type type="gboolean"/>
<parameters>
<parameter type="gpointer" name="engine"/>
<parameter type="const-gchar*" name="data"/>
<parameter type="size_t" name="len"/>
<parameter type="gpointer" name="user_data"/>
</parameters>
</callback>
<callback name="HTMLStreamCloseFunc" cname="GtkHTMLStreamCloseFunc">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTMLStream*" name="stream"/>
<parameter type="GtkHTMLStreamStatus" name="status"/>
<parameter type="gpointer" name="user_data"/>
</parameters>
</callback>
<callback name="HTMLStreamTypesFunc" cname="GtkHTMLStreamTypesFunc">
<return-type type="char**"/>
<parameters>
<parameter type="GtkHTMLStream*" name="stream"/>
<parameter type="gpointer" name="user_data"/>
</parameters>
</callback>
<callback name="HTMLStreamWriteFunc" cname="GtkHTMLStreamWriteFunc">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTMLStream*" name="stream"/>
<parameter type="const-gchar*" name="buffer"/>
<parameter type="size_t" name="size"/>
<parameter type="gpointer" name="user_data"/>
</parameters>
</callback>
<object name="HTML" cname="GtkHTML" parent="GtkLayout">
<field cname="editor_bindings" type="GtkBindingSet*"/>
<field cname="iframe_parent" type="GtkWidget*"/>
<field cname="frame" type="HTMLObject*"/>
<field cname="editor_api" type="GtkHTMLEditorAPI*"/>
<field cname="editor_data" type="gpointer"/>
<field cname="engine" type="HTMLEngine*"/>
<field cname="pointer_url" type="gchar*"/>
<field cname="hand_cursor" type="GdkCursor*"/>
<field cname="arrow_cursor" type="GdkCursor*"/>
<field cname="ibeam_cursor" type="GdkCursor*"/>
<field cname="selection_x1" type="gint"/>
<field cname="selection_y1" type="gint"/>
<field cname="in_selection" bits="1" type="guint"/>
<field cname="button1_pressed" bits="1" type="guint"/>
<field cname="debug" bits="1" type="guint"/>
<field cname="allow_selection" bits="1" type="guint"/>
<field cname="hadj_connection" type="guint"/>
<field cname="vadj_connection" type="guint"/>
<field cname="binding_handled" type="gboolean"/>
<field cname="priv" type="GtkHTMLPrivate*"/>
<signal name="TitleChanged" cname="title_changed" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="const-gchar*" name="new_title"/>
</parameters>
</signal>
<signal name="UrlRequested" cname="url_requested" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="const-gchar*" name="url"/>
<parameter type="GtkHTMLStream*" name="handle"/>
</parameters>
</signal>
<signal name="LoadDone" cname="load_done" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
</parameters>
</signal>
<signal name="LinkClicked" cname="link_clicked" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="const-gchar*" name="url"/>
</parameters>
</signal>
<signal name="SetBase" cname="set_base" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="const-gchar*" name="base_url"/>
</parameters>
</signal>
<signal name="SetBaseTarget" cname="set_base_target" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="const-gchar*" name="base_url"/>
</parameters>
</signal>
<signal name="OnUrl" cname="on_url" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="const-gchar*" name="url"/>
</parameters>
</signal>
<signal name="Redirect" cname="redirect" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="const-gchar*" name="url"/>
<parameter type="int" name="delay"/>
</parameters>
</signal>
<signal name="Submit" cname="submit" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="const-gchar*" name="method"/>
<parameter type="const-gchar*" name="url"/>
<parameter type="const-gchar*" name="encoding"/>
</parameters>
</signal>
<signal name="ObjectRequested" cname="object_requested" when="LAST">
<return-type type="gboolean"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="*" name=""/>
</parameters>
</signal>
<signal name="CurrentParagraphStyleChanged" cname="current_paragraph_style_changed" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="GtkHTMLParagraphStyle" name="new_style"/>
</parameters>
</signal>
<signal name="CurrentParagraphIndentationChanged" cname="current_paragraph_indentation_changed" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="guint" name="new_indentation"/>
</parameters>
</signal>
<signal name="CurrentParagraphAlignmentChanged" cname="current_paragraph_alignment_changed" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="GtkHTMLParagraphAlignment" name="new_alignment"/>
</parameters>
</signal>
<signal name="InsertionFontStyleChanged" cname="insertion_font_style_changed" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="GtkHTMLFontStyle" name="style"/>
</parameters>
</signal>
<signal name="InsertionColorChanged" cname="insertion_color_changed" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="GdkColor*" name="color"/>
</parameters>
</signal>
<signal name="SizeChanged" cname="size_changed" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
</parameters>
</signal>
<signal name="IframeCreated" cname="iframe_created" when="FIRST">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="GtkHTML*" name="iframe"/>
</parameters>
</signal>
<signal name="Scroll" cname="scroll" when="LAST">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="GtkOrientation" name="orientation"/>
<parameter type="GtkScrollType" name="scroll_type"/>
<parameter type="gfloat" name="position"/>
</parameters>
</signal>
<signal name="CursorMove" cname="cursor_move" when="LAST">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="GtkDirectionType" name="dir_type"/>
<parameter type="GtkHTMLCursorSkipType" name="skip"/>
</parameters>
</signal>
<signal name="OnCommand" cname="command" when="LAST">
<return-type type="gboolean"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="GtkHTMLCommandType" name="com_type"/>
</parameters>
</signal>
<method name="AllowSelection" cname="gtk_html_allow_selection">
<return-type type="void"/>
<parameters>
<parameter type="gboolean" name="allow"/>
</parameters>
</method>
<method name="AppendHtml" cname="gtk_html_append_html">
<return-type type="void"/>
<parameters>
<parameter type="const-gchar*" name="html_src"/>
</parameters>
</method>
<method name="Begin" cname="gtk_html_begin">
<return-type type="GtkHTMLStream*"/>
</method>
<method name="BeginContent" cname="gtk_html_begin_content">
<return-type type="GtkHTMLStream*"/>
<parameters>
<parameter type="gchar*" name="content_type"/>
</parameters>
</method>
<method name="BuildWithGconf" cname="gtk_html_build_with_gconf" shared="true">
<return-type type="gboolean"/>
</method>
<method name="Command" cname="gtk_html_command">
<return-type type="gboolean"/>
<parameters>
<parameter type="const-gchar*" name="command_name"/>
</parameters>
</method>
<method name="Construct" cname="gtk_html_construct" shared="true">
<return-type type="void"/>
<parameters>
<parameter type="GtkWidget*" name="html"/>
</parameters>
</method>
<method name="Copy" cname="gtk_html_copy">
<return-type type="void"/>
</method>
<method name="Cut" cname="gtk_html_cut">
<return-type type="void"/>
</method>
<method name="DropUndo" cname="gtk_html_drop_undo">
<return-type type="void"/>
</method>
<method name="EditMakeCursorVisible" cname="gtk_html_edit_make_cursor_visible">
<return-type type="gboolean"/>
</method>
<method name="EnableDebug" cname="gtk_html_enable_debug">
<return-type type="void"/>
<parameters>
<parameter type="gboolean" name="debug"/>
</parameters>
</method>
<method name="End" cname="gtk_html_end">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTMLStream*" name="handle"/>
<parameter type="GtkHTMLStreamStatus" name="status"/>
</parameters>
</method>
<method name="Export" cname="gtk_html_export">
<return-type type="gboolean"/>
<parameters>
<parameter type="const-char*" name="type"/>
<parameter type="GtkHTMLSaveReceiverFn" name="receiver"/>
<parameter type="gpointer" name="data"/>
</parameters>
</method>
<method name="GetAllowFrameset" cname="gtk_html_get_allow_frameset">
<return-type type="gboolean"/>
</method>
<method name="GetBase" cname="gtk_html_get_base">
<return-type type="const-char*"/>
</method>
<method name="GetEditable" cname="gtk_html_get_editable">
<return-type type="gboolean"/>
</method>
<method name="GetObjectById" cname="gtk_html_get_object_by_id">
<return-type type="gpointer"/>
<parameters>
<parameter type="const-gchar*" name="id"/>
</parameters>
</method>
<method name="GetParagraphAlignment" cname="gtk_html_get_paragraph_alignment">
<return-type type="GtkHTMLParagraphAlignment"/>
</method>
<method name="GetParagraphStyle" cname="gtk_html_get_paragraph_style">
<return-type type="GtkHTMLParagraphStyle"/>
</method>
<method name="GetTitle" cname="gtk_html_get_title">
<return-type type="const-gchar*"/>
</method>
<method name="GetType" cname="gtk_html_get_type" shared="true">
<return-type type="GtkType"/>
</method>
<method name="GetUrlBaseRelative" cname="gtk_html_get_url_base_relative">
<return-type type="char*"/>
<parameters>
<parameter type="const-char*" name="url"/>
</parameters>
</method>
<method name="GetUrlObjectRelative" cname="gtk_html_get_url_object_relative">
<return-type type="char*"/>
<parameters>
<parameter type="HTMLObject*" name="o"/>
<parameter type="const-char*" name="url"/>
</parameters>
</method>
<method name="HasUndo" cname="gtk_html_has_undo">
<return-type type="gboolean"/>
</method>
<method name="ImagePreload" cname="gtk_html_image_preload">
<return-type type="void"/>
<parameters>
<parameter type="const-gchar*" name="url"/>
</parameters>
</method>
<method name="ImageRef" cname="gtk_html_image_ref">
<return-type type="void"/>
<parameters>
<parameter type="const-gchar*" name="url"/>
</parameters>
</method>
<method name="ImageUnref" cname="gtk_html_image_unref">
<return-type type="void"/>
<parameters>
<parameter type="const-gchar*" name="url"/>
</parameters>
</method>
<method name="ImagesRef" cname="gtk_html_images_ref">
<return-type type="void"/>
</method>
<method name="ImagesUnref" cname="gtk_html_images_unref">
<return-type type="void"/>
</method>
<method name="InsertGtkHtml" cname="gtk_html_insert_gtk_html">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="to_be_destroyed"/>
</parameters>
</method>
<method name="InsertHtml" cname="gtk_html_insert_html">
<return-type type="void"/>
<parameters>
<parameter type="const-gchar*" name="html_src"/>
</parameters>
</method>
<method name="JumpToAnchor" cname="gtk_html_jump_to_anchor">
<return-type type="gboolean"/>
<parameters>
<parameter type="const-gchar*" name="anchor"/>
</parameters>
</method>
<method name="LoadEmpty" cname="gtk_html_load_empty">
<return-type type="void"/>
</method>
<method name="LoadFromString" cname="gtk_html_load_from_string">
<return-type type="void"/>
<parameters>
<parameter type="const-gchar*" name="str"/>
<parameter type="gint" name="len"/>
</parameters>
</method>
<method name="ModifyIndentByDelta" cname="gtk_html_modify_indent_by_delta">
<return-type type="void"/>
<parameters>
<parameter type="gint" name="delta"/>
</parameters>
</method>
<constructor cname="gtk_html_new"/>
<constructor cname="gtk_html_new_from_string">
<parameters>
<parameter type="const-gchar*" name="str"/>
<parameter type="gint" name="len"/>
</parameters>
</constructor>
<method name="Paste" cname="gtk_html_paste">
<return-type type="void"/>
</method>
<method name="Print" cname="gtk_html_print">
<return-type type="void"/>
<parameters>
<parameter type="GnomePrintContext*" name="print_context"/>
</parameters>
</method>
<method name="PrintGetPagesNum" cname="gtk_html_print_get_pages_num">
<return-type type="gint"/>
<parameters>
<parameter type="GnomePrintContext*" name="print_context"/>
<parameter type="gdouble" name="header_height"/>
<parameter type="gdouble" name="footer_height"/>
</parameters>
</method>
<method name="PrintSetMaster" cname="gtk_html_print_set_master">
<return-type type="void"/>
<parameters>
<parameter type="GnomePrintMaster*" name="print_master"/>
</parameters>
</method>
<method name="PrintWithHeaderFooter" cname="gtk_html_print_with_header_footer">
<return-type type="void"/>
<parameters>
<parameter type="GnomePrintContext*" name="print_context"/>
<parameter type="gdouble" name="header_height"/>
<parameter type="gdouble" name="footer_height"/>
<parameter type="GtkHTMLPrintCallback" name="header_print"/>
<parameter type="GtkHTMLPrintCallback" name="footer_print"/>
<parameter type="gpointer" name="user_data"/>
</parameters>
</method>
<method name="Redo" cname="gtk_html_redo">
<return-type type="void"/>
</method>
<method name="RequestPaste" cname="gtk_html_request_paste">
<return-type type="int"/>
<parameters>
<parameter type="GdkAtom" name="selection"/>
<parameter type="gint" name="type"/>
<parameter type="gint32" name="time"/>
</parameters>
</method>
<method name="Save" cname="gtk_html_save">
<return-type type="gboolean"/>
<parameters>
<parameter type="GtkHTMLSaveReceiverFn" name="receiver"/>
<parameter type="gpointer" name="data"/>
</parameters>
</method>
<method name="SelectAll" cname="gtk_html_select_all">
<return-type type="void"/>
</method>
<method name="SelectLine" cname="gtk_html_select_line">
<return-type type="void"/>
</method>
<method name="SelectParagraph" cname="gtk_html_select_paragraph">
<return-type type="void"/>
</method>
<method name="SelectParagraphExtended" cname="gtk_html_select_paragraph_extended">
<return-type type="void"/>
</method>
<method name="SelectWord" cname="gtk_html_select_word">
<return-type type="void"/>
</method>
<method name="SetAllowFrameset" cname="gtk_html_set_allow_frameset">
<return-type type="void"/>
<parameters>
<parameter type="gboolean" name="allow"/>
</parameters>
</method>
<method name="SetBase" cname="gtk_html_set_base">
<return-type type="void"/>
<parameters>
<parameter type="const-char*" name="url"/>
</parameters>
</method>
<method name="SetBlocking" cname="gtk_html_set_blocking">
<return-type type="void"/>
<parameters>
<parameter type="gboolean" name="block"/>
</parameters>
</method>
<method name="SetColor" cname="gtk_html_set_color">
<return-type type="void"/>
<parameters>
<parameter type="HTMLColor*" name="color"/>
</parameters>
</method>
<method name="SetDefaultBackgroundColor" cname="gtk_html_set_default_background_color">
<return-type type="void"/>
<parameters>
<parameter type="GdkColor*" name="c"/>
</parameters>
</method>
<method name="SetDefaultContentType" cname="gtk_html_set_default_content_type">
<return-type type="void"/>
<parameters>
<parameter type="gchar*" name="content_type"/>
</parameters>
</method>
<method name="SetEditable" cname="gtk_html_set_editable">
<return-type type="void"/>
<parameters>
<parameter type="gboolean" name="editable"/>
</parameters>
</method>
<method name="SetEditorApi" cname="gtk_html_set_editor_api">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTMLEditorAPI*" name="api"/>
<parameter type="gpointer" name="data"/>
</parameters>
</method>
<method name="SetFontStyle" cname="gtk_html_set_font_style">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTMLFontStyle" name="and_mask"/>
<parameter type="GtkHTMLFontStyle" name="or_mask"/>
</parameters>
</method>
<method name="SetIframeParent" cname="gtk_html_set_iframe_parent">
<return-type type="void"/>
<parameters>
<parameter type="GtkWidget*" name="parent"/>
<parameter type="HTMLObject*" name="frame"/>
</parameters>
</method>
<method name="SetIndent" cname="gtk_html_set_indent">
<return-type type="void"/>
<parameters>
<parameter type="gint" name="level"/>
</parameters>
</method>
<method name="SetMagnification" cname="gtk_html_set_magnification">
<return-type type="void"/>
<parameters>
<parameter type="gdouble" name="magnification"/>
</parameters>
</method>
<method name="SetParagraphAlignment" cname="gtk_html_set_paragraph_alignment">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTMLParagraphAlignment" name="alignment"/>
</parameters>
</method>
<method name="SetParagraphStyle" cname="gtk_html_set_paragraph_style">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTMLParagraphStyle" name="style"/>
</parameters>
</method>
<method name="SetTitle" cname="gtk_html_set_title">
<return-type type="void"/>
<parameters>
<parameter type="const-char*" name="title"/>
</parameters>
</method>
<method name="ToggleFontStyle" cname="gtk_html_toggle_font_style">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTMLFontStyle" name="style"/>
</parameters>
</method>
<method name="Undo" cname="gtk_html_undo">
<return-type type="void"/>
</method>
<method name="UpdateStyles" cname="gtk_html_update_styles">
<return-type type="void"/>
</method>
<method name="Write" cname="gtk_html_write">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTMLStream*" name="handle"/>
<parameter type="const-gchar*" name="buffer"/>
<parameter type="size_t" name="size"/>
</parameters>
</method>
<method name="ZoomIn" cname="gtk_html_zoom_in">
<return-type type="void"/>
</method>
<method name="ZoomOut" cname="gtk_html_zoom_out">
<return-type type="void"/>
</method>
<method name="ZoomReset" cname="gtk_html_zoom_reset">
<return-type type="void"/>
</method>
</object>
<struct name="HTMLClassProperties" cname="GtkHTMLClassProperties" opaque="true"/>
<struct name="HTMLEditorAPI" cname="GtkHTMLEditorAPI">
<callback cname="check_word">
<return-type type="gboolean"/>
<parameters>
<parameter type="GtkHTML*" name="html,"/>
</parameters>
</callback>
<callback cname="suggestion_request">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html,"/>
</parameters>
</callback>
<callback cname="add_to_session">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html,"/>
</parameters>
</callback>
<callback cname="add_to_personal">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html,"/>
</parameters>
</callback>
<callback cname="command">
<return-type type="gboolean"/>
<parameters>
<parameter type="GtkHTML*" name="html,"/>
</parameters>
</callback>
<callback cname="event">
<return-type type="GValue*"/>
<parameters>
<parameter type="GtkHTML*" name="html,"/>
</parameters>
</callback>
<callback cname="create_input_line">
<return-type type="GtkWidget*"/>
<parameters>
<parameter type="GtkHTML*" name="html,"/>
</parameters>
</callback>
<callback cname="set_language">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTML*" name="html,"/>
</parameters>
</callback>
</struct>
<struct name="HTMLEmbedded" cname="GtkHTMLEmbedded" opaque="true"/>
<struct name="HTMLEmbeddedClass" cname="GtkHTMLEmbeddedClass" opaque="true"/>
<struct name="HTMLStream" cname="GtkHTMLStream">
<field cname="write_func" type="GtkHTMLStreamWriteFunc"/>
<field cname="close_func" type="GtkHTMLStreamCloseFunc"/>
<field cname="types_func" type="GtkHTMLStreamTypesFunc"/>
<field cname="user_data" type="gpointer"/>
<method name="Close" cname="gtk_html_stream_close">
<return-type type="void"/>
<parameters>
<parameter type="GtkHTMLStreamStatus" name="status"/>
</parameters>
</method>
<method name="Destroy" cname="gtk_html_stream_destroy">
<return-type type="void"/>
</method>
<method name="GetTypes" cname="gtk_html_stream_get_types">
<return-type type="char**"/>
</method>
<method name="LogNew" cname="gtk_html_stream_log_new" shared="true">
<return-type type="GtkHTMLStream*"/>
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="GtkHTMLStream*" name="stream"/>
</parameters>
</method>
<constructor cname="gtk_html_stream_new">
<parameters>
<parameter type="GtkHTML*" name="html"/>
<parameter type="GtkHTMLStreamTypesFunc" name="type_func"/>
<parameter type="GtkHTMLStreamWriteFunc" name="write_func"/>
<parameter type="GtkHTMLStreamCloseFunc" name="close_func"/>
<parameter type="gpointer" name="user_data"/>
</parameters>
</constructor>
<method name="Printf" cname="gtk_html_stream_printf">
<return-type type="int"/>
<parameters>
<parameter type="const-char*" name="format"/>
<parameter ellipsis="true"/>
</parameters>
</method>
<method name="Vprintf" cname="gtk_html_stream_vprintf">
<return-type type="int"/>
<parameters>
<parameter type="const-char*" name="format"/>
<parameter type="va_list" name="ap"/>
</parameters>
</method>
<method name="Write" cname="gtk_html_stream_write">
<return-type type="void"/>
<parameters>
<parameter type="const-gchar*" name="buffer"/>
<parameter type="size_t" name="size"/>
</parameters>
</method>
</struct>
</namespace>
</api>

5
api/gtk-symbols.xml Normal file
View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<api>
<symbol type="simple" cname="GtkType" name="int"/>
</api>

27
api/makefile Normal file
View file

@ -0,0 +1,27 @@
APIS = \
atk-api.xml \
pango-api.xml \
gdk-api.xml \
gdk-symbols.xml \
gtk-api.xml \
gtk-symbols.xml \
glade-api.xml \
art-api.xml \
gnome-api.xml
RUNTIME=mono
all: generated-stamp
generated-stamp: $(APIS) ../generator/gapi_codegen.exe
$(RUNTIME)../generator/gapi_codegen.exe --generate $(APIS) && touch generated-stamp
clean:
prefix=/usr
apidir = $(DESTDIR)$(prefix)/share/gapi
install: all
../mkinstalldirs $(apidir)
cp $(APIS) $(apidir)

1507
api/pango-api.xml Normal file

File diff suppressed because it is too large Load diff

View file

@ -13,7 +13,7 @@ art-sharp.dll: generated/*.cs
clean:
rm -f *.dll
rm -f generated/*
rm -f generated/*.cs
install: all
cp art-sharp.dll $(DESTDIR)@prefix@/lib

View file

@ -16,6 +16,9 @@ namespace GtkSharp.Generation {
public override void Generate ()
{
if (!DoGenerate)
return;
base.Generate ();
Statistics.BoxedCount++;
}

View file

@ -51,6 +51,9 @@ namespace GtkSharp.Generation {
public void Generate ()
{
if (!DoGenerate)
return;
XmlElement ret_elem = Elem["return-type"];
if (ret_elem == null) {
Console.WriteLine("No return type in callback " + CName);

View file

@ -14,13 +14,25 @@ namespace GtkSharp.Generation {
public static int Main (string[] args)
{
if (args.Length != 1) {
Console.WriteLine ("Usage: codegen <filename>");
if (args.Length < 2) {
Console.WriteLine ("Usage: codegen --generate <filename1...>");
return 0;
}
Parser p = new Parser (args[0]);
p.Parse ();
bool generate = false;
foreach (string arg in args) {
if (arg == "--generate") {
generate = true;
continue;
} else if (arg == "--include") {
generate = false;
continue;
}
Parser p = new Parser (arg);
p.Parse (generate);
}
Console.WriteLine (SymbolTable.Count + " types parsed.");
foreach (IGeneratable gen in SymbolTable.Generatables) {

View file

@ -44,6 +44,9 @@ namespace GtkSharp.Generation {
public void Generate ()
{
if (!DoGenerate)
return;
StreamWriter sw = CreateWriter ();
if (Elem.GetAttribute("type") == "flags") {

View file

@ -14,6 +14,7 @@ namespace GtkSharp.Generation {
private XmlElement ns;
private XmlElement elem;
private bool do_generate;
protected GenBase (XmlElement ns, XmlElement elem)
{
@ -57,6 +58,11 @@ namespace GtkSharp.Generation {
}
}
public bool DoGenerate {
get { return do_generate; }
set { do_generate = value; }
}
protected StreamWriter CreateWriter ()
{
char sep = Path.DirectorySeparatorChar;

View file

@ -26,6 +26,8 @@ namespace GtkSharp.Generation {
String FromNativeReturn (String var);
bool DoGenerate {get;set;}
void Generate ();
}
}

View file

@ -16,6 +16,9 @@ namespace GtkSharp.Generation {
public void Generate ()
{
if (!DoGenerate)
return;
StreamWriter sw = CreateWriter ();
sw.WriteLine ("\tusing System;");

View file

@ -9,15 +9,23 @@ namespace GtkSharp.Generation {
using System;
using System.Collections;
using System.IO;
using System.Text;
using System.Xml;
public class ObjectGen : ClassBase, IGeneratable {
private ArrayList strings = new ArrayList();
private static Hashtable objs = new Hashtable();
private static Hashtable namespaces = new Hashtable ();
public ObjectGen (XmlElement ns, XmlElement elem) : base (ns, elem)
{
Hashtable objs;
if (namespaces.ContainsKey (NS))
objs = (Hashtable) namespaces[NS];
else {
objs = new Hashtable();
namespaces.Add (NS, objs);
}
objs.Add (CName, QualifiedName + "," + NS.ToLower() + "-sharp");
foreach (XmlNode node in elem.ChildNodes) {
@ -45,6 +53,9 @@ namespace GtkSharp.Generation {
public void Generate ()
{
if (!DoGenerate)
return;
StreamWriter sw = CreateWriter ();
sw.WriteLine ("\tusing System;");
@ -180,66 +191,80 @@ namespace GtkSharp.Generation {
base.GenCtors (sw);
}
/* Keep this in sync with the one in glib/ObjectManager.cs */
static string GetExpected (string cname)
{
StringBuilder expected = new StringBuilder ();
string ns = "";
bool needs_dot = true;
for (int i = 0; i < cname.Length; i++)
{
if (needs_dot && i > 0 && Char.IsUpper (cname[i])) {
ns = expected.ToString ().ToLower ();
expected.Append ('.');
needs_dot = false;
}
expected.Append (cname[i]);
}
expected.AppendFormat (",{0}-sharp", ns);
return expected.ToString ();
}
public static void GenerateMapper ()
{
char sep = Path.DirectorySeparatorChar;
string dir = ".." + sep + "glib" + sep + "generated";
if (!Directory.Exists(dir)) {
foreach (string ns in namespaces.Keys) {
Hashtable objs = (Hashtable) namespaces[ns];
bool needs_map = false;
foreach (string key in objs.Keys) {
string expected = GetExpected (key);
if (expected != ((string) objs[key])) {
needs_map = true;
}
}
if (!needs_map)
continue;
char sep = Path.DirectorySeparatorChar;
string dir = ".." + sep + ns.ToLower () + sep + "generated";
if (!Directory.Exists(dir)) {
Console.WriteLine ("creating " + dir);
Directory.CreateDirectory(dir);
Directory.CreateDirectory(dir);
}
String filename = dir + sep + "ObjectManager.cs";
FileStream stream = new FileStream (filename, FileMode.Create, FileAccess.Write);
StreamWriter sw = new StreamWriter (stream);
sw.WriteLine ("// Generated File. Do not modify.");
sw.WriteLine ("// <c> 2001-2002 Mike Kestner");
sw.WriteLine ();
sw.WriteLine ("namespace GtkSharp {");
sw.WriteLine ();
sw.WriteLine ("\tnamespace " + ns + " {");
sw.WriteLine ();
sw.WriteLine ("\tpublic class ObjectManager {");
sw.WriteLine ();
sw.WriteLine ("\t\t// Call this method from the appropriate module init function.");
sw.WriteLine ("\t\tpublic static void Initialize ()");
sw.WriteLine ("\t\t{");
foreach (string key in objs.Keys) {
string expected = GetExpected (key);
if (expected != ((string) objs[key])) {
sw.WriteLine ("\t\t\tGtkSharp.ObjectManager.RegisterType(\"" + key + "\", \"" + objs[key] + "\");");
}
}
sw.WriteLine ("\t\t}");
sw.WriteLine ("\t}");
sw.WriteLine ("}");
sw.WriteLine ("}");
sw.Flush ();
sw.Close ();
}
String filename = dir + sep + "ObjectManager.cs";
FileStream stream = new FileStream (filename, FileMode.Create, FileAccess.Write);
StreamWriter sw = new StreamWriter (stream);
sw.WriteLine ("// Generated File. Do not modify.");
sw.WriteLine ("// <c> 2001-2002 Mike Kestner");
sw.WriteLine ();
sw.WriteLine ("namespace GtkSharp {");
sw.WriteLine ();
sw.WriteLine ("\tusing System;");
sw.WriteLine ("\tusing System.Collections;");
sw.WriteLine ("\tusing System.Runtime.InteropServices;");
sw.WriteLine ();
sw.WriteLine ("\tpublic class ObjectManager {");
sw.WriteLine ();
sw.WriteLine ("\t\tprivate static Hashtable types = new Hashtable ();");
sw.WriteLine ();
sw.WriteLine ("\t\tstatic ObjectManager ()");
sw.WriteLine ("\t\t{");
foreach (string key in objs.Keys) {
sw.WriteLine ("\t\t\t\ttypes.Add(\"" + key + "\", \"" + objs[key] + "\");");
}
sw.WriteLine ("\t\t}");
sw.WriteLine ();
sw.WriteLine ("\t\t[DllImport(\"gtksharpglue\")]");
sw.WriteLine ("\t\tstatic extern string gtksharp_get_type_name (IntPtr raw);");
sw.WriteLine ();
sw.WriteLine ("\t\tpublic static GLib.Object CreateObject (IntPtr raw)");
sw.WriteLine ("\t\t{");
sw.WriteLine ("\t\t\tif (raw == IntPtr.Zero)");
sw.WriteLine ("\t\t\t\treturn null;");
sw.WriteLine ();
sw.WriteLine ("\t\t\tstring typename = gtksharp_get_type_name (raw);");
sw.WriteLine ("\t\t\tif (!types.ContainsKey(typename))");
sw.WriteLine ("\t\t\t\treturn null;");
sw.WriteLine ();
sw.WriteLine ("\t\t\tType t = Type.GetType ((string)types[typename]);");
sw.WriteLine ("\t\t\treturn (GLib.Object) Activator.CreateInstance (t, new object[] {raw});");
sw.WriteLine ("\t\t}");
sw.WriteLine ();
sw.WriteLine ("\t\tpublic static void RegisterType (string native_name, string managed_name, string assembly)");
sw.WriteLine ("\t\t{");
sw.WriteLine ("\t\t\ttypes.Add(native_name, managed_name + \",\" + assembly);");
sw.WriteLine ("\t\t}");
sw.WriteLine ("\t}");
sw.WriteLine ("}");
sw.Flush ();
sw.Close ();
}
}
}

View file

@ -29,6 +29,9 @@ namespace GtkSharp.Generation {
public void Generate ()
{
if (!DoGenerate)
return;
StreamWriter sw = CreateWriter ();
sw.WriteLine ("\tusing System;");

View file

@ -30,7 +30,7 @@ namespace GtkSharp.Generation {
}
public void Parse ()
public void Parse (bool generate)
{
XmlElement root = doc.DocumentElement;
@ -40,16 +40,18 @@ namespace GtkSharp.Generation {
}
foreach (XmlNode ns in root.ChildNodes) {
if (!(ns is XmlElement) || ns.Name != "namespace") {
XmlElement elem = ns as XmlElement;
if (elem == null)
continue;
}
XmlElement elem = (XmlElement) ns;
ParseNamespace (elem);
if (ns.Name == "namespace")
ParseNamespace (elem, generate);
else if (ns.Name == "symbol")
ParseSymbol (elem);
}
}
private void ParseNamespace (XmlElement ns)
private void ParseNamespace (XmlElement ns, bool generate)
{
String ns_name = ns.GetAttribute ("name");
@ -60,6 +62,7 @@ namespace GtkSharp.Generation {
}
XmlElement elem = (XmlElement) def;
IGeneratable igen = null;
switch (def.Name) {
@ -73,39 +76,58 @@ namespace GtkSharp.Generation {
case "boxed":
if (elem.HasAttribute ("opaque"))
SymbolTable.AddType (new OpaqueGen (ns, elem));
igen = new OpaqueGen (ns, elem);
else
SymbolTable.AddType (new BoxedGen (ns, elem));
igen = new BoxedGen (ns, elem);
break;
case "callback":
SymbolTable.AddType (new CallbackGen (ns, elem));
igen = new CallbackGen (ns, elem);
break;
case "enum":
SymbolTable.AddType (new EnumGen (ns, elem));
igen = new EnumGen (ns, elem);
break;
case "interface":
SymbolTable.AddType (new InterfaceGen (ns, elem));
igen = new InterfaceGen (ns, elem);
break;
case "object":
SymbolTable.AddType (new ObjectGen (ns, elem));
igen = new ObjectGen (ns, elem);
break;
case "struct":
if (elem.HasAttribute ("opaque"))
SymbolTable.AddType (new OpaqueGen (ns, elem));
igen = new OpaqueGen (ns, elem);
else
SymbolTable.AddType (new StructGen (ns, elem));
igen = new StructGen (ns, elem);
break;
default:
Console.WriteLine ("Unexpected node named " + def.Name);
break;
}
if (igen != null) {
igen.DoGenerate = generate;
SymbolTable.AddType (igen);
}
}
}
private void ParseSymbol (XmlElement symbol)
{
string type = symbol.GetAttribute ("type");
string cname = symbol.GetAttribute ("cname");
string name = symbol.GetAttribute ("name");
if (type == "simple")
SymbolTable.AddSimpleType (cname, name);
else if (type == "manual")
SymbolTable.AddManualType (cname, name);
else
Console.WriteLine ("Unexpected symbol type " + type);
}
}
}

View file

@ -39,7 +39,7 @@ namespace GtkSharp.Generation {
public bool Validate ()
{
marsh = SignalHandler.GetName(elem);
marsh = SignalHandler.GetName(elem, container_type.NS, container_type.DoGenerate);
if ((Name == "") || (marsh == "")) {
Console.Write ("bad signal " + Name);
Statistics.ThrottledCount++;
@ -77,7 +77,7 @@ namespace GtkSharp.Generation {
private string GetHandlerName (out string argsname)
{
if (marsh == "voidObjectSignal") {
if (marsh.EndsWith (".voidObjectSignal")) {
argsname = "EventArgs";
return "EventHandler";
}
@ -89,7 +89,7 @@ namespace GtkSharp.Generation {
private string GenHandler (out string argsname)
{
string handler = GetHandlerName (out argsname);
if (handler == "EventHandler")
if (handler == "EventHandler" || !container_type.DoGenerate)
return handler;
char sep = Path.DirectorySeparatorChar;

View file

@ -13,9 +13,7 @@ namespace GtkSharp.Generation {
public class SignalHandler {
private static Hashtable handlers = new Hashtable ();
public static String GetName(XmlElement sig)
public static String GetName(XmlElement sig, string ns, bool generate)
{
XmlElement ret_elem = sig["return-type"];
if (ret_elem == null) {
@ -66,7 +64,7 @@ namespace GtkSharp.Generation {
pinv += (ptype + " arg" + pcnt);
parms.Add(type);
if (SymbolTable.IsObject(type)) {
if (SymbolTable.IsObject(type) || SymbolTable.IsInterface(type)) {
name += "Object";
key += "Object";
} else {
@ -76,32 +74,15 @@ namespace GtkSharp.Generation {
pcnt++;
}
if (handlers.ContainsKey(name)) {
return (String) handlers[name];
}
String dir;
char sep = Path.DirectorySeparatorChar;
if (key.IndexOf("Gtk") >= 0) {
dir = ".." + sep + "gtk" + sep + "generated";
} else if (key.IndexOf("Gdk") >= 0) {
dir = ".." + sep + "gdk" + sep + "generated";
} else if (key.IndexOf("Atk") >= 0) {
dir = ".." + sep + "atk" + sep + "generated";
} else if (key.IndexOf("Pango") >= 0) {
dir = ".." + sep + "pango" + sep + "generated";
} else if (key.IndexOf("Gnome") >= 0) {
dir = ".." + sep + "gnome" + sep + "generated";
} else {
dir = ".." + sep + "glib" + sep + "generated";
}
String sname = name + "Signal";
String dname = name + "Delegate";
String cbname = name + "Callback";
handlers[name] = sname;
if (!generate)
return ns + "." + sname;
char sep = Path.DirectorySeparatorChar;
String dir = ".." + sep + ns.ToLower() + sep + "generated";
if (!Directory.Exists(dir)) {
Directory.CreateDirectory(dir);
@ -117,6 +98,8 @@ namespace GtkSharp.Generation {
sw.WriteLine ();
sw.WriteLine("namespace GtkSharp {");
sw.WriteLine();
sw.WriteLine("namespace " + ns + " {");
sw.WriteLine();
sw.WriteLine("\tusing System;");
sw.WriteLine("\tusing System.Runtime.InteropServices;");
sw.WriteLine();
@ -146,9 +129,6 @@ namespace GtkSharp.Generation {
}
for (int idx=1; idx < parms.Count; idx++) {
string ctype = (string) parms[idx];
/* ok, this should do the "create a new wrapper" thing for
* objects as well, but because the signature only
* specifies GObject, we can't. So wait for introspection */
ClassBase wrapper = SymbolTable.GetClassGen (ctype);
if ((wrapper != null && !(wrapper is StructBase)) || SymbolTable.IsManuallyWrapped (ctype)) {
sw.WriteLine("\t\t\tif (arg{0} == IntPtr.Zero)", idx);
@ -209,9 +189,10 @@ namespace GtkSharp.Generation {
sw.WriteLine("\t\t}");
sw.WriteLine("\t}");
sw.WriteLine("}");
sw.WriteLine("}");
sw.Close();
return sname;
return ns + "." + sname;
}
}
}

View file

@ -16,6 +16,9 @@ namespace GtkSharp.Generation {
public override void Generate ()
{
if (!DoGenerate)
return;
base.Generate ();
Statistics.StructCount++;
}

View file

@ -15,7 +15,6 @@ namespace GtkSharp.Generation {
private static Hashtable complex_types = new Hashtable ();
private static Hashtable simple_types;
private static Hashtable manually_wrapped_types;
private static Hashtable dlls;
static SymbolTable ()
{
@ -42,7 +41,6 @@ namespace GtkSharp.Generation {
simple_types.Add ("guint1", "bool");
simple_types.Add ("gpointer", "System.IntPtr");
simple_types.Add ("guchar", "byte");
simple_types.Add ("GtkType", "int");
simple_types.Add ("long", "long");
simple_types.Add ("gulong", "ulong");
simple_types.Add ("GQuark", "int");
@ -71,20 +69,11 @@ namespace GtkSharp.Generation {
simple_types.Add ("GHashTable", "System.IntPtr");
simple_types.Add ("va_list", "System.IntPtr");
simple_types.Add ("GParamSpec", "System.IntPtr");
simple_types.Add ("GdkAtom", "System.IntPtr");
simple_types.Add ("gconstpointer", "System.IntPtr");
manually_wrapped_types = new Hashtable ();
manually_wrapped_types.Add ("GdkEvent", "Gdk.Event");
manually_wrapped_types.Add ("GSList", "GLib.SList");
manually_wrapped_types.Add ("GValue", "GLib.Value");
dlls = new Hashtable();
dlls.Add("Pango", "pango-1.0");
dlls.Add("Atk", "atk-1.0");
dlls.Add("Gdk", "gdk-x11-2.0");
dlls.Add("Gdk.Imaging", "gdk_pixbuf-2.0");
dlls.Add("Gtk", "gtk-x11-2.0");
}
public static void AddAlias (string name, string type)
@ -98,6 +87,16 @@ namespace GtkSharp.Generation {
complex_types [gen.CName] = gen;
}
public static void AddSimpleType (string cname, string name)
{
simple_types.Add (cname, name);
}
public static void AddManualType (string cname, string name)
{
manually_wrapped_types.Add (cname, name);
}
public static int Count {
get
{
@ -149,16 +148,8 @@ namespace GtkSharp.Generation {
else
return gen.FromNative(val);
} else if (manually_wrapped_types.ContainsKey(c_type)) {
// FIXME: better way of handling this?
if (c_type == "GSList") {
return "new GLib.SList (" + val + ")";
} else if (c_type == "GdkEvent") {
return "new Gdk.Event (" + val + ")";
} else if (c_type == "GValue") {
return "new GLib.Value (" + val + ")";
} else {
return "(" + GetCSType (c_type) + ") GLib.Object.GetObject(" + val + ")";
}
string cs_type = (string) manually_wrapped_types[c_type];
return String.Format ("new {0} ({1})", cs_type, val);
} else {
return "";
}

File diff suppressed because it is too large Load diff

View file

@ -7,16 +7,15 @@ windows: *.cs
$(CSC) /unsafe /out:codegen.exe *.cs
./codegen gtkapi.xml
linux: generated-stamp
generated-stamp: codegen.exe gtkapi.xml
$(RUNTIME) ./codegen.exe gtkapi.xml && touch generated-stamp
linux: gapi_codegen.exe
clean:
rm -f *.exe
install: all
@echo "Nothing to install in generator."
prefix=/usr
codegen.exe: *.cs
$(MCS) --unsafe -o codegen.exe -r System.Xml *.cs
install: all
cp gapi_codegen.exe $(DESTDIR)$(prefix)/bin
gapi_codegen.exe: *.cs
$(MCS) --unsafe -o gapi_codegen.exe -r System.Xml *.cs

View file

@ -8,12 +8,11 @@ windows:
linux: glib-sharp.dll
glib-sharp.dll: *.cs generated/*.cs
glib-sharp.dll: *.cs
$(MCS) --unsafe --target library -o glib-sharp.dll --recurse '*.cs'
clean:
rm -f *.dll
rm -f generated/*
install: all
cp glib-sharp.dll $(DESTDIR)@prefix@/lib || exit 1

64
glib/ObjectManager.cs Normal file
View file

@ -0,0 +1,64 @@
// Generated File. Do not modify.
// <c> 2001-2002 Mike Kestner
namespace GtkSharp {
using System;
using System.Collections;
using System.Runtime.InteropServices;
using System.Text;
public class ObjectManager {
private static Hashtable types = new Hashtable ();
[DllImport("gtksharpglue")]
static extern string gtksharp_get_type_name (IntPtr raw);
public static GLib.Object CreateObject (IntPtr raw)
{
if (raw == IntPtr.Zero)
return null;
string typename = gtksharp_get_type_name (raw);
string mangled;
if (types.ContainsKey(typename))
mangled = (string)types[typename];
else
mangled = GetExpected (typename);
Type t = Type.GetType (mangled);
if (t == null)
return null;
return (GLib.Object) Activator.CreateInstance (t, new object[] {raw});
}
public static void RegisterType (string native_name, string managed_name, string assembly)
{
types.Add(native_name, managed_name + "," + assembly);
}
public static void RegisterType (string native_name, string mangled)
{
types.Add(native_name, mangled);
}
static string GetExpected (string cname)
{
StringBuilder expected = new StringBuilder ();
string ns = "";
bool needs_dot = true;
for (int i = 0; i < cname.Length; i++)
{
if (needs_dot && i > 0 && Char.IsUpper (cname[i])) {
ns = expected.ToString ().ToLower ();
expected.Append ('.');
needs_dot = false;
}
expected.Append (cname[i]);
}
expected.AppendFormat (",{0}-sharp", ns);
return expected.ToString ();
}
}
}

View file

@ -12,13 +12,15 @@ BASESOURCES = \
paned.c \
style.c \
type.c \
widget.c \
canvas-proxy.c \
canvas-proxy.h
widget.c
GNOMESOURCES = \
canvasitem.c \
canvaspoints.c \
canvas-proxy.c \
canvas-proxy.h \
canvas-proxy-marshal.c \
canvas-proxy-marshal.h \
program.c
# fixme: Makefile.am = THE SUCK

View file

@ -36,7 +36,7 @@ namespace Gnome {
public event EventHandler Realize {
add {
if (EventList["realize"] == null)
Signals["realize"] = new GtkSharp.voidObjectSignal(this, Handle, "realize", value, System.Type.GetType("EventArgs"));
Signals["realize"] = new GtkSharp.Gtk.voidObjectSignal(this, Handle, "realize", value, System.Type.GetType("EventArgs"));
EventList.AddHandler("realize", value);
}
remove {
@ -49,7 +49,7 @@ namespace Gnome {
public event EventHandler Unrealize {
add {
if (EventList["unrealize"] == null)
Signals["unrealize"] = new GtkSharp.voidObjectSignal(this, Handle, "unrealize", value, System.Type.GetType("EventArgs"));
Signals["unrealize"] = new GtkSharp.Gtk.voidObjectSignal(this, Handle, "unrealize", value, System.Type.GetType("EventArgs"));
EventList.AddHandler("unrealize", value);
}
remove {
@ -62,7 +62,7 @@ namespace Gnome {
public event EventHandler Map {
add {
if (EventList["map"] == null)
Signals["map"] = new GtkSharp.voidObjectSignal(this, Handle, "map", value, System.Type.GetType("EventArgs"));
Signals["map"] = new GtkSharp.Gtk.voidObjectSignal(this, Handle, "map", value, System.Type.GetType("EventArgs"));
EventList.AddHandler("map", value);
}
remove {
@ -75,7 +75,7 @@ namespace Gnome {
public event EventHandler Unmap {
add {
if (EventList["unmap"] == null)
Signals["unmap"] = new GtkSharp.voidObjectSignal(this, Handle, "unmap", value, System.Type.GetType("EventArgs"));
Signals["unmap"] = new GtkSharp.Gtk.voidObjectSignal(this, Handle, "unmap", value, System.Type.GetType("EventArgs"));
EventList.AddHandler("unmap", value);
}
remove {

View file

@ -14,7 +14,7 @@ gnome-sharp.dll: generated/*.cs
clean:
rm -f *.dll
rm -f generated/*
rm -f generated/*.cs
install: all
@ENABLE_GNOME_TRUE@ cp gnome-sharp.dll $(DESTDIR)@prefix@/lib

View file

@ -1,6 +1,6 @@
EXTRA_DIRS =
DIRS=generator glib pango atk gdk art gtk glade gnome sample
DIRS=generator api glib pango atk gdk art gtk glade gnome sample
ROOT=/cygdrive/$(subst \,/,$(subst :\,/,$(SYSTEMROOT)))
CSC=$(ROOT)/microsoft.net/framework/v1.0.3705/csc.exe
MCS=mcs

View file

@ -6,7 +6,7 @@
# <c> 2002 Rachel Hestilow
##############################################################
package Metadata;
package GAPI::Metadata;
use XML::LibXML;
@ -245,7 +245,7 @@ sub fixup {
my $namespace = $attrs[0]->value;
if (-f "$namespace.metadata") {
if (not ($metadata and $metadata->{namespace} eq $namespace)) {
$metadata = new Metadata ($namespace);
$metadata = new GAPI::Metadata ($namespace);
}
$metadata->fixupNamespace ($doc, $ns_node);
}

View file

@ -6,7 +6,7 @@
# <c> 2002 Rachel Hestilow
##############################################################
package Metadata;
package GAPI::Metadata;
use XML::LibXML;
@ -245,7 +245,7 @@ sub fixup {
my $namespace = $attrs[0]->value;
if (-f "$namespace.metadata") {
if (not ($metadata and $metadata->{namespace} eq $namespace)) {
$metadata = new Metadata ($namespace);
$metadata = new GAPI::Metadata ($namespace);
}
$metadata->fixupNamespace ($doc, $ns_node);
}

View file

@ -10,7 +10,7 @@
$debug=1;
use XML::LibXML;
use Metadata;
use GAPI::Metadata;
if (!$ARGV[2]) {
die "Usage: gapi_pp.pl <srcdir> | gapi2xml.pl <namespace> <outfile> <libname>\n";
@ -369,7 +369,7 @@ foreach $define (sort (keys (%defines))) {
##############################################################
# Add metadata
##############################################################
Metadata::fixup $doc;
GAPI::Metadata::fixup $doc;
##############################################################
# Output the tree

View file

@ -1,10 +1,26 @@
all: generated-stamp
SCRIPTS = \
gapi.pl \
gapi_pp.pl \
gapi2xml.pl
generated-stamp: formatXml gtkapi.xml
./formatXml gtkapi.xml ../generator/gtkapi.xml && touch generated-stamp
MODULES=GAPI/Metadata.pm
formatXml: formatXml.c
cc -o formatXml formatXml.c `pkg-config --cflags --libs libxml-2.0 glib-2.0`
all: $(SCRIPTS) $(MODULES) gapi_format_xml
gtkapi.xml: build.pl gapi_pp.pl gapi2xml.pl
./build.pl
gapi_format_xml: formatXml.c
cc -o gapi_format_xml formatXml.c `pkg-config --cflags --libs libxml-2.0 glib-2.0`
clean:
rm -f gapi_format_xml
prefix=/usr
install: all
for i in $(SCRIPTS) gapi_format_xml; do \
cp $$i $(DESTDIR)$(prefix)/bin; \
done
for i in $(MODULES); do \
../mkinstalldirs $(DESTDIR)$(prefix)/share/perl5/GAPI && \
cp $$i $(DESTDIR)$(prefix)/share/perl5/GAPI; \
done

11
sources/gtk-sharp.sources Normal file
View file

@ -0,0 +1,11 @@
atk-1.0.2/atk Atk atk-1.0
pango-1.0.3/pango Pango pango-1.0
gtk+-2.0.5/gdk Gdk gdk-x11-2.0
gtk+-2.0.5/gdk-pixbuf Gdk gdk_pixbuf-2.0
gtk+-2.0.5/gtk Gtk gtk-x11-2.0
libgnome-2.0.1/libgnome Gnome gnome-2
libgnomecanvas-2.0.1/libgnomecanvas Gnome gnomecanvas-2
libgnomeui-2.0.1/libgnomeui Gnome gnomeui-2
gtkhtml/src Gtk gtkhtml-3.0
libglade-2.0.0/glade Glade glade-2.0
libart_lgpl-2.3.10 Art art_lgpl

2
sources/makefile Normal file
View file

@ -0,0 +1,2 @@
all:
PERLLIB=../parser PATH=../parser:$$PATH ../parser/gapi.pl gtk-sharp.sources ../api