Subscribe in a reader

class Window

since 1.0.52

Description

This class represents a window.

Functions

void open ( )
void setSize ( int width , int height )
void setLocation ( int x , int y )
Tuple getSize ( )
Tuple getLocation ( )
void setTitle ( string title )
string getTitle ( )
void close ( )
void addCloseListener ( string expr )

Fields

no fields

Detailed Description

Functions

void open ( )
since 1.0.52
Description
Opens the window
void setSize ( int width , int height )
since 1.0.52
Description
set the window size
Parameters
width - the window witdh
height - the window height
void setLocation ( int x , int y )
since 1.0.52
Description
set the window location
Parameters
x - the window's x coordinate
y - the window's y coordinate
Tuple getSize ( )
since 1.0.52
Description
Return
the window size (width, height)
Tuple getLocation ( )
since 1.0.52
Description
Return
the window location (x, y)
void setTitle ( string title )
since 1.0.52
Description
Set the window title.
Parameters
title - the title
string getTitle ( )
since 1.0.52
Description
Return
the window title
void close ( )
since 1.0.52
Description
Closes the window.
void addCloseListener ( string expr )
since 1.0.52
Description
Adds a listener which will be called when window is closing
Parameters
expr - a valid lua expression

Fields

no fields