2af291dc52
* codegen/defs-parse.pl : Fix String prop generation code. * gtk/Window.custom : Fix ctor param casting error. svn path=/trunk/gtk-sharp/; revision=1319
55 lines
1 KiB
Text
Executable file
55 lines
1 KiB
Text
Executable file
// Gtk.Window.custom - Gtk Window class customizations
|
|
//
|
|
// Author: Mike Kestner <mkestner@speakeasy.net>
|
|
//
|
|
// (c) 2001 Mike Kestner
|
|
//
|
|
// This code is inserted after the automatically generated code.
|
|
|
|
|
|
/// <summary>
|
|
/// Window Constructor
|
|
/// </summary>
|
|
///
|
|
/// <remarks>
|
|
/// Constructs a new Window of type TopLevel.
|
|
/// </remarks>
|
|
|
|
public Window ()
|
|
{
|
|
RawObject = gtk_window_new ((int)WindowType.Toplevel);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Window Constructor
|
|
/// </summary>
|
|
///
|
|
/// <remarks>
|
|
/// Constructs a new Window of type TopLevel with the
|
|
/// specified Title.
|
|
/// </remarks>
|
|
|
|
public Window (String title) : this ()
|
|
{
|
|
this.Title = title;
|
|
}
|
|
|
|
/// <summary>
|
|
/// DefaultSize Property
|
|
/// </summary>
|
|
///
|
|
/// <remarks>
|
|
/// The default Size of the Window in Screen Coordinates.
|
|
/// </remarks>
|
|
|
|
public System.Drawing.Size DefaultSize {
|
|
get {
|
|
return new System.Drawing.Size (
|
|
DefaultWidth, DefaultHeight);
|
|
}
|
|
set {
|
|
DefaultWidth = value.Width;
|
|
DefaultHeight = value.Height;
|
|
}
|
|
}
|
|
|