2003-01-05 Pedro Abelleira Seco <pedroabelleira@yahoo.es>

* gdk/Drawable.custom: Add Size get property

2003-01-05  Duncan Mak  <duncan@ximian.com>

	* pango/GlyphString.custom: Add some nicer overloads to avoid
	explicit passing in the string length.

svn path=/trunk/gtk-sharp/; revision=10193
This commit is contained in:
Duncan Mak 2003-01-06 00:50:42 +00:00
parent 8400c23479
commit 4e19d181c9
3 changed files with 46 additions and 0 deletions

View File

@ -1,3 +1,12 @@
2003-01-05 Pedro Abelleira Seco <pedroabelleira@yahoo.es>
* gdk/Drawable.custom: Add Size get property
2003-01-05 Duncan Mak <duncan@ximian.com>
* pango/GlyphString.custom: Add some nicer overloads to avoid
explicit passing in the string length.
2003-01-05 Duncan Mak <duncan@ximian.com>
* generator/GenBase.cs (AppendCustom): Add #region to code from

17
gdk/Drawable.custom Normal file
View File

@ -0,0 +1,17 @@
// Gdk.Drawble.custom - Gdk Drawble class customizations
//
// Author: Pedro Abelleira Seco <pedroabelleira@yahoo.es>
//
// This code is inserted after the automatically generated code.
/// <summary> Size property </summary>
/// <remarks> Returns the size of the Drawble </remarks>
public System.Drawing.Size Size {
get {
int x, y;
GetSize(ref x, ref y);
return new System.Drawing.Size(x, y);
}
}

20
pango/GlyphString.custom Normal file
View File

@ -0,0 +1,20 @@
//
// Pango.GlyphString.custom - Allow customization of values in the GtkAdjustment
//
// This code is inserted after the automatically generated code.
//
public void GetLogicalWidths (string text, int embedding_level, int logical_widths)
{
pango_glyph_string_get_logical_widths(ref this, text, text.Length, embedding_level, logical_widths);
}
public void XToIndex (string text, Pango.Analysis analysis, int x_pos, int index, int trailing)
{
pango_glyph_string_x_to_index(ref this, text, text.Length, ref analysis, x_pos, index, trailing);
}
public void IndexToX (string text, Pango.Analysis analysis, int index, bool trailing, int x_pos)
{
pango_glyph_string_index_to_x(ref this, text, text.Length, ref analysis, index, trailing, x_pos);
}