mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 19:35:33 +00:00
9d0184d61c
* generator/ObjectGen.cs : Add support for .custom files. * gtk/Window.custom : clean up build * sample/HelloWorld.cs : Use the customizations. * sample/ButtonApp.cs : Use the customizations. svn path=/trunk/gtk-sharp/; revision=4237
43 lines
852 B
Plaintext
Executable file
43 lines
852 B
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 with the
|
|
/// specified Title.
|
|
/// </remarks>
|
|
|
|
public Window (String title) : this (WindowType.Toplevel)
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
|