Ryujinx-GtkSharp/gtk/Window.custom
Mike Kestner 807b6ea645 2001-11-07 Mike Kestner <mkestner@speakeasy.net>
* codegen/defs-parse.pl (gen_object): Insert using statements. Insert
	class members from corresponding .custom file.
	* gtk/Window.custom : Renamed file from Window.cs.  Removed all the
	automatically generated members.  This will be the mechanism used to
	improve upon the mechanically generated binding.

svn path=/trunk/gtk-sharp/; revision=1282
2001-11-07 23:13:05 +00:00

56 lines
1.0 KiB
Plaintext
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 (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;
}
}