2003-01-06 00:50:42 +00:00
|
|
|
// 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 {
|
2003-01-06 01:07:10 +00:00
|
|
|
int x, y;
|
|
|
|
GetSize (out x, out y);
|
|
|
|
return new System.Drawing.Size (x, y);
|
2003-01-06 00:50:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2003-02-28 04:54:01 +00:00
|
|
|
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);
|
|
|
|
}
|