mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 05:35:40 +00:00
f28a0d72b8
* gdk/Drawable.custom: Added nice overload for DrawRectangle. Plus older ChangeLog entries that I had not commited svn path=/trunk/gtk-sharp/; revision=12052
22 lines
587 B
Plaintext
22 lines
587 B
Plaintext
// 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 (out x, out y);
|
|
return new System.Drawing.Size (x, y);
|
|
}
|
|
}
|
|
|
|
public void DrawRectangle(Gdk.GC gc, int filled, Gdk.Rectangle area)
|
|
{
|
|
gdk_draw_rectangle(Handle, gc.Handle, filled, area.x, area.y, area.width, area.height);
|
|
}
|