Skip to content
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

  • $c The Layout coordinate

  • $x The new value, or Tools::GET for query

  • return The current value if queried

function coords( array $cs, $xs=Tools::GET)

Gets or sets more coordinates

  • $cs The Layout coordinates

  • $xs The values, or Tools::GET for query

  • return An array containing the values

function isCoord($c)

Does $c coordinate exist for this View

Clone this wiki locally