mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-17 03:44:53 +02:00
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:
parent
8400c23479
commit
4e19d181c9
@ -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>
|
2003-01-05 Duncan Mak <duncan@ximian.com>
|
||||||
|
|
||||||
* generator/GenBase.cs (AppendCustom): Add #region to code from
|
* generator/GenBase.cs (AppendCustom): Add #region to code from
|
||||||
|
17
gdk/Drawable.custom
Normal file
17
gdk/Drawable.custom
Normal 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
20
pango/GlyphString.custom
Normal 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);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user