Subscribe in a reader

class Object

since 1.0.5

Description

This is the base class for all view objects.

Functions

Tuple getLocation ( )
void setLocation ( float x , float y )
Tuple getSize ( )
void setSize ( float x , float y )
void setName ( string name )
string getName ( )
string getTypeId ( )
void setMenu ( Table menu )
string getViewId ( )

Fields

no fields

Detailed Description

Functions

Tuple getLocation ( )
since 1.0.5
Description
Return
(x, y) the objects view location
void setLocation ( float x , float y )
since 1.0.5
Description
set the objects view location
Parameters
x -
y -
Tuple getSize ( )
since 1.0.5
Description
Return
(witdh, height) the objects size
void setSize ( float x , float y )
since 1.0.5
Description
set the objects size
not yet implemented
Parameters
x -
y -
void setName ( string name )
since 1.0.5
Description
set the objects view name
Parameters
name - the name
string getName ( )
since 1.0.5
Description
Return
the objects name
string getTypeId ( )
since 1.0.5
Description
Return
the objects type id
void setMenu ( Table menu )
since 1.0.5
Description
Parameters
menu - the menu structure table. (For a menu structure example see: View:setMenu())
string getViewId ( )
since 1.0.5
Description
the id is only valid while the editor is open. After closing the editor the id is invalid and needs to be updated on the next time the view is accessable.
Return
an id which was set by the view.

Fields

no fields