Developer   API   Native User Interface   Window

  •  Config(0)
  •  Properties(2)
  •  Methods(10)
  •  Events(13)

Window(native)

This class encapsulates top level window (application).

Properties

  • layout : Integer
    StackLayout used to organize elements into the window.
  • name : String
    name offset thw window

Methods

  • add(view [, order]) : Window
    Function adds existing view object into this window.
  • find(name) : View
    Search for child view, which name is same as name from function's param.
  • init(enableFPS = true) : Window
    Initialize window object.
  • invalidate([left, top, right, bottom]) : Window
    This function ensure redrawing a rectangle, determined by parameters. If no parameters are set, whole object will be redraw. Redrawing manages the function, which is set to onDraw event.
  • performLayout() : Window
    Performs (force) layout calculations.
  • removeAll() : Window
    Removes all objects from the window.
  • resumeLayout() : Window
    Resume layer's recalculating.
  • run() : Window
    Runs the main application loop. This function is blocking.
  • suspendLayout() : Window
    Pause layer's recalculating.
  • this([name]) : Window
    Constructor - creates new instance of Window class.

Events

  • onBackgroud(sender)
    This event appears, when application moves to background.
  • onChar(sender, charCode)
    This event is raised by release an UNICODE character key.
  • onDraw(sender, canvas)
    This event occurs, when it is necessary to redraw object. onDraw event is usually managed by skin.
  • onForeground(sender)
    This event appears, when application moves to foreground.
  • onKeyPressed(sender, key)
    This event is raised by press the key.
  • onKeyReleased(sender, key)
    This event is raised by release the key.
  • onPointerDragged(sender, x, y)
    Called when touch (click) is moved.
  • onPointerPressed(sender, x, y)
    Called when touch (click) is stared.
  • onPointerReleased(sender, x, y)
    Called when touch (click) is finished.
  • onProcess()
    Callback function, which is which is called from the object every 25ms.
  • onQuit(sender)
    This event appears, when application ends - only once during the application life cycle.
  • onResize(sender, width, height)
    Occurs when the control is resized.
  • onStart(sender)
    This event appears, when application starts - only once during the application life cycle.