gtk.MainWindow.MainWindow Class Reference

Inheritance diagram for gtk.MainWindow.MainWindow:

gdk.Window.Window gdk.Drawable.Drawable gobject.ObjectG.ObjectG List of all members.

Detailed Description

A top Level window that will stop the main event cycle when it's closed.

Closing the last of the windows of class "MainWindow" will end the application.


Public Member Functions

 this (char[] title)
 Creates a new MainWindow with a title.

Protected Member Functions

int windowDelete (Event event, Widget widget)
 Executed when the user tries to close the window.
bit exit (int code, bit force)
 Allows the application to close and decide if it can exit.

Static Private Attributes

static int countTotalMainWindows = 0


Constructor & Destructor Documentation

gtk.MainWindow.MainWindow.this ( char[]  title  ) 

Creates a new MainWindow with a title.


Member Function Documentation

bit gtk.MainWindow.MainWindow.exit ( int  code,
bit  force 
) [protected]

Allows the application to close and decide if it can exit.

Parameters:
code the code reason to exit
force if true the application must expect to be closed even against it's will
Returns:
false to refuse to exit

int gtk.MainWindow.MainWindow.windowDelete ( Event  event,
Widget  widget 
) [protected]

Executed when the user tries to close the window.

Returns:
true to refuse to close the window


Member Data Documentation

int gtk.MainWindow.MainWindow.countTotalMainWindows = 0 [static, private]


SourceForge.net Logo DSource.org Logo digitalmars.com Logo