Prev | Current Page 886 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

The Manager class also includes several functions
that deal with dialogs or controls on the whole. Table 17 - 2 details the methods of the Manager class.
Table 17-2
Method Description
new() : Void Initializes the nGui module.
close() : Void Cleans up after the nGui framework, freeing any
acquired memory.
loop() : Void Starts the main application event loop.
getText( title : String, text :
String ) : Void
Displays a text retrieval dialog with default text
value and OK and Cancel buttons.
getFile(filter : String ) : Void Displays a file dialog with extension filter control.
alarm( title : String, message :
String, button1 : String, button2 :
String, button3 : String ) : Void
Displays a message dialog with choice of one, two,
or three buttons.
appendItem( container : Void, item :
Void ) : Void
Appends the object specified by param one into the
object specified by param two.
getScreensize() : Void Returns an array of integers depicting the width
and height of the desktop.
The important methods to take note of are the top three methods: the constructor, loop , and close .


Pages:
874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898