* generator/StructBase.cs: update field-generation logic a bit
* generator/CodeGenerator.cs: add a --glue-includes flag * generator/GenerationInfo.cs: Accept glue_includes value from Main and output it to the glue_filename. * generator/FieldBase.cs (Ignored): handle more ignorable cases. (CheckGlue): New method to figure out what kind of glue we'll need for a field. (GenerateImports): generate appropriate imports per CheckGlue. (GenerateGlue): Generate C glue for accessing a struct field; either a fully-C-based accessor, or a method to just return the field's offset in the struct. (Generate): Use the generated glue to read the field. * generator/PropertyBase.cs (CType): if the field is a single bit, set its type to gboolean. * generator/ObjectGen.cs (Generate): * generator/OpaqueGen.cs (Generate): Call GenFields. * generator/StructField.cs: Use FieldBase's glue-generation code to handle bitfields. [#54489] * generator/ObjectField.cs: Generates accessors for public fields of objects and opaque structs. [#69514] * generator/ClassBase.cs (ClassBase): Parse <fields> nodes and create ObjectField objects. (GenFields): Output field properties (IgnoreMethod): Ignore Get/Set methods that duplicate fields * generator/Makefile.am (sources): update * {gdk,gnome,gtk,pango}/*.metadata: Mark some additional fields as public. Rename/retype some fields for consistency with earlier hand-coded bindings. * {gdk,gnome,gtk,pango}/*.custom: Remove custom methods that can now be autogenerated. * {gdk,gnome,gtk,pango}/glue/*.c: Remove glue methods that can now be autogenerated * {gdk,glade,gnome,gtk,pango,vte}/Makefile.am * {gdk,glade,gnome,gtk,pango,vte}/glue/Makefile.am * {gdk,gnome,gtk,pango}/glue/makefile.win32: Update svn path=/trunk/gtk-sharp/; revision=44563
This commit is contained in:
parent
057220e162
commit
b6d7f14268
88 changed files with 1435 additions and 1324 deletions
51
ChangeLog
51
ChangeLog
|
@ -1,3 +1,54 @@
|
|||
2005-05-16 Dan Winship <danw@novell.com>
|
||||
|
||||
* generator/StructBase.cs: update field-generation logic a bit
|
||||
|
||||
* generator/CodeGenerator.cs: add a --glue-includes flag
|
||||
|
||||
* generator/GenerationInfo.cs: Accept glue_includes value from
|
||||
Main and output it to the glue_filename.
|
||||
|
||||
* generator/FieldBase.cs (Ignored): handle more ignorable cases.
|
||||
(CheckGlue): New method to figure out what kind of glue we'll need
|
||||
for a field.
|
||||
(GenerateImports): generate appropriate imports per CheckGlue.
|
||||
(GenerateGlue): Generate C glue for accessing a struct field;
|
||||
either a fully-C-based accessor, or a method to just return the
|
||||
field's offset in the struct.
|
||||
(Generate): Use the generated glue to read the field.
|
||||
|
||||
* generator/PropertyBase.cs (CType): if the field is a single bit,
|
||||
set its type to gboolean.
|
||||
|
||||
* generator/ObjectGen.cs (Generate):
|
||||
* generator/OpaqueGen.cs (Generate): Call GenFields.
|
||||
|
||||
* generator/StructField.cs: Use FieldBase's glue-generation code
|
||||
to handle bitfields. [#54489]
|
||||
|
||||
* generator/ObjectField.cs: Generates accessors for public fields
|
||||
of objects and opaque structs. [#69514]
|
||||
|
||||
* generator/ClassBase.cs (ClassBase): Parse <fields> nodes and
|
||||
create ObjectField objects.
|
||||
(GenFields): Output field properties
|
||||
(IgnoreMethod): Ignore Get/Set methods that duplicate fields
|
||||
|
||||
* generator/Makefile.am (sources): update
|
||||
|
||||
* {gdk,gnome,gtk,pango}/*.metadata: Mark some additional fields as
|
||||
public. Rename/retype some fields for consistency with earlier
|
||||
hand-coded bindings.
|
||||
|
||||
* {gdk,gnome,gtk,pango}/*.custom: Remove custom methods that can
|
||||
now be autogenerated.
|
||||
|
||||
* {gdk,gnome,gtk,pango}/glue/*.c: Remove glue methods that can now
|
||||
be autogenerated
|
||||
|
||||
* {gdk,glade,gnome,gtk,pango,vte}/Makefile.am
|
||||
* {gdk,glade,gnome,gtk,pango,vte}/glue/Makefile.am
|
||||
* {gdk,gnome,gtk,pango}/glue/makefile.win32: Update
|
||||
|
||||
2005-05-15 Ben Maurer <bmaurer@ximian.com>
|
||||
|
||||
* bootstrap (GTK_SHARP_VERSION): Bump so that Todd's md tarballs
|
||||
|
|
|
@ -33,7 +33,8 @@ generated-stamp: $(API) $(top_builddir)/generator/gapi_codegen.exe $(build_custo
|
|||
$(RUNTIME) $(top_builddir)/generator/gapi_codegen.exe --generate $(API) \
|
||||
$(api_includes) \
|
||||
--outdir=generated --customdir=$(srcdir) --assembly-name=$(ASSEMBLY_NAME) \
|
||||
--gluelib-name=$(pkg)sharpglue --glue-filename=glue/generated.c \
|
||||
--gluelib-name=$(pkg)sharpglue-2 --glue-filename=glue/generated.c \
|
||||
--glue-includes=$(glue_includes) \
|
||||
&& touch generated-stamp
|
||||
|
||||
$(SNK): $(top_srcdir)/$(SNK)
|
||||
|
|
|
@ -423,6 +423,53 @@
|
|||
* en/GLib/ClassInitializerAttribute.xml : doc new attr.
|
||||
* en/Gtk/BindingAttribute.xml : doc new attr.
|
||||
|
||||
2004-12-22 Dan Winship <danw@novell.com>
|
||||
|
||||
Update for changes from automatic field generation.
|
||||
|
||||
* en/Gdk/Colormap.xml (Size): New read-only property.
|
||||
|
||||
* en/Gdk/Image.xml (Bpp, Bpl, Depth, ByteOrder, BitsPerPixel,
|
||||
Width, Visual, Type, Height): New read-only properties
|
||||
|
||||
* en/Gtk/FileSelection.xml (MainVBox): New read-only property
|
||||
|
||||
* en/Gtk/FontSelectionDialog.xml (ApplyButton, CancelButton,
|
||||
OkButton): New read-only properties.
|
||||
|
||||
* en/Gtk/RcStyle.xml (Name, Xthickness, Ythickness, FontDesc):
|
||||
New read-only properties.
|
||||
|
||||
* en/Gtk/Style.xml (Xthickness, Ythickness, FontDesc): New
|
||||
read-only properties.
|
||||
|
||||
* en/Gtk/Toolbar.xml (NumChildren): New read-only property.
|
||||
|
||||
* en/Gtk/Widget.xml (Requisition): New read-write property.
|
||||
|
||||
* en/Gnome/App.xml (Contents, Statusbar): Now read-write
|
||||
rather than write-only
|
||||
(Name, Prefix, AccelGroup): New read-only properties.
|
||||
|
||||
* en/Gnome/DateEdit.xml (InitialTime): Fixed to use DateTime
|
||||
rather than ulong.
|
||||
|
||||
* en/Gnome/Druid.xml (FinishButton, NextButton, HelpButton,
|
||||
BackButton, CancelButton): New read-only properties.
|
||||
|
||||
* en/Gnome/DruidPageEdge.xml (BgColor, Title, TextboxColor,
|
||||
TextColor, LogoBgColor, Watermark, TopWatermark, TitleColor,
|
||||
Logo, Text): Now read-write rather than write-only.
|
||||
(Position): New read-only property.
|
||||
|
||||
* en/Gnome/DruidPageStandard.xml (ContentsBackground,
|
||||
TitleForeground, LogoBackground, Background): Now read-write
|
||||
rather than write-only.
|
||||
(VBox): New read-only property.
|
||||
|
||||
* en/Gnome/FontPicker.xml (Font): Fixed to use Gdk.Font rather
|
||||
than IntPtr.
|
||||
|
||||
2004-12-22 Dan Winship <danw@novell.com>
|
||||
|
||||
* en/Gtk/Decorated.xml:
|
||||
|
|
|
@ -265,5 +265,18 @@
|
|||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Size">
|
||||
<MemberSignature Language="C#" Value="public int Size { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Int32</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The size of the <see cref="T:Gdk.Colormap" /></summary>
|
||||
<returns>The size of the <see cref="T:Gdk.Colormap" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -202,5 +202,122 @@
|
|||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Bpp">
|
||||
<MemberSignature Language="C#" Value="public ushort Bpp { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.UInt16</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The number of bytes per pixel.</summary>
|
||||
<returns>a <see cref="T:System.UInt16" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Bpl">
|
||||
<MemberSignature Language="C#" Value="public ushort Bpl { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.UInt16</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The number of bytes per line of the image.</summary>
|
||||
<returns>a <see cref="T:System.UInt16" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Depth">
|
||||
<MemberSignature Language="C#" Value="public ushort Depth { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.UInt16</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The image depth (ie, the number of bits per pixel).</summary>
|
||||
<returns>a <see cref="T:System.UInt16" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="ByteOrder">
|
||||
<MemberSignature Language="C#" Value="public Gdk.ByteOrder ByteOrder { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gdk.ByteOrder</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The image byte order.</summary>
|
||||
<returns>a <see cref="T:Gdk.ByteOrder" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="BitsPerPixel">
|
||||
<MemberSignature Language="C#" Value="public ushort BitsPerPixel { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.UInt16</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The number of bits per pixel.</summary>
|
||||
<returns>a <see cref="T:System.UInt16" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Width">
|
||||
<MemberSignature Language="C#" Value="public int Width { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Int32</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The width of the image in pixels.</summary>
|
||||
<returns>a <see cref="T:System.Int32" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Visual">
|
||||
<MemberSignature Language="C#" Value="public Gdk.Visual Visual { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gdk.Visual</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The image's <see cref="T:Gdk.Visual" />.</summary>
|
||||
<returns>a <see cref="T:Gdk.Visual" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Type">
|
||||
<MemberSignature Language="C#" Value="public Gdk.ImageType Type { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gdk.ImageType</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The image's <see cref="T:Gdk.ImageType" /></summary>
|
||||
<returns>a <see cref="T:Gdk.ImageType" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Height">
|
||||
<MemberSignature Language="C#" Value="public int Height { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Int32</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The height of the image in pixels.</summary>
|
||||
<returns>a <see cref="T:System.Int32" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -86,5 +86,18 @@
|
|||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="After">
|
||||
<MemberSignature Language="C#" Value="public bool After { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>To be added</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -612,7 +612,7 @@
|
|||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Contents">
|
||||
<MemberSignature Language="C#" Value="public Gtk.Widget Contents { set; };" />
|
||||
<MemberSignature Language="C#" Value="public Gtk.Widget Contents { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.Widget</ReturnType>
|
||||
|
@ -620,7 +620,7 @@
|
|||
<Parameters>
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Sets the content area of the main window of <see cref="T:Gnome.App" />.</summary>
|
||||
<summary>The content area of the main window of the <see cref="T:Gnome.App" />.</summary>
|
||||
<param name="value">an object of type <see cref="T:Gtk.Widget" /></param>
|
||||
<returns>an object of type <see cref="T:Gtk.Widget" /></returns>
|
||||
<remarks>
|
||||
|
@ -628,7 +628,7 @@
|
|||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Menus">
|
||||
<MemberSignature Language="C#" Value="public Gtk.MenuBar Menus { set; };" />
|
||||
<MemberSignature Language="C#" Value="public Gtk.MenuBar Menus { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.MenuBar</ReturnType>
|
||||
|
@ -644,7 +644,7 @@
|
|||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Statusbar">
|
||||
<MemberSignature Language="C#" Value="public Gtk.Widget Statusbar { set; };" />
|
||||
<MemberSignature Language="C#" Value="public Gtk.Widget Statusbar { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.Widget</ReturnType>
|
||||
|
@ -652,7 +652,7 @@
|
|||
<Parameters>
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Sets the status bar of the application window.</summary>
|
||||
<summary>The status bar of the application window.</summary>
|
||||
<param name="value">an object of type <see cref="T:Gtk.Widget" /></param>
|
||||
<returns>an object of type <see cref="T:Gtk.Widget" /></returns>
|
||||
<remarks>
|
||||
|
@ -973,5 +973,47 @@
|
|||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Name">
|
||||
<MemberSignature Language="C#" Value="public string Name { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.String</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The application name</summary>
|
||||
<returns>a <see cref="T:System.String" /></returns>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Prefix">
|
||||
<MemberSignature Language="C#" Value="public string Prefix { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.String</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The application's install prefix</summary>
|
||||
<returns>a <see cref="T:System.String" /></returns>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="AccelGroup">
|
||||
<MemberSignature Language="C#" Value="public Gtk.AccelGroup AccelGroup { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.AccelGroup</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The <see cref="T:Gnome.App" />'s <see cref="T:Gtk.AccelGroup" /></summary>
|
||||
<returns>a <see cref="T:Gtk.AccelGroup" /></returns>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -98,5 +98,31 @@
|
|||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsBg">
|
||||
<MemberSignature Language="C#" Value="public bool IsBg { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>To be added</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsBuf">
|
||||
<MemberSignature Language="C#" Value="public bool IsBuf { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>To be added</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -370,5 +370,70 @@ The widget which ultimately holds all of the druid's pages and information. This
|
|||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="FinishButton">
|
||||
<MemberSignature Language="C#" Value="public Gtk.Button FinishButton { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.Button</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The druid's "Finish" button.</summary>
|
||||
<returns>a <see cref="T:Gtk.Button" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="NextButton">
|
||||
<MemberSignature Language="C#" Value="public Gtk.Button NextButton { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.Button</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The druid's "Next" button.</summary>
|
||||
<returns>a <see cref="T:Gtk.Button" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="HelpButton">
|
||||
<MemberSignature Language="C#" Value="public Gtk.Button HelpButton { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.Button</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The druid's "Help" button.</summary>
|
||||
<returns>a <see cref="T:Gtk.Button" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="BackButton">
|
||||
<MemberSignature Language="C#" Value="public Gtk.Button BackButton { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.Button</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The druid's "Back" button.</summary>
|
||||
<returns>a <see cref="T:Gtk.Button" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="CancelButton">
|
||||
<MemberSignature Language="C#" Value="public Gtk.Button CancelButton { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.Button</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The druid's "Cancel" button.</summary>
|
||||
<returns>a <see cref="T:Gtk.Button" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -130,7 +130,7 @@
|
|||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="BgColor">
|
||||
<MemberSignature Language="C#" Value="public Gdk.Color BgColor { set; };" />
|
||||
<MemberSignature Language="C#" Value="public Gdk.Color BgColor { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gdk.Color</ReturnType>
|
||||
|
@ -138,15 +138,15 @@
|
|||
<Parameters>
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>This will set the background color.</summary>
|
||||
<param name="value">an object of type <see cref="T:Gdk.Color" /></param>
|
||||
<returns>an object of type <see cref="T:Gdk.Color" /></returns>
|
||||
<summary>The color of the page border.</summary>
|
||||
<param name="value">The color.</param>
|
||||
<returns>The color.</returns>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Title">
|
||||
<MemberSignature Language="C#" Value="public string Title { set; };" />
|
||||
<MemberSignature Language="C#" Value="public string Title { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.String</ReturnType>
|
||||
|
@ -154,15 +154,15 @@
|
|||
<Parameters>
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>This will set the background color.</summary>
|
||||
<param name="value"> The new background color.</param>
|
||||
<returns>an object of type <see cref="T:System.String" /></returns>
|
||||
<summary>The page title.</summary>
|
||||
<param name="value">The page title.</param>
|
||||
<returns>The page title.</returns>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="TextboxColor">
|
||||
<MemberSignature Language="C#" Value="public Gdk.Color TextboxColor { set; };" />
|
||||
<MemberSignature Language="C#" Value="public Gdk.Color TextboxColor { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gdk.Color</ReturnType>
|
||||
|
@ -170,15 +170,15 @@
|
|||
<Parameters>
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Sets the contents of the page's title text.</summary>
|
||||
<param name="value">The title text.</param>
|
||||
<returns>an object of type <see cref="T:Gdk.Color" /></returns>
|
||||
<summary>The background color of the main text area.</summary>
|
||||
<param name="value">The color.</param>
|
||||
<returns>The color.</returns>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="TextColor">
|
||||
<MemberSignature Language="C#" Value="public Gdk.Color TextColor { set; };" />
|
||||
<MemberSignature Language="C#" Value="public Gdk.Color TextColor { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gdk.Color</ReturnType>
|
||||
|
@ -186,15 +186,15 @@
|
|||
<Parameters>
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Sets the color of the background in the main text area of the page.</summary>
|
||||
<param name="value">The new textbox color.</param>
|
||||
<returns>an object of type <see cref="T:Gdk.Color" /></returns>
|
||||
<summary>The color of the text in the body of the page.</summary>
|
||||
<param name="value">The color.</param>
|
||||
<returns>The color.</returns>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="LogoBgColor">
|
||||
<MemberSignature Language="C#" Value="public Gdk.Color LogoBgColor { set; };" />
|
||||
<MemberSignature Language="C#" Value="public Gdk.Color LogoBgColor { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gdk.Color</ReturnType>
|
||||
|
@ -202,15 +202,15 @@
|
|||
<Parameters>
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Sets the color of the text in the body of the druid page.</summary>
|
||||
<param name="value"> The new text color.</param>
|
||||
<returns>an object of type <see cref="T:Gdk.Color" /></returns>
|
||||
<summary>The background color to render the logo image against.</summary>
|
||||
<param name="value">The color.</param>
|
||||
<returns>The color.</returns>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Watermark">
|
||||
<MemberSignature Language="C#" Value="public Gdk.Pixbuf Watermark { set; };" />
|
||||
<MemberSignature Language="C#" Value="public Gdk.Pixbuf Watermark { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gdk.Pixbuf</ReturnType>
|
||||
|
@ -218,14 +218,14 @@
|
|||
<Parameters>
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Set the color behind the druid page's logo.</summary>
|
||||
<param name="value">an object of type <see cref="T:Gdk.Pixbuf" /></param>
|
||||
<returns>an object of type <see cref="T:Gdk.Pixbuf" /></returns>
|
||||
<remarks>If <see langword="null" />, it is reset to the normal color.</remarks>
|
||||
<summary>The watermark image to display on the left strip on the druid.</summary>
|
||||
<param name="value">The <see cref="T:Gdk.Pixbuf" /> to use as a watermark.</param>
|
||||
<returns>The watermark, as a <see cref="T:Gdk.Pixbuf" /></returns>
|
||||
<remarks>If set to <see langword="null" />, then no left-side watermark will be displayed.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="TopWatermark">
|
||||
<MemberSignature Language="C#" Value="public Gdk.Pixbuf TopWatermark { set; };" />
|
||||
<MemberSignature Language="C#" Value="public Gdk.Pixbuf TopWatermark { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gdk.Pixbuf</ReturnType>
|
||||
|
@ -233,14 +233,14 @@
|
|||
<Parameters>
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Sets a <see cref="T:Gdk.Pixbuf" /> as the watermark on the left strip on the druid.</summary>
|
||||
<summary>The watermark image to display on the top strip on the druid.</summary>
|
||||
<param name="value">The <see cref="T:Gdk.Pixbuf" /> to use as a watermark.</param>
|
||||
<returns>an object of type <see cref="T:Gdk.Pixbuf" /></returns>
|
||||
<remarks>If watermark is set to null, it is reset to the normal color.</remarks>
|
||||
<returns>The watermark, as a <see cref="T:Gdk.Pixbuf" /></returns>
|
||||
<remarks>If set to <see langword="null" />, then no top watermark will be displayed.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="TitleColor">
|
||||
<MemberSignature Language="C#" Value="public Gdk.Color TitleColor { set; };" />
|
||||
<MemberSignature Language="C#" Value="public Gdk.Color TitleColor { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gdk.Color</ReturnType>
|
||||
|
@ -248,14 +248,15 @@
|
|||
<Parameters>
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Sets a <see cref="T:Gdk.Pixbuf" /> as the watermark on top of the top strip on the druid.</summary>
|
||||
<param name="value">The <see cref="T:Gdk.Pixbuf" /> to use as a top watermark</param>
|
||||
<returns>an object of type <see cref="T:Gdk.Color" /></returns>
|
||||
<remarks>If the top watermark is set to null, it is reset to the normal color.</remarks>
|
||||
<summary>The color of the title text.</summary>
|
||||
<param name="value">The color.</param>
|
||||
<returns>The color.</returns>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Logo">
|
||||
<MemberSignature Language="C#" Value="public Gdk.Pixbuf Logo { set; };" />
|
||||
<MemberSignature Language="C#" Value="public Gdk.Pixbuf Logo { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gdk.Pixbuf</ReturnType>
|
||||
|
@ -263,14 +264,14 @@
|
|||
<Parameters>
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Sets the color of the title text on the current page.</summary>
|
||||
<param name="value"> The color of the title text.</param>
|
||||
<returns>an object of type <see cref="T:Gdk.Pixbuf" /></returns>
|
||||
<remarks>If <see langword="null" />, then no logo will be displayed.</remarks>
|
||||
<summary>The logo to display in the top right corner.</summary>
|
||||
<param name="value">The logo image.</param>
|
||||
<returns>the logo, as a <see cref="T:Gdk.Pixbuf" /></returns>
|
||||
<remarks>If set to <see langword="null" />, then no logo will be displayed.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Text">
|
||||
<MemberSignature Language="C#" Value="public string Text { set; };" />
|
||||
<MemberSignature Language="C#" Value="public string Text { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.String</ReturnType>
|
||||
|
@ -278,10 +279,11 @@
|
|||
<Parameters>
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Sets a <see cref="T:Gdk.Pixbuf" /> as the logo in the top right corner.</summary>
|
||||
<param name="value">The <see cref="T:Gdk.Pixbuf" /> to use as a logo.</param>
|
||||
<returns>an object of type <see cref="T:System.String" /></returns>
|
||||
<remarks>If set to null, then no logo will be displayed.</remarks>
|
||||
<summary>The current text of the page.</summary>
|
||||
<param name="value">The text.</param>
|
||||
<returns>The text.</returns>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="GType">
|
||||
|
@ -292,9 +294,9 @@
|
|||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Sets the contents of the text portion of the druid page.</summary>
|
||||
<summary>GType Property.</summary>
|
||||
<returns>a <see cref="T:GLib.GType" /></returns>
|
||||
<remarks>To be added</remarks>
|
||||
<remarks>Returns the native <see cref="T:GLib.GType" /> value for <see cref="T:Gnome.DruidPageEdge" />.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName=".ctor">
|
||||
|
@ -322,5 +324,18 @@
|
|||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Position">
|
||||
<MemberSignature Language="C#" Value="public Gnome.EdgePosition Position { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gnome.EdgePosition</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The position of the page within the druid.</summary>
|
||||
<returns>a <see cref="T:Gnome.EdgePosition" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -114,7 +114,7 @@
|
|||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="ContentsBackground">
|
||||
<MemberSignature Language="C#" Value="public Gdk.Color ContentsBackground { set; };" />
|
||||
<MemberSignature Language="C#" Value="public Gdk.Color ContentsBackground { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gdk.Color</ReturnType>
|
||||
|
@ -192,7 +192,7 @@
|
|||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="TitleForeground">
|
||||
<MemberSignature Language="C#" Value="public Gdk.Color TitleForeground { set; };" />
|
||||
<MemberSignature Language="C#" Value="public Gdk.Color TitleForeground { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gdk.Color</ReturnType>
|
||||
|
@ -200,14 +200,13 @@
|
|||
<Parameters>
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Sets a <see cref="T:Gdk.Pixbuf" /> as the logo in the top right corner.</summary>
|
||||
<param name="value"> The <see cref="T:Gdk.Pixbuf" /> to use as a logo.</param>
|
||||
<summary>The color of the title text.</summary>
|
||||
<param name="value">The color of the title text.</param>
|
||||
<returns>an object of type <see cref="T:Gdk.Color" /></returns>
|
||||
<remarks>If set to null, then no logo will be displayed.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="LogoBackground">
|
||||
<MemberSignature Language="C#" Value="public Gdk.Color LogoBackground { set; };" />
|
||||
<MemberSignature Language="C#" Value="public Gdk.Color LogoBackground { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gdk.Color</ReturnType>
|
||||
|
@ -215,15 +214,15 @@
|
|||
<Parameters>
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Sets the title text to the specified color.</summary>
|
||||
<param name="value"> The new color of the title text.</param>
|
||||
<returns>an object of type <see cref="T:Gdk.Color" /></returns>
|
||||
<summary>The background color to render the logo image against.</summary>
|
||||
<param name="value">The color.</param>
|
||||
<returns>The color.</returns>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Background">
|
||||
<MemberSignature Language="C#" Value="public Gdk.Color Background { set; };" />
|
||||
<MemberSignature Language="C#" Value="public Gdk.Color Background { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gdk.Color</ReturnType>
|
||||
|
@ -231,9 +230,9 @@
|
|||
<Parameters>
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Set the color behind the druid page's logo.</summary>
|
||||
<param name="value"> The new color for the logo background.</param>
|
||||
<returns>an object of type <see cref="T:Gdk.Color" /></returns>
|
||||
<summary>The color of the page border.</summary>
|
||||
<param name="value">The color.</param>
|
||||
<returns>The color.</returns>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
|
@ -247,9 +246,9 @@
|
|||
<Parameters>
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Sets the background color of the top section of the druid page.</summary>
|
||||
<param name="value"> The new background color.</param>
|
||||
<returns>an object of type <see cref="T:System.String" /></returns>
|
||||
<summary>The page title.</summary>
|
||||
<param name="value">The page title.</param>
|
||||
<returns>The page title.</returns>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
|
@ -342,5 +341,18 @@
|
|||
<remarks>Chain to this constructor if you have manually registered a native <see cref="T:GLib.GType" /> value for your subclass.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="VBox">
|
||||
<MemberSignature Language="C#" Value="public Gtk.VBox VBox { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.VBox</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The page's <see cref="T:Gtk.VBox" /></summary>
|
||||
<returns>The page's <see cref="T:Gtk.VBox" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -144,15 +144,15 @@
|
|||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Version">
|
||||
<MemberSignature Language="C#" Value="public uint Version;" />
|
||||
<MemberType>Field</MemberType>
|
||||
<MemberSignature Language="C#" Value="public uint Version { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.UInt32</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
</Parameters>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>To be added</summary>
|
||||
<returns>a <see cref="T:System.UInt32" /></returns>
|
||||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
|
|
|
@ -174,28 +174,28 @@
|
|||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Version">
|
||||
<MemberSignature Language="C#" Value="public uint Version;" />
|
||||
<MemberType>Field</MemberType>
|
||||
<MemberSignature Language="C#" Value="public uint Version { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.UInt32</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
</Parameters>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>To be added</summary>
|
||||
<returns>a <see cref="T:System.UInt32" /></returns>
|
||||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Base">
|
||||
<MemberSignature Language="C#" Value="public uint Base;" />
|
||||
<MemberType>Field</MemberType>
|
||||
<MemberSignature Language="C#" Value="public uint Base { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.UInt32</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
</Parameters>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>To be added</summary>
|
||||
<returns>a <see cref="T:System.UInt32" /></returns>
|
||||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
|
|
|
@ -61,15 +61,15 @@
|
|||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="AccelFlags">
|
||||
<MemberSignature Language="C#" Value="public Gtk.AccelFlags AccelFlags;" />
|
||||
<MemberType>Field</MemberType>
|
||||
<MemberSignature Language="C#" Value="public Gtk.AccelFlags AccelFlags { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.AccelFlags</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
</Parameters>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The flags for this AccelKey that determine whether <see cref="T:Gtk.AccelLabel" /> will display it.</summary>
|
||||
<returns>a <see cref="T:Gtk.AccelFlags" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
|
|
|
@ -397,6 +397,20 @@ class FileSelectionSample
|
|||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="MainVBox">
|
||||
<MemberSignature Language="C#" Value="public Gtk.VBox MainVBox { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.VBox</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The main <see cref="T:Gtk.VBox" /> in the file selector.</summary>
|
||||
<returns>a <see cref="T:Gtk.VBox" /></returns>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Selections">
|
||||
<MemberSignature Language="C#" Value="public string [] Selections { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
|
|
|
@ -165,5 +165,47 @@
|
|||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="ApplyButton">
|
||||
<MemberSignature Language="C#" Value="public Gtk.Button ApplyButton { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.Widget</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The dialog's "Apply" button.</summary>
|
||||
<returns>a <see cref="T:Gtk.Widget" /></returns>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="CancelButton">
|
||||
<MemberSignature Language="C#" Value="public Gtk.Button CancelButton { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.Widget</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The dialog's "Cancel" button.</summary>
|
||||
<returns>a <see cref="T:Gtk.Widget" /></returns>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="OkButton">
|
||||
<MemberSignature Language="C#" Value="public Gtk.Button OkButton { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.Widget</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The dialog's "OK" button.</summary>
|
||||
<returns>a <see cref="T:Gtk.Widget" /></returns>
|
||||
<remarks>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -105,5 +105,57 @@
|
|||
<remarks>Chain to this constructor if you have manually registered a native <see cref="T:GLib.GType" /> value for your subclass.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Name">
|
||||
<MemberSignature Language="C#" Value="public string Name { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.String</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The name of the RC style.</summary>
|
||||
<returns>a <see cref="T:System.String" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Xthickness">
|
||||
<MemberSignature Language="C#" Value="public int Xthickness { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Int32</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The "xthickness" value of the RC style.</summary>
|
||||
<returns>a <see cref="T:System.Int32" /></returns>
|
||||
<remarks>This value is used for various horizontal padding values in Gtk.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Ythickness">
|
||||
<MemberSignature Language="C#" Value="public int Ythickness { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Int32</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The "ythickness" value of the RC style.</summary>
|
||||
<returns>a <see cref="T:System.Int32" /></returns>
|
||||
<remarks>This value is used for various vertical padding values in Gtk.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="FontDesc">
|
||||
<MemberSignature Language="C#" Value="public Pango.FontDescription FontDesc { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Pango.FontDescription</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The <see cref="T:Pango.FontDescription" /> value parsed from the RC style's "font_name" property.</summary>
|
||||
<returns>a <see cref="T:Pango.FontDescription" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -1525,6 +1525,45 @@ color or pixmap specified by this style for <paramref name="state" />.</summary>
|
|||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Xthickness">
|
||||
<MemberSignature Language="C#" Value="public int Xthickness { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Int32</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The "xthickness" value of the style.</summary>
|
||||
<returns>a <see cref="T:System.Int32" /></returns>
|
||||
<remarks>This value is used for various horizontal padding values in Gtk.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Ythickness">
|
||||
<MemberSignature Language="C#" Value="public int Ythickness { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Int32</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The "ythickness" value of the style.</summary>
|
||||
<returns>a <see cref="T:System.Int32" /></returns>
|
||||
<remarks>This value is used for various vertical padding values in Gtk.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="FontDesc">
|
||||
<MemberSignature Language="C#" Value="public Pango.FontDescription FontDesc { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Pango.FontDescription</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The <see cref="T:Pango.FontDescription" /> value for the style.</summary>
|
||||
<returns>a <see cref="T:Pango.FontDescription" /></returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="LightColors">
|
||||
<MemberSignature Language="C#" Value="public Gdk.Color [] LightColors { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
|
|
|
@ -117,16 +117,29 @@
|
|||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Underline">
|
||||
<MemberSignature Language="C#" Value="public uint Underline;" />
|
||||
<MemberType>Field</MemberType>
|
||||
<MemberSignature Language="C#" Value="public Pango.Underline Underline { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.UInt32</ReturnType>
|
||||
<ReturnType>Pango.Underline</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Style of underlining for this text.</summary>
|
||||
<remarks>See <see cref="T:Pango.Underline" /> for possible values.</remarks>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Strikethrough">
|
||||
<MemberSignature Language="C#" Value="public bool Strikethrough { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Whether or not the text should be struck-through.</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
|
|
|
@ -313,5 +313,57 @@
|
|||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Invisible">
|
||||
<MemberSignature Language="C#" Value="public bool Invisible { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Whether or not the text should be hidden.</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="BgFullHeight">
|
||||
<MemberSignature Language="C#" Value="public bool BgFullHeight { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Whether background is fit to full line height</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Editable">
|
||||
<MemberSignature Language="C#" Value="public bool Editable { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Whether or not the text is editable.</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Realized">
|
||||
<MemberSignature Language="C#" Value="public bool Realized { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Whether or not the attribute is fully-realized.</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -758,6 +758,19 @@ If type == <see cref="T:Gtk.ToolbarChildType.Widget" />, widget is used as the n
|
|||
<remarks>You can cast the returned object to <see cref="T:Gtk.Toolbar+ToolbarChild" /> to access its child properties.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="NumChildren">
|
||||
<MemberSignature Language="C#" Value="public int NumChildren { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Int32</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The number of items in the toolbar.</summary>
|
||||
<returns>The number of itesm.</returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="InsertStock">
|
||||
<MemberSignature Language="C#" Value="public Gtk.Widget InsertStock (string stock_id, string tooltip_text, string tooltip_private_text, Gtk.SignalFunc cb, int position);" />
|
||||
<MemberType>Method</MemberType>
|
||||
|
|
|
@ -1797,5 +1797,21 @@ store = new TreeStore (typeof (int), typeof (string));
|
|||
<remarks>This method is meant to be used together with <see cref="T:Gtk.TreeModelSort.ChangeSortColumn" /></remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="GetColumnType">
|
||||
<MemberSignature Language="C#" Value="public virtual GLib.GType GetColumnType (int index_);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>GLib.GType</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="index_" Type="System.Int32" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>To be added</summary>
|
||||
<param name="index_">a <see cref="T:System.Int32" /></param>
|
||||
<returns>a <see cref="T:GLib.GType" /></returns>
|
||||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -3790,6 +3790,18 @@ Widgets are required to honor the size allocation they receive; a size request i
|
|||
</para></returns>
|
||||
<remarks>None.</remarks>
|
||||
</Docs>
|
||||
</Member><Member MemberName="Requisition">
|
||||
<MemberSignature Language="C#" Value="public Gtk.Requisition Requisition { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gtk.Requisition</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Gets or Sets the widget's requisition</summary>
|
||||
<returns>a <see cref="T:Gtk.Requisition" /> representing the widget's requisition</returns>
|
||||
<remarks></remarks>
|
||||
</Docs>
|
||||
</Member><Member MemberName="IsMapped">
|
||||
<MemberSignature Language="C#" Value="public bool IsMapped { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
|
|
|
@ -47,5 +47,18 @@
|
|||
<remarks>This is an internal method, and should not be used by user code.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsClusterStart">
|
||||
<MemberSignature Language="C#" Value="public bool IsClusterStart { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>To be added</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -47,5 +47,189 @@
|
|||
<remarks>This is an internal method, and should not be used by user code.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsLineBreak">
|
||||
<MemberSignature Language="C#" Value="public bool IsLineBreak { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Whether or not a line break is allowed before this character.</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsMandatoryBreak">
|
||||
<MemberSignature Language="C#" Value="public bool IsMandatoryBreak { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Whether or not a line break is required before this character.</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsCharBreak">
|
||||
<MemberSignature Language="C#" Value="public bool IsCharBreak { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Whether or not a break is allowed before this character when doing character wrap.</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsWhite">
|
||||
<MemberSignature Language="C#" Value="public bool IsWhite { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Whether or not this is a whitespace character.</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsCursorPosition">
|
||||
<MemberSignature Language="C#" Value="public bool IsCursorPosition { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Whether or not the cursor can appear in front of this character.</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsWordStart">
|
||||
<MemberSignature Language="C#" Value="public bool IsWordStart { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Whether or not this is the first character in a word.</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>
|
||||
Note that in degenerate cases, you could have both this
|
||||
propery and <see cref="M:Pango.LogAttr.IsWordEnd" /> set
|
||||
on the same character, most likely for sentences (e.g. no
|
||||
space after a period, so the next sentence starts right
|
||||
away)
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsWordEnd">
|
||||
<MemberSignature Language="C#" Value="public bool IsWordEnd { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Whether or not this is the first non-word character after a word.</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>
|
||||
Note that in degenerate cases, you could have both this
|
||||
propery and <see cref="M:Pango.LogAttr.IsWordStart" /> set
|
||||
on the same character, most likely for sentences (e.g. no
|
||||
space after a period, so the next sentence starts right
|
||||
away)
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsSentenceBoundary">
|
||||
<MemberSignature Language="C#" Value="public bool IsSentenceBoundary { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Whether or not this character is a sentence boundary.</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>
|
||||
There are two ways to divide sentences. The first assigns
|
||||
all intersentence whitespace/control/format chars to some
|
||||
sentence, so all characters are in some sentence; <see
|
||||
cref="M:Pango.LogAttr.IsSentenceBoundary" /> denotes the
|
||||
boundaries in this case. See <see
|
||||
cref="M:Pango.LogAttr.IsSentenceStart" /> and <see
|
||||
cref="M:Pango.LogAttr.IsSentenceEnd" /> for the other
|
||||
method.
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsSentenceStart">
|
||||
<MemberSignature Language="C#" Value="public bool IsSentenceStart { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Whether or not this is the first character in a sentence.</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>
|
||||
There are two ways to divide sentences. The first is the
|
||||
method used by <see
|
||||
cref="M:Pango.LogAttr.IsSentenceBoundary" /> (qv). The
|
||||
second way is to consider intersentence characters to not
|
||||
be part of any sentence, in which case <see
|
||||
cref="M:Pango.LogAttr.IsSentenceStart" /> identifies the
|
||||
first character in a sentence and <see
|
||||
cref="M:Pango.LogAttr.IsSentenceEnd" /> identifies the
|
||||
first non-sentence character after a sentence.
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="IsSentenceEnd">
|
||||
<MemberSignature Language="C#" Value="public bool IsSentenceEnd { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Whether or not this is the first non-sentence character after a sentence.</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>
|
||||
There are two ways to divide sentences. The first is the
|
||||
method used by <see
|
||||
cref="M:Pango.LogAttr.IsSentenceBoundary" /> (qv). The
|
||||
second way is to consider intersentence characters to not
|
||||
be part of any sentence, in which case <see
|
||||
cref="M:Pango.LogAttr.IsSentenceStart" /> identifies the
|
||||
first character in a sentence and <see
|
||||
cref="M:Pango.LogAttr.IsSentenceEnd" /> identifies the
|
||||
first non-sentence character after a sentence.
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="BackspaceDeletesCharacter">
|
||||
<MemberSignature Language="C#" Value="public bool BackspaceDeletesCharacter { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Whether Backspace deletes individual characters rather than complete grapheme clusters.</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
|
@ -100,5 +100,31 @@
|
|||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Underline">
|
||||
<MemberSignature Language="C#" Value="public bool Underline { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>To be added</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Strikethrough">
|
||||
<MemberSignature Language="C#" Value="public bool Strikethrough { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>To be added</summary>
|
||||
<returns>a <see cref="T:System.Boolean" /></returns>
|
||||
<remarks>To be added</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
||||
</Type>
|
|
@ -19,77 +19,16 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport("gdksharpglue-2")]
|
||||
static extern IntPtr gtksharp_gdk_device_get_name (IntPtr device);
|
||||
|
||||
[DllImport("gdksharpglue-2")]
|
||||
static extern InputSource gtksharp_gdk_device_get_source (IntPtr device);
|
||||
|
||||
[DllImport("gdksharpglue-2")]
|
||||
static extern InputMode gtksharp_gdk_device_get_mode (IntPtr device);
|
||||
|
||||
[DllImport("gdksharpglue-2")]
|
||||
static extern bool gtksharp_gdk_device_has_cursor (IntPtr device);
|
||||
|
||||
[DllImport("gdksharpglue-2")]
|
||||
static extern int gtksharp_gdk_device_get_num_axes (IntPtr device);
|
||||
|
||||
[DllImport("gdksharpglue-2")]
|
||||
static extern int gtksharp_gdk_device_get_num_keys (IntPtr device);
|
||||
|
||||
[DllImport("gdksharpglue-2")]
|
||||
static extern DeviceAxis gtksharp_gdk_device_get_device_axis (IntPtr device, uint axis);
|
||||
|
||||
[DllImport("gdksharpglue-2")]
|
||||
static extern DeviceKey gtksharp_gdk_device_get_device_key (IntPtr device, uint axis);
|
||||
|
||||
[DllImport("libgdk-win32-2.0-0.dll")]
|
||||
static extern void gdk_device_set_source(IntPtr device, int source);
|
||||
|
||||
[DllImport("libgdk-win32-2.0-0.dll")]
|
||||
static extern void gdk_device_get_state(IntPtr device, IntPtr window, double [] axes, out int maskAsInt);
|
||||
|
||||
|
||||
public string Name {
|
||||
get {
|
||||
IntPtr rawName = gtksharp_gdk_device_get_name (Handle);
|
||||
return GLib.Marshaller.Utf8PtrToString (rawName);
|
||||
}
|
||||
}
|
||||
|
||||
public Gdk.InputSource Source {
|
||||
get {
|
||||
return gtksharp_gdk_device_get_source (Handle);
|
||||
}
|
||||
set {
|
||||
gdk_device_set_source(Handle, (int) value);
|
||||
}
|
||||
}
|
||||
|
||||
public Gdk.InputMode Mode {
|
||||
get {
|
||||
return gtksharp_gdk_device_get_mode (Handle);
|
||||
}
|
||||
}
|
||||
|
||||
public bool HasCursor {
|
||||
get {
|
||||
return gtksharp_gdk_device_has_cursor (Handle);
|
||||
}
|
||||
}
|
||||
|
||||
public int NumAxes {
|
||||
get {
|
||||
return gtksharp_gdk_device_get_num_axes (Handle);
|
||||
}
|
||||
}
|
||||
|
||||
public int NumKeys {
|
||||
get {
|
||||
return gtksharp_gdk_device_get_num_keys (Handle);
|
||||
}
|
||||
}
|
||||
|
||||
public void GetState(Gdk.Window window, out double [] axes, out Gdk.ModifierType mask) {
|
||||
int maskAsInt;
|
||||
axes = new double [this.NumAxes];
|
||||
|
|
|
@ -20,46 +20,6 @@
|
|||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport("gdksharpglue-2")]
|
||||
static extern DragProtocol gtksharp_drag_context_get_protocol (IntPtr ptr);
|
||||
|
||||
public unsafe DragProtocol DragProtocol {
|
||||
get {
|
||||
return gtksharp_drag_context_get_protocol (this.Handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DllImport("gdksharpglue-2")]
|
||||
static extern bool gtksharp_drag_context_get_is_source (IntPtr ptr);
|
||||
|
||||
public bool IsSource {
|
||||
get {
|
||||
return gtksharp_drag_context_get_is_source (this.Handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DllImport("gdksharpglue-2")]
|
||||
static extern IntPtr gtksharp_drag_context_get_source_window (IntPtr ptr);
|
||||
|
||||
public Gdk.Window SourceWindow {
|
||||
get {
|
||||
return GLib.Object.GetObject (gtksharp_drag_context_get_source_window (this.Handle), false) as Gdk.Window;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DllImport("gdksharpglue-2")]
|
||||
static extern IntPtr gtksharp_drag_context_get_dest_window (IntPtr ptr);
|
||||
|
||||
public Gdk.Window DestWindow {
|
||||
get {
|
||||
return GLib.Object.GetObject (gtksharp_drag_context_get_dest_window (this.Handle), false) as Gdk.Window;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DllImport("gdksharpglue-2")]
|
||||
static extern IntPtr gtksharp_drag_context_get_targets (IntPtr ptr);
|
||||
|
||||
|
@ -76,43 +36,3 @@ public Atom [] Targets {
|
|||
return entries;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DllImport("gdksharpglue-2")]
|
||||
static extern DragAction gtksharp_drag_context_get_actions (IntPtr ptr);
|
||||
|
||||
public DragAction Actions {
|
||||
get {
|
||||
return gtksharp_drag_context_get_actions (this.Handle);
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("gdksharpglue-2")]
|
||||
static extern DragAction gtksharp_drag_context_get_suggested_action (IntPtr ptr);
|
||||
|
||||
public DragAction SuggestedAction {
|
||||
get {
|
||||
return gtksharp_drag_context_get_suggested_action (this.Handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DllImport("gdksharpglue-2")]
|
||||
static extern DragAction gtksharp_drag_context_get_action (IntPtr ptr);
|
||||
|
||||
public DragAction Action {
|
||||
get {
|
||||
return gtksharp_drag_context_get_action (this.Handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[DllImport("gdksharpglue-2")]
|
||||
static extern uint gtksharp_drag_context_get_start_time (IntPtr ptr);
|
||||
|
||||
public uint StartTime {
|
||||
get {
|
||||
return gtksharp_drag_context_get_start_time (this.Handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -42,20 +42,28 @@
|
|||
<attr path="/api/namespace/object[@cname='GdkBitmap']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkBitmap']/method[@name='CreateFromData']" name="name">CreateBitmapFromData</attr>
|
||||
<move-node path="/api/namespace/object[@cname='GdkBitmap']/method[@name='CreateBitmapFromData']">/api/namespace/object[@cname='GdkPixmap']</move-node>
|
||||
<attr path="/api/namespace/object[@cname='GdkColormap']/field[@name='Colors']" name="array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkColormap']/method[@name='AllocColor']/*/*[@type='GdkColor*']" name="pass_as">ref</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkColormap']/method[@name='AllocColors']/*/*[@type='GdkColor*']" name="array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkColormap']/method[@name='AllocColors']/*/*[@name='success']" name="array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkColormap']/method[@name='QueryColor']/*/*[@type='GdkColor*']" name="pass_as">ref</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkColormap']/method[@name='FreeColors']/*/*[@type='GdkColor*']" name="array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDevice']/field[@name='Name']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDevice']/field[@name='Source']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDevice']/field[@name='Mode']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDevice']/field[@name='HasCursor']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDevice']/field[@name='NumAxes']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDevice']/field[@name='NumKeys']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDevice']/method[@name='GetAxis']/*/*[@name='axes']" name="array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDevice']/method[@name='FreeHistory']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDevice']/method[@name='GetHistory']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDevice']/method[@name='GetState']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDevice']/method[@name='SetSource']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDisplay']/method[@name='AddClientMessageFilter']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDisplay']/method[@name='GetPointer']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDisplay']/method[@name='ListDevices']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDisplayManager']/method[@name='ListDisplays']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDragContext']/field[@cname='protocol']" name="name">DragProtocol</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDragContext']/field[@cname='targets']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDrawable']/method[@name='DrawGrayImage']/*/*[@name='buf']" name="array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDrawable']/method[@name='DrawIndexedImage']/*/*[@name='buf']" name="array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDrawable']/method[@name='DrawRgbImage']/*/*[@name='rgb_buf']" name="array">1</attr>
|
||||
|
@ -66,6 +74,8 @@
|
|||
<attr path="/api/namespace/object[@cname='GdkDrawable']/method[@name='DrawPolygon']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDrawable']/method[@name='GetSize']/*/*[@type='gint*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDrawable']/method[@name='SetData']/*/*[@name='destroy_func']" name="type">gpointer</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkImage']/field[@name='Mem']" name="access">private</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkImage']/field[@name='WindowingData']" name="access">private</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkKeymap']/method[@name='GetEntriesForKeycode']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkKeymap']/method[@name='GetEntriesForKeyval']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixbuf']/constructor[@cname='gdk_pixbuf_new_from_data']" name="hidden">1</attr>
|
||||
|
|
|
@ -5,6 +5,7 @@ SYMBOLS = gdk-symbols.xml
|
|||
INCLUDE_API = ../pango/pango-api.xml
|
||||
METADATA = Gdk.metadata
|
||||
references = ../glib/glib-sharp.dll ../pango/pango-sharp.dll
|
||||
glue_includes = gdk/gdk.h
|
||||
|
||||
sources = \
|
||||
EventButton.cs \
|
||||
|
|
|
@ -8,6 +8,8 @@ libgdksharpglue_2_la_SOURCES = \
|
|||
vmglueheaders.h \
|
||||
windowmanager.c
|
||||
|
||||
nodist_libgdksharpglue_2_la_SOURCES = generated.c
|
||||
|
||||
# Adding a new glue file?
|
||||
# Please remember to update makefile.win32
|
||||
|
||||
|
|
|
@ -23,54 +23,8 @@
|
|||
#include <gdk/gdk.h>
|
||||
|
||||
/* Forward declarations */
|
||||
gchar* gtksharp_gdk_device_get_name (GdkDevice *device);
|
||||
GdkInputSource gtksharp_gdk_device_get_source (GdkDevice *device);
|
||||
GdkInputMode gtksharp_gdk_device_get_mode (GdkDevice *device);
|
||||
gboolean gtksharp_gdk_device_has_cursor (GdkDevice *device);
|
||||
gint gtksharp_gdk_device_get_num_axes (GdkDevice *device);
|
||||
gint gtksharp_gdk_device_get_num_keys (GdkDevice *device);
|
||||
GdkDeviceAxis* gtksharp_gdk_device_get_axes (GdkDevice *device);
|
||||
GdkDeviceKey* gtksharp_gdk_device_get_keys (GdkDevice *device);
|
||||
GdkDeviceAxis gtksharp_gdk_device_get_device_axis (GdkDevice *device, guint i);
|
||||
GdkDeviceKey gtksharp_gdk_device_get_device_key (GdkDevice *device, guint i);
|
||||
/* */
|
||||
|
||||
|
||||
gchar*
|
||||
gtksharp_gdk_device_get_name (GdkDevice *device)
|
||||
{
|
||||
return device->name;
|
||||
}
|
||||
|
||||
GdkInputSource
|
||||
gtksharp_gdk_device_get_source (GdkDevice *device)
|
||||
{
|
||||
return device->source;
|
||||
}
|
||||
|
||||
GdkInputMode
|
||||
gtksharp_gdk_device_get_mode (GdkDevice *device)
|
||||
{
|
||||
return device->mode;
|
||||
}
|
||||
|
||||
gboolean
|
||||
gtksharp_gdk_device_has_cursor (GdkDevice *device)
|
||||
{
|
||||
return device->has_cursor;
|
||||
}
|
||||
|
||||
gint
|
||||
gtksharp_gdk_device_get_num_axes (GdkDevice *device)
|
||||
{
|
||||
return device->num_axes;
|
||||
}
|
||||
|
||||
gint
|
||||
gtksharp_gdk_device_get_num_keys (GdkDevice *device)
|
||||
{
|
||||
return device->num_keys;
|
||||
}
|
||||
|
||||
GdkDeviceAxis
|
||||
gtksharp_gdk_device_get_device_axis (GdkDevice *device, guint i)
|
||||
|
|
|
@ -21,42 +21,6 @@
|
|||
|
||||
#include <gdk/gdkdnd.h>
|
||||
|
||||
GdkDragProtocol gtksharp_drag_context_get_protocol (GdkDragContext *context);
|
||||
|
||||
GdkDragProtocol
|
||||
gtksharp_drag_context_get_protocol (GdkDragContext *context)
|
||||
{
|
||||
return context->protocol;
|
||||
}
|
||||
|
||||
|
||||
gboolean gtksharp_drag_context_get_is_source (GdkDragContext *context);
|
||||
|
||||
gboolean
|
||||
gtksharp_drag_context_get_is_source (GdkDragContext *context)
|
||||
{
|
||||
return context->is_source;
|
||||
}
|
||||
|
||||
|
||||
GdkWindow *gtksharp_drag_context_get_source_window (GdkDragContext *context);
|
||||
|
||||
GdkWindow *
|
||||
gtksharp_drag_context_get_source_window (GdkDragContext *context)
|
||||
{
|
||||
return context->source_window;
|
||||
}
|
||||
|
||||
|
||||
GdkWindow *gtksharp_drag_context_get_dest_window (GdkDragContext *context);
|
||||
|
||||
GdkWindow *
|
||||
gtksharp_drag_context_get_dest_window (GdkDragContext *context)
|
||||
{
|
||||
return context->dest_window;
|
||||
}
|
||||
|
||||
|
||||
GList *gtksharp_drag_context_get_targets (GdkDragContext *context);
|
||||
|
||||
GList *
|
||||
|
@ -64,39 +28,3 @@ gtksharp_drag_context_get_targets (GdkDragContext *context)
|
|||
{
|
||||
return context->targets;
|
||||
}
|
||||
|
||||
|
||||
GdkDragAction gtksharp_drag_context_get_actions (GdkDragContext *context);
|
||||
|
||||
GdkDragAction
|
||||
gtksharp_drag_context_get_actions (GdkDragContext *context)
|
||||
{
|
||||
return context->actions;
|
||||
}
|
||||
|
||||
|
||||
GdkDragAction gtksharp_drag_context_get_suggested_action (GdkDragContext *context);
|
||||
|
||||
GdkDragAction
|
||||
gtksharp_drag_context_get_suggested_action (GdkDragContext *context)
|
||||
{
|
||||
return context->suggested_action;
|
||||
}
|
||||
|
||||
|
||||
GdkDragAction gtksharp_drag_context_get_action (GdkDragContext *context);
|
||||
|
||||
GdkDragAction
|
||||
gtksharp_drag_context_get_action (GdkDragContext *context)
|
||||
{
|
||||
return context->action;
|
||||
}
|
||||
|
||||
|
||||
guint32 gtksharp_drag_context_get_start_time (GdkDragContext *context);
|
||||
|
||||
guint32
|
||||
gtksharp_drag_context_get_start_time (GdkDragContext *context)
|
||||
{
|
||||
return context->start_time;
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ GLUE_OBJS = \
|
|||
dragcontext.o \
|
||||
device.o \
|
||||
event.o \
|
||||
generated.o \
|
||||
selection.o \
|
||||
win32dll.o
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ namespace GtkSharp.Generation {
|
|||
|
||||
public abstract class ClassBase : GenBase {
|
||||
protected Hashtable props = new Hashtable();
|
||||
protected Hashtable fields = new Hashtable();
|
||||
protected Hashtable sigs = new Hashtable();
|
||||
protected Hashtable methods = new Hashtable();
|
||||
protected ArrayList interfaces = new ArrayList();
|
||||
|
@ -94,6 +95,13 @@ namespace GtkSharp.Generation {
|
|||
props.Add (name, new Property (member, this));
|
||||
break;
|
||||
|
||||
case "field":
|
||||
name = member.GetAttribute("name");
|
||||
while (fields.ContainsKey (name))
|
||||
name += "mangled";
|
||||
fields.Add (name, new ObjectField (member, this));
|
||||
break;
|
||||
|
||||
case "signal":
|
||||
name = member.GetAttribute("name");
|
||||
while (sigs.ContainsKey(name))
|
||||
|
@ -132,6 +140,7 @@ namespace GtkSharp.Generation {
|
|||
switch (name) {
|
||||
case "method":
|
||||
case "property":
|
||||
case "field":
|
||||
case "signal":
|
||||
case "implements":
|
||||
case "constructor":
|
||||
|
@ -194,6 +203,16 @@ namespace GtkSharp.Generation {
|
|||
}
|
||||
}
|
||||
|
||||
protected void GenFields (GenerationInfo gen_info)
|
||||
{
|
||||
foreach (ObjectField field in fields.Values) {
|
||||
if (field.Validate ())
|
||||
field.Generate (gen_info, "\t\t");
|
||||
else
|
||||
Console.WriteLine("in Object " + QualifiedName);
|
||||
}
|
||||
}
|
||||
|
||||
private void ParseImplements (XmlElement member)
|
||||
{
|
||||
foreach (XmlNode node in member.ChildNodes) {
|
||||
|
@ -211,7 +230,8 @@ namespace GtkSharp.Generation {
|
|||
{
|
||||
string mname = method.Name;
|
||||
return ((method.IsSetter || (method.IsGetter && mname.StartsWith("Get"))) &&
|
||||
(props != null) && props.ContainsKey(mname.Substring(3)));
|
||||
((props != null) && props.ContainsKey(mname.Substring(3)) ||
|
||||
(fields != null) && fields.ContainsKey(mname.Substring(3))));
|
||||
}
|
||||
|
||||
public void GenMethods (GenerationInfo gen_info, Hashtable collisions, ClassBase implementor)
|
||||
|
|
|
@ -40,6 +40,7 @@ namespace GtkSharp.Generation {
|
|||
string custom_dir = "";
|
||||
string assembly_name = "";
|
||||
string glue_filename = "";
|
||||
string glue_includes = "";
|
||||
string gluelib_name = "";
|
||||
|
||||
SymbolTable table = SymbolTable.Table;
|
||||
|
@ -71,6 +72,10 @@ namespace GtkSharp.Generation {
|
|||
generate = false;
|
||||
glue_filename = arg.Substring (16);
|
||||
continue;
|
||||
} else if (arg.StartsWith ("--glue-includes=")) {
|
||||
generate = false;
|
||||
glue_includes = arg.Substring (16);
|
||||
continue;
|
||||
} else if (arg.StartsWith ("--gluelib-name=")) {
|
||||
generate = false;
|
||||
gluelib_name = arg.Substring (15);
|
||||
|
@ -85,8 +90,8 @@ namespace GtkSharp.Generation {
|
|||
}
|
||||
|
||||
GenerationInfo gen_info = null;
|
||||
if (dir != "" || assembly_name != "" || glue_filename != "" || gluelib_name != "")
|
||||
gen_info = new GenerationInfo (dir, custom_dir, assembly_name, glue_filename, gluelib_name);
|
||||
if (dir != "" || assembly_name != "" || glue_filename != "" || glue_includes != "" || gluelib_name != "")
|
||||
gen_info = new GenerationInfo (dir, custom_dir, assembly_name, glue_filename, glue_includes, gluelib_name);
|
||||
|
||||
foreach (IGeneratable gen in gens) {
|
||||
if (gen_info == null)
|
||||
|
|
|
@ -28,6 +28,17 @@ namespace GtkSharp.Generation {
|
|||
public abstract class FieldBase : PropertyBase {
|
||||
public FieldBase (XmlElement elem, ClassBase container_type) : base (elem, container_type) {}
|
||||
|
||||
public bool Validate ()
|
||||
{
|
||||
if (!Ignored && !Hidden && CSType == "") {
|
||||
Console.Write("Field {0} has unknown Type {1} ", Name, CType);
|
||||
Statistics.ThrottledCount++;
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
protected virtual bool Readable {
|
||||
get {
|
||||
return elem.GetAttribute ("readable") != "false";
|
||||
|
@ -62,7 +73,191 @@ namespace GtkSharp.Generation {
|
|||
|
||||
public bool Ignored {
|
||||
get {
|
||||
return IsArray || Access == "private";
|
||||
if (container_type.GetProperty (Name) != null)
|
||||
return true;
|
||||
if (IsArray)
|
||||
return true;
|
||||
if (Access == "private" && (Getter == null) && (Setter == null))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
string getterName, setterName;
|
||||
string getOffsetName, offsetName;
|
||||
|
||||
void CheckGlue ()
|
||||
{
|
||||
getterName = setterName = getOffsetName = null;
|
||||
if (Access != "public")
|
||||
return;
|
||||
|
||||
string prefix = (container_type.NS + "Sharp_" + container_type.NS + "_" + container_type.Name).ToLower ();
|
||||
|
||||
if (IsBitfield) {
|
||||
if (Readable && Getter == null)
|
||||
getterName = prefix + "_get_" + CName;
|
||||
if (Writable && Setter == null)
|
||||
setterName = prefix + "_set_" + CName;
|
||||
} else {
|
||||
if ((Readable && Getter == null) || (Writable && Setter == null)) {
|
||||
offsetName = CName + "_offset";
|
||||
getOffsetName = prefix + "_get_" + offsetName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected override void GenerateImports (GenerationInfo gen_info, string indent)
|
||||
{
|
||||
StreamWriter sw = gen_info.Writer;
|
||||
SymbolTable table = SymbolTable.Table;
|
||||
|
||||
if (getterName != null) {
|
||||
sw.WriteLine (indent + "[DllImport (\"{0}\")]", gen_info.GluelibName);
|
||||
sw.WriteLine (indent + "extern static {0} {1} ({2} raw);",
|
||||
table.GetMarshalReturnType (CType), getterName,
|
||||
container_type.MarshalType);
|
||||
}
|
||||
|
||||
if (setterName != null) {
|
||||
sw.WriteLine (indent + "[DllImport (\"{0}\")]", gen_info.GluelibName);
|
||||
sw.WriteLine (indent + "extern static void {0} ({1} raw, {2} value);",
|
||||
setterName, container_type.MarshalType, table.GetMarshalType (CType));
|
||||
}
|
||||
|
||||
if (getOffsetName != null) {
|
||||
sw.WriteLine (indent + "[DllImport (\"{0}\")]", gen_info.GluelibName);
|
||||
sw.WriteLine (indent + "extern static uint {0} ();", getOffsetName);
|
||||
sw.WriteLine ();
|
||||
sw.WriteLine (indent + "static uint " + offsetName + " = " + getOffsetName + " ();");
|
||||
}
|
||||
|
||||
base.GenerateImports (gen_info, indent);
|
||||
}
|
||||
|
||||
public override void Generate (GenerationInfo gen_info, string indent)
|
||||
{
|
||||
if (Ignored || Hidden)
|
||||
return;
|
||||
|
||||
CheckGlue ();
|
||||
if ((getterName != null || setterName != null || getOffsetName != null) &&
|
||||
gen_info.GlueWriter == null) {
|
||||
Console.WriteLine ("No glue-filename specified, can't create glue for {0}.{1}",
|
||||
container_type.Name, Name);
|
||||
return;
|
||||
}
|
||||
|
||||
GenerateImports (gen_info, indent);
|
||||
|
||||
SymbolTable table = SymbolTable.Table;
|
||||
StreamWriter sw = gen_info.Writer;
|
||||
string modifiers = elem.HasAttribute ("new_flag") ? "new " : "";
|
||||
bool is_struct = table.IsStruct (CType) || table.IsBoxed (CType);
|
||||
|
||||
sw.WriteLine (indent + "public " + modifiers + CSType + " " + Name + " {");
|
||||
|
||||
if (Getter != null) {
|
||||
sw.Write (indent + "\tget ");
|
||||
Getter.GenerateBody (gen_info, "\t");
|
||||
sw.WriteLine ("");
|
||||
} else if (getterName != null) {
|
||||
sw.WriteLine (indent + "\tget {");
|
||||
sw.WriteLine (indent + "\t\treturn " + table.FromNativeReturn (ctype, getterName + " (" + container_type.CallByName () + ")") + ";");
|
||||
sw.WriteLine (indent + "\t}");
|
||||
} else if (Readable && offsetName != null) {
|
||||
sw.WriteLine (indent + "\tget {");
|
||||
sw.WriteLine (indent + "\t\tunsafe {");
|
||||
if (is_struct) {
|
||||
sw.WriteLine (indent + "\t\t\t" + CSType + "* raw_ptr = (" + CSType + "*)(((byte*)" + container_type.CallByName () + ") + " + offsetName + ");");
|
||||
sw.WriteLine (indent + "\t\t\treturn *raw_ptr;");
|
||||
} else {
|
||||
sw.WriteLine (indent + "\t\t\t" + table.GetMarshalReturnType (CType) + "* raw_ptr = (" + table.GetMarshalReturnType (CType) + "*)(((byte*)" + container_type.CallByName () + ") + " + offsetName + ");");
|
||||
sw.WriteLine (indent + "\t\t\treturn " + table.FromNativeReturn (ctype, "(*raw_ptr)") + ";");
|
||||
}
|
||||
sw.WriteLine (indent + "\t\t}");
|
||||
sw.WriteLine (indent + "\t}");
|
||||
}
|
||||
|
||||
if (Setter != null) {
|
||||
sw.Write (indent + "\tset ");
|
||||
Setter.GenerateBody (gen_info, "\t");
|
||||
sw.WriteLine ("");
|
||||
} else if (setterName != null) {
|
||||
sw.WriteLine (indent + "\tset {");
|
||||
sw.WriteLine (indent + "\t\t" + setterName + " (" + container_type.CallByName () + ", " + table.CallByName (ctype, "value") + ");");
|
||||
sw.WriteLine (indent + "\t}");
|
||||
} else if (Writable && offsetName != null) {
|
||||
sw.WriteLine (indent + "\tset {");
|
||||
sw.WriteLine (indent + "\t\tunsafe {");
|
||||
if (is_struct) {
|
||||
sw.WriteLine (indent + "\t\t\t" + CSType + "* raw_ptr = (" + CSType + "*)(((byte*)" + container_type.CallByName () + ") + " + offsetName + ");");
|
||||
sw.WriteLine (indent + "\t\t\t*raw_ptr = value;");
|
||||
} else {
|
||||
sw.WriteLine (indent + "\t\t\t" + table.GetMarshalReturnType (CType) + "* raw_ptr = (" + table.GetMarshalReturnType (CType) + "*)(((byte*)" + container_type.CallByName () + ") + " + offsetName + ");");
|
||||
sw.WriteLine (indent + "\t\t\t*raw_ptr = " + table.CallByName (ctype, "value") + ";");
|
||||
}
|
||||
sw.WriteLine (indent + "\t\t}");
|
||||
sw.WriteLine (indent + "\t}");
|
||||
}
|
||||
|
||||
sw.WriteLine (indent + "}");
|
||||
sw.WriteLine ("");
|
||||
|
||||
if (getterName != null || setterName != null || getOffsetName != null)
|
||||
GenerateGlue (gen_info);
|
||||
}
|
||||
|
||||
protected void GenerateGlue (GenerationInfo gen_info)
|
||||
{
|
||||
StreamWriter sw = gen_info.GlueWriter;
|
||||
SymbolTable table = SymbolTable.Table;
|
||||
|
||||
string FieldCType = CType.Replace ("-", " ");
|
||||
bool byref = table[CType] is ByRefGen || table[CType] is StructGen;
|
||||
string GlueCType = byref ? FieldCType + " *" : FieldCType;
|
||||
string ContainerCType = container_type.CName;
|
||||
string ContainerCName = container_type.Name.ToLower ();
|
||||
|
||||
if (getterName != null) {
|
||||
sw.WriteLine ("{0} {1} ({2} *{3});",
|
||||
GlueCType, getterName, ContainerCType, ContainerCName);
|
||||
}
|
||||
if (setterName != null) {
|
||||
sw.WriteLine ("void {0} ({1} *{2}, {3} value);",
|
||||
setterName, ContainerCType, ContainerCName, GlueCType);
|
||||
}
|
||||
if (getOffsetName != null)
|
||||
sw.WriteLine ("guint {0} (void);", getOffsetName);
|
||||
sw.WriteLine ("");
|
||||
|
||||
if (getterName != null) {
|
||||
sw.WriteLine (GlueCType);
|
||||
sw.WriteLine ("{0} ({1} *{2})", getterName, ContainerCType, ContainerCName);
|
||||
sw.WriteLine ("{");
|
||||
sw.WriteLine ("\treturn ({0}){1}{2}->{3};", GlueCType,
|
||||
byref ? "&" : "", ContainerCName, CName);
|
||||
sw.WriteLine ("}");
|
||||
sw.WriteLine ("");
|
||||
}
|
||||
if (setterName != null) {
|
||||
sw.WriteLine ("void");
|
||||
sw.WriteLine ("{0} ({1} *{2}, {3} value)",
|
||||
setterName, ContainerCType, ContainerCName, GlueCType);
|
||||
sw.WriteLine ("{");
|
||||
sw.WriteLine ("\t{0}->{1} = ({2}){3}value;", ContainerCName, CName,
|
||||
FieldCType, byref ? "*" : "");
|
||||
sw.WriteLine ("}");
|
||||
sw.WriteLine ("");
|
||||
}
|
||||
if (getOffsetName != null) {
|
||||
sw.WriteLine ("guint");
|
||||
sw.WriteLine ("{0} (void)", getOffsetName);
|
||||
sw.WriteLine ("{");
|
||||
sw.WriteLine ("\treturn (guint)G_STRUCT_OFFSET ({0}, {1});",
|
||||
ContainerCType, CName);
|
||||
sw.WriteLine ("}");
|
||||
sw.WriteLine ("");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,6 +32,7 @@ namespace GtkSharp.Generation {
|
|||
string custom_dir;
|
||||
string assembly_name;
|
||||
string glue_filename;
|
||||
string glue_includes;
|
||||
string gluelib_name;
|
||||
StreamWriter sw;
|
||||
|
||||
|
@ -44,16 +45,18 @@ namespace GtkSharp.Generation {
|
|||
assembly_name = ns_name.ToLower () + "-sharp";
|
||||
gluelib_name = "";
|
||||
glue_filename = "";
|
||||
glue_includes = "";
|
||||
}
|
||||
|
||||
public GenerationInfo (string dir, string assembly_name) : this (dir, dir, assembly_name, "", "") {}
|
||||
public GenerationInfo (string dir, string assembly_name) : this (dir, dir, assembly_name, "", "", "") {}
|
||||
|
||||
public GenerationInfo (string dir, string custom_dir, string assembly_name, string glue_filename, string gluelib_name)
|
||||
public GenerationInfo (string dir, string custom_dir, string assembly_name, string glue_filename, string glue_includes, string gluelib_name)
|
||||
{
|
||||
this.dir = dir;
|
||||
this.custom_dir = custom_dir;
|
||||
this.assembly_name = assembly_name;
|
||||
this.glue_filename = glue_filename;
|
||||
this.glue_includes = glue_includes;
|
||||
this.gluelib_name = gluelib_name;
|
||||
}
|
||||
|
||||
|
@ -106,6 +109,14 @@ namespace GtkSharp.Generation {
|
|||
glue_sw.WriteLine ("// This file was generated by the Gtk# code generator.");
|
||||
glue_sw.WriteLine ("// Any changes made will be lost if regenerated.");
|
||||
glue_sw.WriteLine ();
|
||||
|
||||
if (glue_includes != "") {
|
||||
foreach (string header in glue_includes.Split (new char[] {',', ' '})) {
|
||||
if (header != "")
|
||||
glue_sw.WriteLine ("#include <{0}>", header);
|
||||
}
|
||||
glue_sw.WriteLine ("");
|
||||
}
|
||||
}
|
||||
|
||||
return glue_sw;
|
||||
|
|
|
@ -33,6 +33,7 @@ sources = \
|
|||
MethodBase.cs \
|
||||
MethodBody.cs \
|
||||
Method.cs \
|
||||
ObjectField.cs \
|
||||
ObjectGen.cs \
|
||||
OpaqueGen.cs \
|
||||
Parameters.cs \
|
||||
|
|
48
generator/ObjectField.cs
Normal file
48
generator/ObjectField.cs
Normal file
|
@ -0,0 +1,48 @@
|
|||
// GtkSharp.Generation.ObjectField.cs - autogenerated field glue
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the GNU General Public
|
||||
// License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
namespace GtkSharp.Generation {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using System.Xml;
|
||||
|
||||
public class ObjectField : FieldBase {
|
||||
|
||||
public ObjectField (XmlElement elem, ClassBase container_type) : base (elem, container_type)
|
||||
{
|
||||
if (CType == "char*" || CType == "gchar*")
|
||||
ctype = "const-" + CType;
|
||||
}
|
||||
|
||||
protected override bool Writable {
|
||||
get {
|
||||
return elem.GetAttribute ("writeable") == "true";
|
||||
}
|
||||
}
|
||||
|
||||
protected override string DefaultAccess {
|
||||
get {
|
||||
return "private";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -44,7 +44,6 @@ namespace GtkSharp.Generation {
|
|||
XmlElement member = (XmlElement) node;
|
||||
|
||||
switch (node.Name) {
|
||||
case "field":
|
||||
case "callback":
|
||||
Statistics.IgnoreCount++;
|
||||
break;
|
||||
|
@ -156,6 +155,7 @@ namespace GtkSharp.Generation {
|
|||
|
||||
GenCtors (gen_info);
|
||||
GenProperties (gen_info);
|
||||
GenFields (gen_info);
|
||||
GenChildProperties (gen_info);
|
||||
|
||||
bool has_sigs = (sigs != null && sigs.Count > 0);
|
||||
|
|
|
@ -67,6 +67,7 @@ namespace GtkSharp.Generation {
|
|||
sw.WriteLine (" {");
|
||||
sw.WriteLine ();
|
||||
|
||||
GenFields (gen_info);
|
||||
GenMethods (gen_info, null, null);
|
||||
GenCtors (gen_info);
|
||||
sw.WriteLine ("#endregion");
|
||||
|
|
|
@ -49,8 +49,12 @@ namespace GtkSharp.Generation {
|
|||
protected string ctype;
|
||||
public string CType {
|
||||
get {
|
||||
if (ctype == null)
|
||||
ctype = elem.GetAttribute ("type");
|
||||
if (ctype == null) {
|
||||
if (elem.GetAttribute("bits") == "1")
|
||||
ctype = "gboolean";
|
||||
else
|
||||
ctype = elem.GetAttribute("type");
|
||||
}
|
||||
return ctype;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace GtkSharp.Generation {
|
|||
|
||||
public abstract class StructBase : ClassBase {
|
||||
|
||||
ArrayList fields = new ArrayList ();
|
||||
new ArrayList fields = new ArrayList ();
|
||||
|
||||
protected StructBase (XmlElement ns, XmlElement elem) : base (ns, elem)
|
||||
{
|
||||
|
@ -112,16 +112,19 @@ namespace GtkSharp.Generation {
|
|||
}
|
||||
}
|
||||
|
||||
protected void GenFields (GenerationInfo gen_info)
|
||||
protected new void GenFields (GenerationInfo gen_info)
|
||||
{
|
||||
StructField.bitfields = 0;
|
||||
int bitfields = 0;
|
||||
bool need_field = true;
|
||||
|
||||
foreach (StructField field in fields) {
|
||||
if (field.IsBit) {
|
||||
if (need_field)
|
||||
if (field.IsBitfield) {
|
||||
if (need_field) {
|
||||
StreamWriter sw = gen_info.Writer;
|
||||
|
||||
sw.WriteLine ("\t\tprivate uint _bitfield{0};\n", bitfields++);
|
||||
need_field = false;
|
||||
else
|
||||
continue;
|
||||
}
|
||||
} else
|
||||
need_field = true;
|
||||
field.Generate (gen_info, "\t\t");
|
||||
|
@ -133,7 +136,8 @@ namespace GtkSharp.Generation {
|
|||
foreach (StructField field in fields) {
|
||||
if (!field.Validate ()) {
|
||||
Console.WriteLine ("in Struct " + QualifiedName);
|
||||
return false;
|
||||
if (!field.IsPointer)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -60,8 +60,6 @@ namespace GtkSharp.Generation {
|
|||
string type = base.CSType;
|
||||
if (IsArray)
|
||||
type += "[]";
|
||||
else if (IsBit)
|
||||
type = "uint";
|
||||
else if ((IsPointer || SymbolTable.Table.IsOpaque (CType)) && type != "string")
|
||||
type = "IntPtr";
|
||||
else if (SymbolTable.Table.IsCallback (CType))
|
||||
|
@ -71,12 +69,6 @@ namespace GtkSharp.Generation {
|
|||
}
|
||||
}
|
||||
|
||||
public bool IsBit {
|
||||
get {
|
||||
return elem.GetAttribute("bits") == "1";
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsPadding {
|
||||
get {
|
||||
return (CName.StartsWith ("dummy") || CName.StartsWith ("padding"));
|
||||
|
@ -94,11 +86,7 @@ namespace GtkSharp.Generation {
|
|||
string result = "";
|
||||
if ((IsPointer || SymbolTable.Table.IsOpaque (CType)) && CSType != "string")
|
||||
result = "_";
|
||||
|
||||
if (IsBit)
|
||||
result = String.Format ("_bitfield{0}", bitfields++);
|
||||
else
|
||||
result += SymbolTable.Table.MangleName (CName);
|
||||
result += SymbolTable.Table.MangleName (CName);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
@ -124,16 +112,6 @@ namespace GtkSharp.Generation {
|
|||
}
|
||||
}
|
||||
|
||||
public bool Validate ()
|
||||
{
|
||||
if (CSType == "" && !Hidden) {
|
||||
Console.Write ("Field {0} has unknown Type {1} ", Name, CType);
|
||||
Statistics.ThrottledCount++;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void Generate (GenerationInfo gen_info, string indent)
|
||||
{
|
||||
if (Hidden)
|
||||
|
@ -153,9 +131,8 @@ namespace GtkSharp.Generation {
|
|||
sw.WriteLine (indent + "{0} {1} {2};", Access, CSType, StudlyName);
|
||||
} else if (IsPadding) {
|
||||
sw.WriteLine (indent + "private {0} {1};", CSType, Name);
|
||||
} else if (IsBit) {
|
||||
// FIXME
|
||||
sw.WriteLine (indent + "private {0} {1};", CSType, Name);
|
||||
} else if (IsBitfield) {
|
||||
base.Generate (gen_info, indent);
|
||||
} else if (table.IsCallback (CType)) {
|
||||
// FIXME
|
||||
sw.WriteLine (indent + "private {0} {1};", CSType, Name);
|
||||
|
@ -173,7 +150,7 @@ namespace GtkSharp.Generation {
|
|||
sw.WriteLine (indent + "private {0} {1};", CSType, Name);
|
||||
|
||||
if (Access != "private") {
|
||||
sw.WriteLine (indent + "" + Access + " " + wrapped + " " + wrapped_name + " {");
|
||||
sw.WriteLine (indent + Access + " " + wrapped + " " + wrapped_name + " {");
|
||||
sw.WriteLine (indent + "\tget { ");
|
||||
sw.WriteLine (indent + "\t\treturn " + table.FromNativeReturn(CType, Name) + ";");
|
||||
sw.WriteLine (indent + "\t}");
|
||||
|
@ -185,7 +162,7 @@ namespace GtkSharp.Generation {
|
|||
sw.WriteLine (indent + "private {0} {1};", CSType, Name);
|
||||
sw.WriteLine ();
|
||||
if (Access != "private") {
|
||||
sw.WriteLine (indent + "" + Access + " " + wrapped + " " + wrapped_name + " {");
|
||||
sw.WriteLine (indent + Access + " " + wrapped + " " + wrapped_name + " {");
|
||||
sw.WriteLine (indent + "\tget { return " + table.FromNativeReturn (CType, Name) + "; }");
|
||||
sw.WriteLine (indent + "}");
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
SUBDIRS = glue
|
||||
SUBDIRS = . glue
|
||||
|
||||
if ENABLE_GLADE
|
||||
pkg = glade
|
||||
|
@ -12,6 +12,7 @@ INCLUDE_API = ../pango/pango-api.xml ../atk/atk-api.xml ../gdk/gdk-api.xml ../gt
|
|||
METADATA = Glade.metadata
|
||||
SYMBOLS =
|
||||
references = ../glib/glib-sharp.dll ../pango/pango-sharp.dll ../atk/atk-sharp.dll ../gdk/gdk-sharp.dll ../gtk/gtk-sharp.dll
|
||||
glue_includes = glade/glade.h,glade/glade-parser.h
|
||||
|
||||
sources = \
|
||||
HandlerNotFoundExeception.cs \
|
||||
|
|
|
@ -11,6 +11,8 @@ libgladesharpglue_2_la_LDFLAGS = -module -avoid-version -no-undefined
|
|||
libgladesharpglue_2_la_SOURCES = \
|
||||
gladexml.c
|
||||
|
||||
nodist_libgladesharpglue_2_la_SOURCES = generated.c
|
||||
|
||||
libgladesharpglue_2_la_LIBADD = $(GLADE_LIBS)
|
||||
|
||||
INCLUDES = $(GLADE_CFLAGS) $(GTK_SHARP_VERSION_CFLAGS) -I$(top_srcdir)
|
||||
|
|
|
@ -32,19 +32,3 @@
|
|||
affine = new double [6];
|
||||
gnome_canvas_w2c_affine(Handle, affine);
|
||||
}
|
||||
|
||||
[DllImport("gnomesharpglue-2")]
|
||||
static extern double gnomesharp_canvas_get_pixels_per_unit (IntPtr raw);
|
||||
|
||||
[DllImport("gnomecanvas-2")]
|
||||
static extern void gnome_canvas_set_pixels_per_unit(IntPtr raw, double pixels_per_unit);
|
||||
|
||||
public double PixelsPerUnit {
|
||||
get {
|
||||
return gnomesharp_canvas_get_pixels_per_unit (Handle);
|
||||
}
|
||||
set {
|
||||
gnome_canvas_set_pixels_per_unit (Handle, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -34,12 +34,6 @@
|
|||
g_object_ref (Handle);
|
||||
}
|
||||
|
||||
[DllImport("gnomesharpglue-2")]
|
||||
static extern IntPtr gtksharp_gnome_canvas_item_get_canvas (IntPtr i);
|
||||
public Canvas Canvas {
|
||||
get { return GLib.Object.GetObject (gtksharp_gnome_canvas_item_get_canvas (this.Handle), false) as Canvas; }
|
||||
}
|
||||
|
||||
[DllImport("gnomecanvas-2")]
|
||||
static extern void gnome_canvas_item_i2c_affine(IntPtr raw, double[] affine);
|
||||
|
||||
|
|
|
@ -1,6 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<metadata>
|
||||
<attr path="/api/namespace/object[@cname='GnomeApp']/constructor[@cname='gnome_app_new']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeApp']/field[@name='AccelGroup']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeApp']/field[@name='Contents']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeApp']/field[@cname='menubar']" name="name">Menus</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeApp']/field[@name='Menus']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeApp']/field[@name='Menus']" name="type">GtkMenuBar*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeApp']/field[@name='Name']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeApp']/field[@name='Prefix']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeApp']/field[@name='Statusbar']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDateEdit']/constructor[@cname='gnome_date_edit_new_flags']/*/*[@name='flags']" name="property_name">dateedit_flags</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDateEdit']/constructor[@cname='gnome_date_edit_new_flags']/*/*[@name='the_time']" name="property_name">time</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDateEdit']/constructor[@cname='gnome_date_edit_new']" name="hidden">1</attr>
|
||||
|
@ -26,6 +34,7 @@
|
|||
<attr path="/api/namespace/object[@cname='GnomeAbout']/constructor[@cname='gnome_about_new']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeAbout']/method[@name='Construct']/*/*[@type='const-gchar**']" name="array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeAppBar']/signal[@name='ClearPrompt']" name="name">PromptCleared</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/field[@name='PixelsPerUnit']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='C2w']/*/*[@type='double*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='GetButtPoints']/*/*[@type='double*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='GetColor']/return-type" name="type">gboolean</attr>
|
||||
|
@ -34,7 +43,6 @@
|
|||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='GetMiterPoints']/*/*[@type='double*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='GetScrollOffsets']/*/*[@type='int*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='GetScrollRegion']/*/*[@type='double*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='SetPixelsPerUnit']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='W2c']/*/*[@type='int*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='W2cD']/*/*[@type='double*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='WindowToWorld']/*/*[@type='double*']" name="pass_as">out</attr>
|
||||
|
@ -42,6 +50,7 @@
|
|||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='W2cAffine']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasClipgroup']/property[@name='Wind']" name="type">ArtWindRule</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/constructor[@cname='gnome_canvas_item_new']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/field[@name='Canvas']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/method[@name='Construct']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/method[@name='GetBounds']/*/*[@type='double*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/method[@name='I2cAffine']" name="hidden">1</attr>
|
||||
|
@ -60,15 +69,35 @@
|
|||
<attr path="/api/namespace/object[@cname='GnomeDialog']/method[@name='SetClose']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDialog']/method[@name='SetDefault']" name="new_flag">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruid']/constructor[@cname='gnome_druid_new_with_window']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruid']/field[@type='GtkWidget*']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruid']/field[@type='GtkWidget*']" name="type">GtkButton*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruid']/field[@cname='back']" name="name">BackButton</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruid']/field[@cname='cancel']" name="name">CancelButton</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruid']/field[@cname='finish']" name="name">FinishButton</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruid']/field[@cname='help']" name="name">HelpButton</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruid']/field[@cname='next']" name="name">NextButton</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruid']/method[@cname='gnome_druid_construct_with_window']/*/*[@name='window']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPage']/signal[@name='Back']" name="name">BackClicked</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPage']/signal[@name='Cancel']" name="name">CancelClicked</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPage']/signal[@name='Finish']" name="name">FinishClicked</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPage']/signal[@name='Next']" name="name">NextClicked</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPage']/signal[@name='Prepare']" name="name">Prepared</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageEdge']/field[@cname='background_color']" name="name">BgColor</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageEdge']/field[@cname='logo_background_color']" name="name">LogoBgColor</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageEdge']/field[@cname='logo_image']" name="name">Logo</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageEdge']/field[@cname='top_watermark_image']" name="name">TopWatermark</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageEdge']/field[@cname='watermark_image']" name="name">Watermark</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageEdge']/constructor[@cname='gnome_druid_page_edge_new']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageEdge']/constructor[@cname='gnome_druid_page_edge_new_with_vals']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageEdge']/constructor[@cname='gnome_druid_page_edge_new_aa']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageStandard']/constructor[@cname='gnome_druid_page_standard_new_with_vals']/*/*[@name='logo']" name="null_ok">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageStandard']/constructor[@cname='gnome_druid_page_standard_new_with_vals']/*/*[@name='top_watermark']" name="null_ok">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageStandard']/field[@cname='vbox']" name="name">VBox</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageStandard']/field[@cname='vbox']" name="type">GtkVBox*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageStandard']/property[@name='Background']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageStandard']/property[@name='ContentsBackground']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageStandard']/property[@name='LogoBackground']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageStandard']/property[@name='TitleForeground']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeEntry']/method[@name='GtkEntry']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeEntry']/signal[@name='Activate']" name="name">Activated</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeFileEntry']/method[@name='GnomeEntry']" name="hidden">1</attr>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
SUBDIRS = glue
|
||||
SUBDIRS = . glue
|
||||
|
||||
if ENABLE_GNOME
|
||||
pkg = gnome
|
||||
|
@ -12,6 +12,7 @@ INCLUDE_API = ../pango/pango-api.xml ../atk/atk-api.xml ../gdk/gdk-api.xml ../gt
|
|||
METADATA = Gnome.metadata
|
||||
SYMBOLS =
|
||||
references = ../glib/glib-sharp.dll ../pango/pango-sharp.dll ../atk/atk-sharp.dll ../gdk/gdk-sharp.dll ../gtk/gtk-sharp.dll ../art/art-sharp.dll
|
||||
glue_includes = gnome.h,libgnomeprint/gnome-print.h,libgnomeprint/gnome-print-paper.h
|
||||
|
||||
sources = \
|
||||
BonoboUIVerb.cs \
|
||||
|
|
|
@ -9,13 +9,14 @@ endif
|
|||
libgnomesharpglue_2_la_LDFLAGS = -module -avoid-version -no-undefined
|
||||
|
||||
libgnomesharpglue_2_la_SOURCES = \
|
||||
canvas.c \
|
||||
canvasitem.c \
|
||||
canvaspoints.c \
|
||||
panelapplet.c \
|
||||
program.c \
|
||||
#
|
||||
|
||||
nodist_libgnomesharpglue_2_la_SOURCES = generated.c
|
||||
|
||||
libgnomesharpglue_2_la_LIBADD = $(GNOME_LIBS)
|
||||
|
||||
INCLUDES = $(GNOME_CFLAGS) $(GTK_SHARP_VERSION_CFLAGS) -I$(top_srcdir)
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
/* canvas.c : Glue for accessing fields in a GnomeCanvas
|
||||
*
|
||||
* Author: Mike Kestner (mkestner@ximian.com)
|
||||
*
|
||||
* Copyright (C) 2004 Novell, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of version 2 of the Lesser GNU General
|
||||
* Public License as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this program; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <libgnomecanvas/gnome-canvas.h>
|
||||
|
||||
gdouble gnomesharp_canvas_get_pixels_per_unit (GnomeCanvas *canvas);
|
||||
|
||||
gdouble
|
||||
gnomesharp_canvas_get_pixels_per_unit (GnomeCanvas *canvas)
|
||||
{
|
||||
return canvas->pixels_per_unit;
|
||||
}
|
|
@ -23,14 +23,6 @@
|
|||
|
||||
#include <libgnomecanvas/gnome-canvas.h>
|
||||
|
||||
GnomeCanvas* gtksharp_gnome_canvas_item_get_canvas (GnomeCanvasItem *item);
|
||||
|
||||
GnomeCanvas*
|
||||
gtksharp_gnome_canvas_item_get_canvas (GnomeCanvasItem *item)
|
||||
{
|
||||
return item->canvas;
|
||||
}
|
||||
|
||||
void gnomesharp_canvas_item_base_update (GnomeCanvasItem *item, double *affine, ArtSVP *clip_path, int flags);
|
||||
|
||||
void
|
||||
|
|
|
@ -17,5 +17,6 @@ public AccelKey (Gdk.Key key, Gdk.ModifierType mods, Gtk.AccelFlags flags)
|
|||
{
|
||||
this.Key = key;
|
||||
this.AccelMods = mods;
|
||||
this._bitfield0 = 0;
|
||||
this.AccelFlags = flags;
|
||||
}
|
||||
|
|
|
@ -41,20 +41,6 @@ public Button (string stock_id) : base (IntPtr.Zero)
|
|||
GLib.Marshaller.Free (native);
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern int gtksharp_button_get_in_button (IntPtr button);
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern void gtksharp_button_set_in_button (IntPtr button, int b);
|
||||
|
||||
public bool InButton {
|
||||
get {
|
||||
return gtksharp_button_get_in_button (Handle) == 1 ? true : false;
|
||||
}
|
||||
set {
|
||||
gtksharp_button_set_in_button (Handle, value ? 1 : 0);
|
||||
}
|
||||
}
|
||||
|
||||
public Button (Widget widget) : this ()
|
||||
{
|
||||
Add (widget);
|
||||
|
|
|
@ -25,21 +25,3 @@ public string[] PopdownStrings {
|
|||
gtk_combo_set_popdown_strings(Handle, list.Handle);
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_combo_get_entry(IntPtr i);
|
||||
|
||||
public Gtk.Entry Entry {
|
||||
get {
|
||||
return GLib.Object.GetObject (gtksharp_combo_get_entry(this.Handle), false) as Gtk.Entry;
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_combo_get_button(IntPtr i);
|
||||
|
||||
public Gtk.Button Button {
|
||||
get {
|
||||
return GLib.Object.GetObject (gtksharp_combo_get_button(this.Handle), false) as Gtk.Button;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -100,27 +100,6 @@ public Widget[] FocusChain {
|
|||
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_container_get_focus_child(IntPtr raw);
|
||||
|
||||
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||
static extern void gtk_container_set_focus_child(IntPtr raw, IntPtr child);
|
||||
|
||||
public Gtk.Widget FocusChild {
|
||||
get {
|
||||
IntPtr raw_ret = gtksharp_container_get_focus_child (Handle);
|
||||
Gtk.Widget ret;
|
||||
if (raw_ret == IntPtr.Zero)
|
||||
ret = null;
|
||||
else
|
||||
ret = (Gtk.Widget) GLib.Object.GetObject (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
set {
|
||||
gtk_container_set_focus_child (Handle, value.Handle);
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern void gtksharp_container_base_forall (IntPtr handle, bool include_internals, IntPtr cb, IntPtr data);
|
||||
|
||||
|
|
|
@ -51,18 +51,6 @@ public Dialog (string title, Gtk.Window parent, Gtk.DialogFlags flags, params ob
|
|||
AddButton ((string) button_data [i], (int) button_data [i + 1]);
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_dialog_get_vbox (IntPtr i);
|
||||
public Gtk.VBox VBox {
|
||||
get { return GLib.Object.GetObject (gtksharp_dialog_get_vbox (this.Handle), false) as VBox; }
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_dialog_get_action_area (IntPtr i);
|
||||
public Gtk.HButtonBox ActionArea {
|
||||
get { return GLib.Object.GetObject (gtksharp_dialog_get_action_area (this.Handle), false) as HButtonBox; }
|
||||
}
|
||||
|
||||
public void AddActionWidget (Widget child, ResponseType response)
|
||||
{
|
||||
this.AddActionWidget (child, (int) response);
|
||||
|
|
|
@ -36,110 +36,6 @@ public class FSButton : Gtk.Button {
|
|||
}
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_file_selection_get_dir_list (IntPtr i);
|
||||
public Gtk.TreeView DirList {
|
||||
get { return GLib.Object.GetObject (gtksharp_file_selection_get_dir_list (this.Handle), false) as Gtk.TreeView; }
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_file_selection_get_file_list (IntPtr i);
|
||||
public Gtk.TreeView FileList {
|
||||
get { return GLib.Object.GetObject (gtksharp_file_selection_get_file_list (this.Handle), false) as Gtk.TreeView; }
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_file_selection_get_selection_entry (IntPtr i);
|
||||
public Gtk.Entry SelectionEntry {
|
||||
get { return GLib.Object.GetObject (gtksharp_file_selection_get_selection_entry (this.Handle), false) as Gtk.Entry; }
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_file_selection_get_selection_text (IntPtr i);
|
||||
public Gtk.Label SelectionText {
|
||||
get { return GLib.Object.GetObject (gtksharp_file_selection_get_selection_text (this.Handle), false) as Gtk.Label; }
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_file_selection_get_ok_button (IntPtr i);
|
||||
public Gtk.Button OkButton {
|
||||
get { return new FSButton (this, gtksharp_file_selection_get_ok_button (this.Handle)); }
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_file_selection_get_cancel_button (IntPtr i);
|
||||
public Gtk.Button CancelButton {
|
||||
get { return new FSButton (this, gtksharp_file_selection_get_cancel_button (this.Handle)); }
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_file_selection_get_help_button (IntPtr i);
|
||||
public Gtk.Button HelpButton {
|
||||
get { return new FSButton (this, gtksharp_file_selection_get_help_button (this.Handle)); }
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_file_selection_get_history_pulldown (IntPtr i);
|
||||
public Gtk.OptionMenu HistoryPulldown {
|
||||
get { return GLib.Object.GetObject (gtksharp_file_selection_get_history_pulldown (this.Handle), false) as Gtk.OptionMenu; }
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_file_selection_get_history_menu (IntPtr i);
|
||||
public Gtk.Menu HistoryMenu {
|
||||
get { return GLib.Object.GetObject (gtksharp_file_selection_get_history_menu (this.Handle), false) as Gtk.Menu; }
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_file_selection_get_fileop_dialog (IntPtr i);
|
||||
public Gtk.MessageDialog FileopDialog {
|
||||
get { return GLib.Object.GetObject (gtksharp_file_selection_get_fileop_dialog (this.Handle), false) as Gtk.MessageDialog; }
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_file_selection_get_fileop_entry (IntPtr i);
|
||||
public Gtk.Entry FileopEntry {
|
||||
get { return GLib.Object.GetObject (gtksharp_file_selection_get_fileop_entry (this.Handle), false) as Gtk.Entry; }
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2", CallingConvention=CallingConvention.Cdecl)]
|
||||
static extern IntPtr gtksharp_file_selection_get_fileop_file (IntPtr i);
|
||||
public string FileopFile {
|
||||
get {
|
||||
return GLib.Marshaller.Utf8PtrToString (gtksharp_file_selection_get_fileop_file (this.Handle));
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_file_selection_get_fileop_c_dir (IntPtr i);
|
||||
public Gtk.Button FileopCDir {
|
||||
get { return new FSButton (this, gtksharp_file_selection_get_fileop_c_dir(this.Handle)); }
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_file_selection_get_fileop_del_file (IntPtr i);
|
||||
public Gtk.Button FileopDelFile {
|
||||
get { return new FSButton (this, gtksharp_file_selection_get_fileop_del_file (this.Handle)); }
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_file_selection_get_fileop_ren_file (IntPtr i);
|
||||
public Gtk.Button FileopRenFile {
|
||||
get { return new FSButton (this, gtksharp_file_selection_get_fileop_ren_file (this.Handle)); }
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_file_selection_get_button_area (IntPtr i);
|
||||
public Gtk.HButtonBox ButtonArea {
|
||||
get { return GLib.Object.GetObject (gtksharp_file_selection_get_button_area (this.Handle), false) as Gtk.HButtonBox; }
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_file_selection_get_action_area (IntPtr i);
|
||||
public new Gtk.HButtonBox ActionArea {
|
||||
get { return GLib.Object.GetObject (gtksharp_file_selection_get_action_area (this.Handle), false) as Gtk.HButtonBox; }
|
||||
}
|
||||
|
||||
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||
static extern IntPtr gtk_file_selection_get_selections (IntPtr handle);
|
||||
|
||||
|
|
|
@ -12,6 +12,11 @@
|
|||
<attr path="/api/namespace/boxed[@cname='GtkBorder']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GtkIconSet']/method[@name='GetSizes']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GtkSelectionData']" name="opaque">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GtkSelectionData']/field[@name='Length']" name="access">public</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GtkSelectionData']/field[@name='Format']" name="access">public</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GtkSelectionData']/field[@name='Selection']" name="access">public</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GtkSelectionData']/field[@name='Target']" name="access">public</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GtkSelectionData']/field[@name='Type']" name="access">public</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GtkSelectionData']/method[@name='GetTargets']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GtkSelectionData']/method[@name='GetText']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GtkSelectionData']/method[@name='SetText']" name="hidden">1</attr>
|
||||
|
@ -141,10 +146,13 @@
|
|||
<attr path="/api/namespace/object[@cname='GtkAdjustment']/method[@name='ValueChanged']" name="name">ChangeValue</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkArrow']/method[@name='Set']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkBin']/method[@name='GetChild']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkBox']/field[@name='Children']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkBox']/method[@name='PackEndDefaults']" name="name">PackEnd</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkBox']/method[@name='PackStartDefaults']" name="name">PackStart</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkButton']/constructor[@cname='gtk_button_new_with_label']" name="shared">true</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkButton']/constructor[@cname='gtk_button_new_from_stock']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkButton']/field[@name='InButton']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkButton']/field[@name='InButton']" name="writeable">true</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkButton']/method[@name='Clicked']" name="name">Click</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkButton']/method[@name='Pressed']" name="name">Press</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkButton']/method[@name='Released']" name="name">Release</attr>
|
||||
|
@ -173,9 +181,14 @@
|
|||
<attr path="/api/namespace/object[@cname='GtkColorSelection']/method[@name='SetChangePaletteWithScreenHook']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkColorSelection']/method[@name='SetColor']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkColorSelection']/method[@name='SetPreviousColor']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkCombo']/field[@name='Button']" name="type">GtkButton*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkCombo']/field[@name='Button']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkCombo']/field[@name='Entry']" name="type">GtkEntry*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkCombo']/field[@name='Entry']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkCombo']/method[@name='SetPopdownStrings']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkComboBox']/method[@name='GetActiveIter']/*/*[@type='GtkTreeIter*']" name="pass_as">out</attr>
|
||||
<add-node path="/api/namespace/object[@cname='GtkContainer']"><implements><interface name="IEnumerable" /></implements></add-node>
|
||||
<attr path="/api/namespace/object[@cname='GtkContainer']/field[@name='FocusChild']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkContainer']/method[@name='ChildGetProperty']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkContainer']/method[@name='Forall']/*/*[@name='callback']" name="scope">call</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkContainer']/method[@name='Foreach']/*/*[@name='callback']" name="scope">call</attr>
|
||||
|
@ -186,13 +199,15 @@
|
|||
<attr path="/api/namespace/object[@cname='GtkContainer']/method[@name='GetChildren']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkContainer']/method[@name='GetFocusChain']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkContainer']/method[@name='SetFocusChain']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkContainer']/method[@name='SetFocusChild']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkContainer']/signal[@name='Add']" name="name">Added</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkContainer']/signal[@name='CheckResize']" name="name">ResizeChecked</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkContainer']/signal[@name='Remove']" name="name">Removed</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkContainer']/signal[@name='SetFocusChild']" name="name">FocusChildSet</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkContainer']/method[@cname='gtk_container_child_type']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkDialog']/constructor[@cname='gtk_dialog_new_with_buttons']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkDialog']/field[@name='ActionArea']" name="type">GtkHButtonBox*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkDialog']/field[@name='Vbox']" name="name">VBox</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkDialog']/field[@name='VBox']" name="type">GtkVBox*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkDialog']/method[@name='Response']" name="name">Respond</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkDialog']/method[@name='SetDefaultResponse']/*/*[@name='response_id']" name="type">GtkResponseType</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkDialog']/method[@name='SetResponseSensitive']/*/*[@name='response_id']" name="type">GtkResponseType</attr>
|
||||
|
@ -205,11 +220,38 @@
|
|||
<attr path="/api/namespace/object[@cname='GtkEntry']/signal[@name='PasteClipboard']" name="name">ClipboardPasted</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkEntryCompletion']/signal[@name='InsertPrefix']" name="name">PrefixInserted</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkExpander']/constructor[@cname='gtk_expander_new_with_mnemonic']" name="preferred">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkExpander']/signal[@name='Activate']" name="name">Activated</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileChooserDialog']/constructor[@cname='gtk_file_chooser_dialog_new']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileChooserDialog']/constructor[@cname='gtk_file_chooser_dialog_new_with_backend']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='ActionArea']" name="type">GtkHButtonBox*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='ActionArea']" name="new_flag">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='ButtonArea']" name="type">GtkHButtonBox*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='CmplState']" name="access">private</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='CancelButton']" name="type">GtkButton*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='DirList']" name="type">GtkTreeView*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='FileList']" name="type">GtkTreeView*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='FileopCDir']" name="type">GtkButton*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='FileopDelFile']" name="type">GtkButton*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='FileopDialog']" name="type">GtkMessageDialog*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='FileopEntry']" name="type">GtkEntry*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='FileopRenFile']" name="type">GtkButton*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='HelpButton']" name="type">GtkButton*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='HistoryList']" name="access">private</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='HistoryMenu']" name="type">GtkMenu*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='HistoryPulldown']" name="type">GtkOptionMenu*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='MainVbox']" name="name">MainVBox</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='MainVBox']" name="type">GtkVBox*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='OkButton']" name="type">GtkButton*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='SelectionEntry']" name="type">GtkEntry*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/field[@name='SelectionText']" name="type">GtkLabel*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFileSelection']/method[@name='GetSelections']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFilePath']" name="parent">GObject</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkExpander']/signal[@name='Activate']" name="name">Activated</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFontSelectionDialog']/field[@name='ApplyButton']" name="type">GtkButton*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFontSelectionDialog']/field[@name='ApplyButton']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFontSelectionDialog']/field[@name='CancelButton']" name="type">GtkButton*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFontSelectionDialog']/field[@name='CancelButton']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFontSelectionDialog']/field[@name='OkButton']" name="type">GtkButton*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFontSelectionDialog']/field[@name='OkButton']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFrame']/method[@name='GetLabelAlign']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkFrame']/method[@name='SetLabelAlign']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkHandleBox']/property[@name='ShadowType']" name="hidden">1</attr>
|
||||
|
@ -239,6 +281,10 @@
|
|||
<attr path="/api/namespace/object[@cname='GtkIMContext']/method[@name='GetPreeditString']/*/*[@name='str']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkIMContext']/method[@name='GetPreeditString']/*/*[@name='attrs']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkIMContext']/method[@name='GetSurrounding']/*/*[@name='text']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkInputDialog']/field[@name='CloseButton']" name="type">GtkButton*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkInputDialog']/field[@name='CloseButton']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkInputDialog']/field[@name='SaveButton']" name="type">GtkButton*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkInputDialog']/field[@name='SaveButton']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkInvisible']/property[@name='Screen']" name="new_flag">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkItemFactory']/constructor[@cname='gtk_item_factory_new']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkItemFactory']/method[@name='GetItemByAction']" name="name">GetItem</attr>
|
||||
|
@ -307,6 +353,8 @@
|
|||
<attr path="/api/namespace/object[@cname='GtkScrolledWindow']/method[@name='GetPolicy']/*/*[@type='GtkPolicyType*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkSeparatorToolItem']/property[@name='Draw']" name="new_flag">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkSpinButton']/constructor[@cname='gtk_spin_button_new_with_range']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkStyle']/field[@type='GdkColor*']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkStyle']/field[@type='GdkGC*']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkTable']/constructor[@cname='gtk_table_new']/*/*[@name='columns']" name="property_name">n_columns</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkTable']/constructor[@cname='gtk_table_new']/*/*[@name='rows']" name="property_name">n_rows</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkTable']/method[@name='AttachDefaults']" name="name">Attach</attr>
|
||||
|
@ -364,6 +412,8 @@
|
|||
<attr path="/api/namespace/object[@cname='GtkToggleAction']/method[@name='Toggled']" name="name">Toggle</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkToggleButton']/constructor[@cname='gtk_toggle_button_new_with_mnemonic']" name="preferred">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkToggleButton']/method[@name='Toggled']" name="name">Toggle</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkToolbar']/field[@name='Children']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkToolbar']/field[@name='Style']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkToolbar']/method[@name='AppendElement']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkToolbar']/method[@name='AppendItem']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkToolbar']/method[@name='InsertElement']" name="hidden">1</attr>
|
||||
|
@ -425,6 +475,9 @@
|
|||
<attr path="/api/namespace/object[@cname='GtkVScale']/constructor[@cname='gtk_vscale_new_with_range']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']" name="disable_gtype_ctor">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/constructor[@cname='gtk_widget_new']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/field[@name='Allocation']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/field[@name='Requisition']" name="writeable">true</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/field[@name='Window']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='ClassPath']/*/*[@type='gchar**']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='Destroy']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='Destroyed']" name="hidden">1</attr>
|
||||
|
@ -472,6 +525,7 @@
|
|||
<attr path="/api/namespace/object[@cname='GtkWidget']/signal[@name='SizeRequested']/*/*[@name='requisition']" name="pass_as">ref</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/signal[@name='Unmap']" name="name">Unmapped</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/signal[@name='Unrealize']" name="name">Unrealized</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWindow']/field[@name='Position']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWindow']/method[@name='GetDefaultIconList']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWindow']/method[@name='GetDefaultSize']/*/*[@type='gint*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWindow']/method[@name='GetIconList']" name="hidden">1</attr>
|
||||
|
@ -517,6 +571,10 @@
|
|||
<attr path="/api/namespace/struct[@cname='GtkTargetList']/method[@name='AddTable']/*/*[@name='ntargets']" name="name">n_targets</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GtkTargetList']/method[@name='Ref']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GtkTargetList']/method[@name='Unref']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GtkTextAppearance']/field[@cname='underline']" name="type">PangoUnderline</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GtkTextAppearance']/field[@cname='draw_bg']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GtkTextAppearance']/field[@cname='inside_selection']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GtkTextAppearance']/field[@cname='is_text']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GtkTextBTree']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GtkTextLogAttrCache']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GtkToolbarChild']" name="hidden">1</attr>
|
||||
|
|
|
@ -1,42 +0,0 @@
|
|||
// Gtk.InputDialog.custom - Gtk InputDialog class customizations
|
||||
//
|
||||
// Author: Manuel V. Santos <mvsl@telefonica.net>
|
||||
//
|
||||
// Copyright (C) 2004 Manuel V. Santos.
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_input_dialog_get_save_button (IntPtr i);
|
||||
|
||||
public Gtk.Button SaveButton {
|
||||
get {
|
||||
IntPtr rawButton = gtksharp_input_dialog_get_save_button (Handle);
|
||||
return new Button (rawButton);
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_input_dialog_get_close_button (IntPtr i);
|
||||
|
||||
public Gtk.Button CloseButton {
|
||||
get {
|
||||
IntPtr rawButton = gtksharp_input_dialog_get_close_button (Handle);
|
||||
return new Button (rawButton);
|
||||
}
|
||||
}
|
|
@ -1,41 +0,0 @@
|
|||
//
|
||||
// Gtk.Widget.custom - Gtk Widget class customizations
|
||||
//
|
||||
// Author: Ettore Perazzoli <ettore@perazzoli.org>
|
||||
// Rachel Hestilow <hestilow@ximian.com>
|
||||
//
|
||||
// Copyright (C) 2003 Ettore Perazzoli, Rachel Hestilow
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_gtk_layout_get_bin_window (IntPtr layout);
|
||||
|
||||
public Gdk.Window BinWindow {
|
||||
get {
|
||||
IntPtr raw = gtksharp_gtk_layout_get_bin_window (Handle);
|
||||
|
||||
if (raw != (IntPtr) 0) {
|
||||
Gdk.Window ret = (Gdk.Window) GLib.Object.GetObject (raw, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -8,6 +8,7 @@ SYMBOLS = gtk-symbols.xml
|
|||
INCLUDE_API = ../pango/pango-api.xml ../atk/atk-api.xml ../gdk/gdk-api.xml
|
||||
METADATA = Gtk.metadata
|
||||
references = ../glib/glib-sharp.dll ../pango/pango-sharp.dll ../atk/atk-sharp.dll ../gdk/gdk-sharp.dll
|
||||
glue_includes = gtk/gtk.h
|
||||
|
||||
sources = \
|
||||
ActionEntry.cs \
|
||||
|
@ -65,10 +66,8 @@ customs = \
|
|||
ImageMenuItem.custom \
|
||||
Init.custom \
|
||||
Input.custom \
|
||||
InputDialog.custom \
|
||||
ItemFactory.custom \
|
||||
Label.custom \
|
||||
Layout.custom \
|
||||
ListStore.custom \
|
||||
MessageDialog.custom \
|
||||
Menu.custom \
|
||||
|
|
|
@ -18,24 +18,6 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
private static extern int gtksharp_gtk_selection_data_get_format (IntPtr selection_data);
|
||||
|
||||
public int Format {
|
||||
get {
|
||||
return gtksharp_gtk_selection_data_get_format (Handle);
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
private static extern int gtksharp_gtk_selection_data_get_length (IntPtr selection_data);
|
||||
|
||||
public int Length {
|
||||
get {
|
||||
return gtksharp_gtk_selection_data_get_length (Handle);
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||
private static extern IntPtr gtk_selection_data_get_text (IntPtr selection_data);
|
||||
|
||||
|
@ -72,24 +54,6 @@
|
|||
Set(type, format, data, data.Length);
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
private static extern IntPtr gtksharp_gtk_selection_data_get_selection (IntPtr selection_data);
|
||||
|
||||
public Gdk.Atom Selection {
|
||||
get {
|
||||
return new Gdk.Atom (gtksharp_gtk_selection_data_get_selection (Handle));
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
private static extern IntPtr gtksharp_gtk_selection_data_get_target (IntPtr selection_data);
|
||||
|
||||
public Gdk.Atom Target {
|
||||
get {
|
||||
return new Gdk.Atom (gtksharp_gtk_selection_data_get_target (Handle));
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("libglib-2.0-0.dll")]
|
||||
static extern void g_free (IntPtr ptr);
|
||||
|
||||
|
@ -112,13 +76,3 @@
|
|||
return new Gdk.Atom [0];
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
private static extern IntPtr gtksharp_gtk_selection_data_get_type (IntPtr selection_data);
|
||||
|
||||
public Gdk.Atom Type {
|
||||
get {
|
||||
return new Gdk.Atom (gtksharp_gtk_selection_data_get_type (Handle));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -203,20 +203,6 @@ public void SetMidGC (StateType state, Gdk.GC gc)
|
|||
gtksharp_gtk_style_set_mid_gc (Handle, (int) state, gc.Handle);
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_gtk_style_get_white (IntPtr style);
|
||||
|
||||
public Gdk.Color White {
|
||||
get { return Gdk.Color.New (gtksharp_gtk_style_get_white (Handle)); }
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_gtk_style_get_black (IntPtr style);
|
||||
|
||||
public Gdk.Color Black {
|
||||
get { return Gdk.Color.New (gtksharp_gtk_style_get_black (Handle)); }
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_gtk_style_get_bg (IntPtr style, int i);
|
||||
|
||||
|
|
|
@ -45,7 +45,6 @@ public Gdk.Rectangle Allocation {
|
|||
set { SizeAllocate (value); }
|
||||
}
|
||||
|
||||
|
||||
[DllImport ("gtksharpglue-2")]
|
||||
static extern IntPtr gtksharp_gtk_widget_get_window (IntPtr widget);
|
||||
[DllImport ("gtksharpglue-2")]
|
||||
|
|
|
@ -2,24 +2,19 @@ lib_LTLIBRARIES = libgtksharpglue-2.la
|
|||
|
||||
libgtksharpglue_2_la_SOURCES = \
|
||||
adjustment.c \
|
||||
button.c \
|
||||
cellrenderer.c \
|
||||
clipboard.c \
|
||||
colorseldialog.c \
|
||||
combo.c \
|
||||
colorseldialog.c \
|
||||
container.c \
|
||||
dialog.c \
|
||||
fileselection.c \
|
||||
inputdialog.c \
|
||||
layout.c \
|
||||
nodestore.c \
|
||||
object.c \
|
||||
paned.c \
|
||||
selectiondata.c \
|
||||
style.c \
|
||||
vmglueheaders.h \
|
||||
widget.c
|
||||
|
||||
nodist_libgtksharpglue_2_la_SOURCES = generated.c
|
||||
|
||||
# Adding a new glue file?
|
||||
# Please remember to update makefile.win32
|
||||
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
/*
|
||||
* button.c : Glue for utility functions for GtkButton
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of version 2 of the Lesser GNU General
|
||||
* Public License as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this program; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <gtk/gtkbutton.h>
|
||||
|
||||
/* Forward declarations */
|
||||
int gtksharp_button_get_in_button (GtkButton* button);
|
||||
void gtksharp_button_set_in_button (GtkButton* button, int b);
|
||||
|
||||
int
|
||||
gtksharp_button_get_in_button (GtkButton* button)
|
||||
{
|
||||
return button->in_button;
|
||||
}
|
||||
|
||||
void
|
||||
gtksharp_button_set_in_button (GtkButton* button, int b)
|
||||
{
|
||||
button->in_button = b;
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
/* combo.c : Glue for accessing fields in the GtkCombo widget.
|
||||
*
|
||||
* Author: Pablo Baena (pbaena@uol.com.ar)
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of version 2 of the Lesser GNU General
|
||||
* Public License as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this program; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <gtk/gtkcombo.h>
|
||||
|
||||
/* Forward declarations */
|
||||
GtkWidget *gtksharp_combo_get_entry (GtkCombo* combo);
|
||||
GtkWidget *gtksharp_combo_get_button (GtkCombo* combo);
|
||||
/* */
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_combo_get_entry (GtkCombo* combo)
|
||||
{
|
||||
return combo->entry;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_combo_get_button (GtkCombo* combo)
|
||||
{
|
||||
return combo->button;
|
||||
}
|
|
@ -21,14 +21,6 @@
|
|||
|
||||
#include <gtk/gtkcontainer.h>
|
||||
|
||||
GtkWidget *gtksharp_container_get_focus_child (GtkContainer *container);
|
||||
|
||||
GtkWidget *
|
||||
gtksharp_container_get_focus_child (GtkContainer *container)
|
||||
{
|
||||
return container->focus_child;
|
||||
}
|
||||
|
||||
void gtksharp_container_base_forall (GtkContainer *container, gboolean include_internals, GtkCallback cb, gpointer data);
|
||||
|
||||
void
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
/* dialog.c : Glue for accessing fields in the GtkDialog widget.
|
||||
*
|
||||
* Author: Duncan Mak (duncan@ximian.com)
|
||||
*
|
||||
* Copyright (c) Ximian, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of version 2 of the Lesser GNU General
|
||||
* Public License as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this program; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <gtk/gtkdialog.h>
|
||||
|
||||
/* Forward declarations */
|
||||
GtkWidget *gtksharp_dialog_get_vbox (GtkDialog *dialog);
|
||||
GtkWidget *gtksharp_dialog_get_action_area (GtkDialog *dialog);
|
||||
/* */
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_dialog_get_vbox (GtkDialog *dialog)
|
||||
{
|
||||
return dialog->vbox;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_dialog_get_action_area (GtkDialog *dialog)
|
||||
{
|
||||
return dialog->action_area;
|
||||
}
|
|
@ -1,168 +0,0 @@
|
|||
/* fileselection.c : Glue for accessing fields in the GtkFileSelection widget.
|
||||
*
|
||||
* Author: Duncan Mak (duncan@ximian.com)
|
||||
*
|
||||
* Copyright (c) Ximian, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of version 2 of the Lesser GNU General
|
||||
* Public License as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this program; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <gtk/gtkfilesel.h>
|
||||
|
||||
/* Forward declarations */
|
||||
GtkWidget *gtksharp_file_selection_get_dir_list (GtkFileSelection *file);
|
||||
|
||||
GtkWidget *gtksharp_file_selection_get_file_list (GtkFileSelection *file);
|
||||
|
||||
GtkWidget *gtksharp_file_selection_get_selection_entry (GtkFileSelection *file);
|
||||
|
||||
GtkWidget *gtksharp_file_selection_get_selection_text (GtkFileSelection *file);
|
||||
|
||||
GtkWidget *gtksharp_file_selection_get_main_vbox (GtkFileSelection *file);
|
||||
|
||||
GtkWidget *gtksharp_file_selection_get_ok_button (GtkFileSelection *file);
|
||||
|
||||
GtkWidget *gtksharp_file_selection_get_cancel_button (GtkFileSelection *file);
|
||||
|
||||
GtkWidget *gtksharp_file_selection_get_help_button (GtkFileSelection *file);
|
||||
|
||||
GtkWidget *gtksharp_file_selection_get_history_pulldown (GtkFileSelection *file);
|
||||
|
||||
GtkWidget *gtksharp_file_selection_get_history_menu (GtkFileSelection *file);
|
||||
|
||||
GtkWidget *gtksharp_file_selection_get_fileop_dialog (GtkFileSelection *file);
|
||||
|
||||
GtkWidget *gtksharp_file_selection_get_fileop_entry (GtkFileSelection *file);
|
||||
|
||||
const gchar *gtksharp_file_selection_get_fileop_file (GtkFileSelection *file);
|
||||
|
||||
GtkWidget *gtksharp_file_selection_get_fileop_c_dir (GtkFileSelection *file);
|
||||
|
||||
GtkWidget *gtksharp_file_selection_get_fileop_del_file (GtkFileSelection *file);
|
||||
|
||||
GtkWidget *gtksharp_file_selection_get_fileop_ren_file (GtkFileSelection *file);
|
||||
|
||||
GtkWidget *gtksharp_file_selection_get_button_area (GtkFileSelection *file);
|
||||
|
||||
GtkWidget *gtksharp_file_selection_get_action_area (GtkFileSelection *file);
|
||||
/* */
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_file_selection_get_dir_list (GtkFileSelection *file)
|
||||
{
|
||||
return file->dir_list;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_file_selection_get_file_list (GtkFileSelection *file)
|
||||
{
|
||||
return file->file_list;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_file_selection_get_selection_entry (GtkFileSelection *file)
|
||||
{
|
||||
return file->selection_entry;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_file_selection_get_selection_text (GtkFileSelection *file)
|
||||
{
|
||||
return file->selection_text;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_file_selection_get_main_vbox (GtkFileSelection *file)
|
||||
{
|
||||
return file->main_vbox;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_file_selection_get_ok_button (GtkFileSelection *file)
|
||||
{
|
||||
return file->ok_button;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_file_selection_get_cancel_button (GtkFileSelection *file)
|
||||
{
|
||||
return file->cancel_button;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_file_selection_get_help_button (GtkFileSelection *file)
|
||||
{
|
||||
return file->help_button;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_file_selection_get_history_pulldown (GtkFileSelection *file)
|
||||
{
|
||||
return file->history_pulldown;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_file_selection_get_history_menu (GtkFileSelection *file)
|
||||
{
|
||||
return file->history_menu;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_file_selection_get_fileop_dialog (GtkFileSelection *file)
|
||||
{
|
||||
return file->fileop_dialog;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_file_selection_get_fileop_entry (GtkFileSelection *file)
|
||||
{
|
||||
return file->fileop_entry;
|
||||
}
|
||||
|
||||
const gchar*
|
||||
gtksharp_file_selection_get_fileop_file (GtkFileSelection *file)
|
||||
{
|
||||
return file->fileop_file;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_file_selection_get_fileop_c_dir (GtkFileSelection *file)
|
||||
{
|
||||
return file->fileop_c_dir;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_file_selection_get_fileop_del_file (GtkFileSelection *file)
|
||||
{
|
||||
return file->fileop_del_file;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_file_selection_get_fileop_ren_file (GtkFileSelection *file)
|
||||
{
|
||||
return file->fileop_ren_file;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_file_selection_get_button_area (GtkFileSelection *file)
|
||||
{
|
||||
return file->button_area;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_file_selection_get_action_area (GtkFileSelection *file)
|
||||
{
|
||||
return file->action_area;
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
/* inputdialog.c : Glue for accessing fields in the GtkInputDialog widget.
|
||||
*
|
||||
* Author: Manuel V. Santos <mvsl@telefonica.net>
|
||||
*
|
||||
* Copyright (c) 2004 Manuel V. Santos
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of version 2 of the Lesser GNU General
|
||||
* Public License as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this program; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <gtk/gtkinputdialog.h>
|
||||
|
||||
/* Forward declarations */
|
||||
GtkWidget *gtksharp_input_dialog_get_save_button (GtkInputDialog *dialog);
|
||||
|
||||
GtkWidget *gtksharp_input_dialog_get_close_button (GtkInputDialog *dialog);
|
||||
/* */
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_input_dialog_get_save_button (GtkInputDialog *dialog)
|
||||
{
|
||||
return dialog->save_button;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_input_dialog_get_close_button (GtkInputDialog *dialog)
|
||||
{
|
||||
return dialog->close_button;
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
/* layout.c: Glue to access fields in GtkLayout.
|
||||
*
|
||||
* Author: Ettore Perazzoli <ettore@perazzoli.org>
|
||||
*
|
||||
* Copyright (c) 2003 Ettore Perazzoli
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of version 2 of the Lesser GNU General
|
||||
* Public License as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this program; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <gtk/gtklayout.h>
|
||||
|
||||
|
||||
GdkWindow *gtksharp_gtk_layout_get_bin_window (GtkLayout *layout);
|
||||
|
||||
GdkWindow *
|
||||
gtksharp_gtk_layout_get_bin_window (GtkLayout *layout)
|
||||
{
|
||||
return layout->bin_window;
|
||||
}
|
||||
|
||||
|
|
@ -5,19 +5,14 @@ DLLWRAP=dllwrap -mno-cygwin -mms-bitfields --target i386-mingw32 --export-all-sy
|
|||
|
||||
GLUE_OBJS = \
|
||||
adjustment.o \
|
||||
button.o \
|
||||
cellrenderer.o \
|
||||
cellrenderer.o \
|
||||
clipboard.o \
|
||||
colorseldialog.o \
|
||||
combo.o \
|
||||
container.o \
|
||||
dialog.o \
|
||||
fileselection.o \
|
||||
inputdialog.o \
|
||||
layout.o \
|
||||
generated.o \
|
||||
nodestore.o \
|
||||
object.o \
|
||||
paned.o \
|
||||
selectiondata.o \
|
||||
style.o \
|
||||
widget.o \
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
/* paned.c : Glue for accessing fields in the GtkPaned widget.
|
||||
*
|
||||
* Author: Duncan Mak (duncan@ximian.com)
|
||||
*
|
||||
* Copyright (c) 2003 Ximian, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of version 2 of the Lesser GNU General
|
||||
* Public License as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this program; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <gtk/gtkpaned.h>
|
||||
|
||||
/* Forward declarations */
|
||||
GtkWidget *gtksharp_paned_get_child1 (GtkPaned *paned);
|
||||
GtkWidget *gtksharp_paned_get_child2 (GtkPaned *paned);
|
||||
/* */
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_paned_get_child1 (GtkPaned *paned)
|
||||
{
|
||||
return paned->child1;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtksharp_paned_get_child2 (GtkPaned *paned)
|
||||
{
|
||||
return paned->child2;
|
||||
}
|
|
@ -19,48 +19,12 @@
|
|||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <gtk/gtkwidget.h>
|
||||
#include <gtk/gtkselection.h>
|
||||
|
||||
gint gtksharp_gtk_selection_data_get_length (GtkSelectionData *data);
|
||||
gint gtksharp_gtk_selection_data_get_format (GtkSelectionData *data);
|
||||
guchar *gtksharp_gtk_selection_data_get_data_pointer (GtkSelectionData *data);
|
||||
GdkAtom gtksharp_gtk_selection_data_get_selection (GtkSelectionData *data);
|
||||
GdkAtom gtksharp_gtk_selection_data_get_target (GtkSelectionData *data);
|
||||
GdkAtom gtksharp_gtk_selection_data_get_type (GtkSelectionData *data);
|
||||
|
||||
guchar *
|
||||
gtksharp_gtk_selection_data_get_data_pointer (GtkSelectionData *data)
|
||||
{
|
||||
return data->data;
|
||||
}
|
||||
|
||||
gint
|
||||
gtksharp_gtk_selection_data_get_length (GtkSelectionData *data)
|
||||
{
|
||||
return data->length;
|
||||
}
|
||||
|
||||
gint
|
||||
gtksharp_gtk_selection_data_get_format (GtkSelectionData *data)
|
||||
{
|
||||
return data->format;
|
||||
}
|
||||
|
||||
GdkAtom
|
||||
gtksharp_gtk_selection_data_get_selection (GtkSelectionData *data)
|
||||
{
|
||||
return data->selection;
|
||||
}
|
||||
|
||||
GdkAtom
|
||||
gtksharp_gtk_selection_data_get_target (GtkSelectionData *data)
|
||||
{
|
||||
return data->target;
|
||||
}
|
||||
|
||||
GdkAtom
|
||||
gtksharp_gtk_selection_data_get_type (GtkSelectionData *data)
|
||||
{
|
||||
return data->type;
|
||||
}
|
||||
|
|
|
@ -59,10 +59,6 @@ void gtksharp_gtk_style_set_dark_gc (GtkStyle *style, int i, GdkGC *gc);
|
|||
|
||||
void gtksharp_gtk_style_set_mid_gc (GtkStyle *style, int i, GdkGC *gc);
|
||||
|
||||
GdkColor *gtksharp_gtk_style_get_white (GtkStyle *style);
|
||||
|
||||
GdkColor *gtksharp_gtk_style_get_black (GtkStyle *style);
|
||||
|
||||
GdkColor *gtksharp_gtk_style_get_fg (GtkStyle *style, int i);
|
||||
|
||||
GdkColor *gtksharp_gtk_style_get_bg (GtkStyle *style, int i);
|
||||
|
@ -210,18 +206,6 @@ gtksharp_gtk_style_set_dark_gc (GtkStyle *style, int i, GdkGC *gc)
|
|||
style->dark_gc[i] = gc;
|
||||
}
|
||||
|
||||
GdkColor*
|
||||
gtksharp_gtk_style_get_white (GtkStyle *style)
|
||||
{
|
||||
return &style->white;
|
||||
}
|
||||
|
||||
GdkColor*
|
||||
gtksharp_gtk_style_get_black (GtkStyle *style)
|
||||
{
|
||||
return &style->black;
|
||||
}
|
||||
|
||||
GdkColor*
|
||||
gtksharp_gtk_style_get_fg (GtkStyle *style, int i)
|
||||
{
|
||||
|
|
|
@ -55,6 +55,8 @@ gtksharp_gtk_widget_get_window (GtkWidget *widget)
|
|||
void
|
||||
gtksharp_gtk_widget_set_window (GtkWidget *widget, GdkWindow *window)
|
||||
{
|
||||
if (widget->window)
|
||||
g_object_unref (widget->window);
|
||||
widget->window = g_object_ref (window);
|
||||
}
|
||||
|
||||
|
|
|
@ -21,40 +21,6 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport("pangosharpglue-2")]
|
||||
static extern IntPtr pangosharp_pango_layout_line_get_layout (IntPtr line);
|
||||
|
||||
public Layout Layout {
|
||||
get {
|
||||
IntPtr raw_ret = pangosharp_pango_layout_line_get_layout (Handle);
|
||||
Pango.Layout ret;
|
||||
if (raw_ret == IntPtr.Zero)
|
||||
ret = null;
|
||||
else
|
||||
ret = (Pango.Layout) GLib.Object.GetObject (raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("pangosharpglue-2")]
|
||||
static extern int pangosharp_pango_layout_line_get_start_index (IntPtr line);
|
||||
|
||||
public int StartIndex {
|
||||
get {
|
||||
return pangosharp_pango_layout_line_get_start_index (Handle);
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("pangosharpglue-2")]
|
||||
static extern int pangosharp_pango_layout_line_get_length (IntPtr line);
|
||||
|
||||
public int Length {
|
||||
get {
|
||||
return pangosharp_pango_layout_line_get_length (Handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#if NOT_BROKEN
|
||||
[DllImport("libpango-1.0-0.dll")]
|
||||
static extern void pango_layout_line_get_x_ranges(IntPtr raw, int start_index, int end_index, out IntPtr ranges_handle, out int n_ranges);
|
||||
|
|
|
@ -4,6 +4,7 @@ pkg = pango
|
|||
METADATA = Pango.metadata
|
||||
SYMBOLS = pango-symbols.xml
|
||||
references = ../glib/glib-sharp.dll
|
||||
glue_includes = pango/pango.h
|
||||
|
||||
sources = \
|
||||
Attribute.cs \
|
||||
|
|
|
@ -45,6 +45,9 @@
|
|||
<attr path="/api/namespace/struct[@cname='PangoCoverage']/method[@name='ToBytes']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='PangoGlyphItem']/method[@name='ApplyAttrs']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='PangoLayoutLine']" name="opaque">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='PangoLayoutLine']/field[@name='Layout']" name="access">public</attr>
|
||||
<attr path="/api/namespace/struct[@cname='PangoLayoutLine']/field[@name='Length']" name="access">public</attr>
|
||||
<attr path="/api/namespace/struct[@cname='PangoLayoutLine']/field[@name='StartIndex']" name="access">public</attr>
|
||||
<attr path="/api/namespace/struct[@cname='PangoLayoutLine']/method[@name='GetExtents']/*/*[@type='PangoRectangle*']" name="pass_as">ref</attr>
|
||||
<attr path="/api/namespace/struct[@cname='PangoLayoutLine']/method[@name='GetPixelExtents']/*/*[@type='PangoRectangle*']" name="pass_as">ref</attr>
|
||||
<attr path="/api/namespace/struct[@cname='PangoLayoutLine']/method[@name='GetXRanges']" name="hidden">1</attr>
|
||||
|
|
|
@ -2,9 +2,10 @@ lib_LTLIBRARIES = libpangosharpglue-2.la
|
|||
|
||||
libpangosharpglue_2_la_SOURCES = \
|
||||
attribute.c \
|
||||
layoutline.c \
|
||||
units.c
|
||||
|
||||
nodist_libpangosharpglue_2_la_SOURCES = generated.c
|
||||
|
||||
# Adding a new glue file?
|
||||
# Please remember to update makefile.win32
|
||||
|
||||
|
|
|
@ -1,46 +0,0 @@
|
|||
/* layoutline.c : Glue to access fields in PangoLayoutLine struct.
|
||||
*
|
||||
* Author: Jeroen Zwartepoorte <jeroen@xs4all.nl
|
||||
*
|
||||
* Copyright (c) 2004 Jeroen Zwartepoorte
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of version 2 of the Lesser GNU General
|
||||
* Public License as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this program; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <pango/pango-layout.h>
|
||||
|
||||
/* Forward declarations */
|
||||
PangoLayout *pangosharp_pango_layout_line_get_layout (PangoLayoutLine *line);
|
||||
gint pangosharp_pango_layout_line_get_start_index (PangoLayoutLine *line);
|
||||
gint pangosharp_pango_layout_line_get_length (PangoLayoutLine *line);
|
||||
/* */
|
||||
|
||||
PangoLayout *
|
||||
pangosharp_pango_layout_line_get_layout (PangoLayoutLine *line)
|
||||
{
|
||||
return line->layout;
|
||||
}
|
||||
|
||||
gint
|
||||
pangosharp_pango_layout_line_get_start_index (PangoLayoutLine *line)
|
||||
{
|
||||
return line->start_index;
|
||||
}
|
||||
|
||||
gint
|
||||
pangosharp_pango_layout_line_get_length (PangoLayoutLine *line)
|
||||
{
|
||||
return line->length;
|
||||
}
|
|
@ -5,7 +5,7 @@ DLLWRAP=dllwrap -mno-cygwin -mms-bitfields --target i386-mingw32 --export-all-sy
|
|||
|
||||
GLUE_OBJS = \
|
||||
attribute.c \
|
||||
layoutline.o \
|
||||
generated.o \
|
||||
units.o \
|
||||
win32dll.o
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
SUBDIRS = . glue
|
||||
|
||||
if ENABLE_VTE
|
||||
pkg = vte
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
|
@ -5,10 +7,12 @@ pkgconfig_DATA = vte-sharp-2.0.pc
|
|||
else
|
||||
pkg =
|
||||
endif
|
||||
|
||||
INCLUDE_API = ../pango/pango-api.xml ../atk/atk-api.xml ../gdk/gdk-api.xml ../gtk/gtk-api.xml
|
||||
METADATA = Vte.metadata
|
||||
SYMBOLS =
|
||||
references = ../glib/glib-sharp.dll ../pango/pango-sharp.dll ../atk/atk-sharp.dll ../gdk/gdk-sharp.dll ../gtk/gtk-sharp.dll
|
||||
glue_includes = vte/vte.h
|
||||
|
||||
sources =
|
||||
|
||||
|
|
24
vte/glue/Makefile.am
Normal file
24
vte/glue/Makefile.am
Normal file
|
@ -0,0 +1,24 @@
|
|||
lib_LTLIBRARIES = $(TARGET)
|
||||
|
||||
if ENABLE_VTE
|
||||
TARGET = libvtesharpglue-2.la
|
||||
else
|
||||
TARGET =
|
||||
endif
|
||||
|
||||
libvtesharpglue_2_la_SOURCES = # empty
|
||||
|
||||
nodist_libvtesharpglue_2_la_SOURCES = generated.c
|
||||
|
||||
libvtesharpglue_2_la_LDFLAGS = -module -avoid-version -no-undefined
|
||||
|
||||
libvtesharpglue_2_la_LIBADD = $(VTE_LIBS)
|
||||
|
||||
INCLUDES = $(VTE_CFLAGS) -I$(top_srcdir)
|
||||
|
||||
libvtesharpglue.dll: $(libvtesharpglue_2_la_OBJECTS) libvtesharpglue.rc libvtesharpglue.def
|
||||
./build-dll libvtesharpglue-2 $(VERSION)
|
||||
|
||||
CLEANFILES = lib*.a lib*.dll
|
||||
|
||||
EXTRA_DIST = makefile.win32 win32dll.c
|
Loading…
Reference in a new issue