2004-08-18 John Luke <john.luke@gmail.com>

* pango/Pango.metadata : hide a couple methods on Layout.
	* pango/Layout.custom : impl SetText and SetMarkup w/ length=-1.
	[Fixes #63057]

svn path=/trunk/gtk-sharp/; revision=32499
This commit is contained in:
Mike Kestner 2004-08-18 16:18:26 +00:00
parent b45b49ac61
commit b6e7515687
5 changed files with 23 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2004-08-18 John Luke <john.luke@gmail.com>
* pango/Pango.metadata : hide a couple methods on Layout.
* pango/Layout.custom : impl SetText and SetMarkup w/ length=-1.
[Fixes #63057]
2004-08-18 Mike Kestner <mkestner@ximian.com> 2004-08-18 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : unhide ExpanderStyle. * gtk/Gtk.metadata : unhide ExpanderStyle.

View file

@ -71,3 +71,16 @@ public void SetMarkupWithAccel (string markup, char accel_marker, out char accel
} }
} }
[DllImport ("libpango-1.0-0.dll")]
static extern void pango_layout_set_text (IntPtr raw, string text, int length);
public void SetText (string text) {
pango_layout_set_text (Handle, text, -1);
}
[DllImport ("libpango-1.0-0.dll")]
static extern void pango_layout_set_markup (IntPtr raw, string markup, int length);
public void SetMarkup (string markup) {
pango_layout_set_markup (Handle, markup, -1);
}

View file

@ -24,7 +24,9 @@
<attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='GetPixelSize']/*/*[@type='int*']" name="pass_as">out</attr> <attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='GetPixelSize']/*/*[@type='int*']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='GetSize']/*/*[@type='int*']" name="pass_as">out</attr> <attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='GetSize']/*/*[@type='int*']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='IndexToPos']/*/*[@type='PangoRectangle*']" name="pass_as">out</attr> <attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='IndexToPos']/*/*[@type='PangoRectangle*']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='SetMarkup']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='SetMarkupWithAccel']" name="hidden">1</attr> <attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='SetMarkupWithAccel']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='PangoLayout']/method[@name='SetText']" name="hidden">1</attr>
<attr path="/api/namespace/struct[@cname='PangoAttrIterator']/method[@name='GetAttrs']" name="hidden">1</attr> <attr path="/api/namespace/struct[@cname='PangoAttrIterator']/method[@name='GetAttrs']" name="hidden">1</attr>
<attr path="/api/namespace/struct[@cname='PangoAttrIterator']/method[@name='GetFont']" name="hidden">1</attr> <attr path="/api/namespace/struct[@cname='PangoAttrIterator']/method[@name='GetFont']" name="hidden">1</attr>
<attr path="/api/namespace/struct[@cname='PangoCoverage']/method[@name='ToBytes']" name="hidden">1</attr> <attr path="/api/namespace/struct[@cname='PangoCoverage']/method[@name='ToBytes']" name="hidden">1</attr>