Home | About | Forum | Manual | Download | Screenshots

Window

The window object allows you to create and manage system windows.

    Properties

    Constructors

  • Window ( )
    Creates a new window component

    Constant Methods

  • boolean get_dimensions ( Rect dimensions )
    Gets the current dimensions of a window by populating the Rect helper object. Returns false if the system fails to get the current window dimensions

    Non-Constant Methods

  • boolean set_dimensions ( Rect dimensions )
    boolean set_dimensions ( number x, number y, number width, number height )
    Sets the dimensions of a window to a given position in screen coordinates and size in pixels. Returns false if the system fails to set the specified window dimensions
  • boolean set_title ( String title )
    Sets the caption of the window

Rect

The Rect helper object contains context information about a window's dimensions. It can be populated using the "get_dimensions" function

    Properties

  • number x
  • number y
  • number width
  • number height