Faces and actions

The widgets such as text, field, and button are called faces in Red. The details of a face, such as its size, color, or text, are called its facets. For example, in field 100x25 the pair value 100x25 is a facet describing the size (width x height) of the field (Red knows that because a pair value with a field is always a size). The order in which the facets are written does not matter. Faces can be given a name so that their properties can be used or manipulated in code, as we saw with the curr-code, curr-date, and out faces.

What is displayed by view is in fact also a face type, namely, the window. A program can contain multiple views, which by default appear as successive windows when the previous window is closed. 

Get Learn Red - Fundamentals of Red now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.