-
Notifications
You must be signed in to change notification settings - Fork 0
View
Várnagy Zoltán edited this page Sep 11, 2026
·
5 revisions
class View extends Elem
A widget, that can appear in the GUI
Properties
ALIGN Alignment (Layout:: LEFT, RIGHT or CENTERX)
CURSOR Cursor (Cursor:: DEFAULT, WAIT)
STYLE Style describing colors and font properties
TEXT Text of a View (string)
VISIBLE Is View visible (bool)
Handlers
KEY Key press/release handler (h(Key $k))
public $parent Parent Group
function invalidate()
Signals the engine to redraw the View
function parent( $x = Tools::GET )
Get or set parent Group
function visible( $x = Tools::GET )
View::VISIBLE property
function cursor( $x = Tools::GET )
View::Cursor property
function focus()
Focuses the View
function coord( $c, $x=Tools::GET )
Gets or sets a coordinate
-
$cThe Layout coordinate -
$xThe new value, orTools::GETfor query -
returnThe current value if queried
function coords( array $cs, $xs=Tools::GET)
Gets or sets more coordinates
-
$csThe Layout coordinates -
$xsThe values, orTools::GETfor query -
returnAn array containing the values
function isCoord($c)
Does $c coordinate exist for this View