Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.MainWindow

Class MainWindow

dui.ObjectG.ObjectG
        dui.DUIObject.DUIObject
                dui.Widget.Widget
                        dui.Container.Container
                                dui.Bin.Bin
                                        dui.Window.Window
                                                dui.MainWindow.MainWindow

Implemented interfaces:


public class

MainWindow



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.

Constructor Summary
public (char title)
          Creates a new MainWindow with a title
(String title)
          

Methods Summary
protected public bit windowDelete(Window window, Event event)
          Executed when the user tries to close the window
protected bit exit(int code, bit force)
          Allows the application to close and decide if it can exit




public ctor(MainWindow)(char title)
Creates a new MainWindow with a title



ctor(MainWindow)(String title)

windowDelete

protected public bit windowDelete(Window window, Event event)
Executed when the user tries to close the window

Returns:
true to refuse to close the window

exit

protected bit exit(int code, bit force)
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