Difference between revisions of "Window (API)"

From ComputerCraft Wiki
Jump to: navigation, search
(Created window API page.)
 
Line 1: Line 1:
{{NeedsWork|This page should be created ASAP. - [[User:Oeed|Oeed]] 05:59, 28 March 2014 (GMT)}}
+
Added by ComputerCraft 1.6, the '''Window API''' allows easy definition of spaces within the display that can be written / drawn to, then repositioned or hidden (along with their contents).
 +
 
 +
==API==
 +
{| class="wikitable" width="100%"
 +
! width="100px" | Returns
 +
! width="200px" | Method name
 +
! Description
 +
|-
 +
|{{type|table}} window object
 +
|[[window.create]]({{type|table}} parentTerm, {{type|number}} x, {{type|number}} y, {{type|number}} width, {{type|number}} height [<nowiki/>, {{type|boolean}} visible])
 +
|Creates and returns a new window object, similar to a [[peripheral.wrap|wrapped]] [[monitor]]. Refer to the [[term (API)|term API]] for a list of functions attached to it.
 +
|}
 +
 
 +
[[Category:APIs]]

Revision as of 07:53, 6 April 2014

Added by ComputerCraft 1.6, the Window API allows easy definition of spaces within the display that can be written / drawn to, then repositioned or hidden (along with their contents).

API

Returns Method name Description
table window object window.create(table parentTerm, number x, number y, number width, number height [, boolean visible]) Creates and returns a new window object, similar to a wrapped monitor. Refer to the term API for a list of functions attached to it.