page - noritake-itron/iDevOs_syntax_reference GitHub Wiki

PAGE

Description

The most fundamental command which allows to create a page entity. Pages contain other entities - like text, drawings and images - to be shown on the display plus functions that will run as a background task only on that page. Entities are listed so that they are layered from back to front.

Syntaxes

To declare page we have to use an appropriate command and specify two parameters: page name & page style. Both parameters have to be a single word string. Page style need to be declared before you create a page.

For example:

style(style_name, page) { back = "Red"; }

page(page_name, style_name) 
{
// Page Contents - "//" - allows to comment out piece of code or to create a comment like this one
}

Page styles

Before you create page you need to specify its style