Index: spec/rasuir.ct ================================================================== --- spec/rasuir.ct +++ spec/rasuir.ct @@ -80,19 +80,20 @@ * {m.n status-data}: the request was understood, and metadata is being returned if the reply is {m.n status-data}, the code must be followed by a [!byte-sequence<16>]. the meaning of this sequence is hint-dependent. ## widgets -the special notation [!tail] refers to the remainder of entry data body, which is wrapped in a sequence header, so the final element does not need an explicit length or termination marker. [!tail] indicates a type [$T] modified such that any length marker for the final value is removed; for instance [!tail] means ([!int<16>:[$pxl-width]] [!tail:[$map]]). -* {m.n w-paragraph} = [`0x00] [!tail] / shows a block of text -* {m.n w-section} = [`0x02] [!tail] / inserts a heading -* {m.n w-rule} = [`0x07] / inserts a horizontal line that stretches across the screen -* {m.n w-define} = [`0x03] [!string:[$name]] [!tail:[$val]] / shows a definition (e.g. [`[*Name]: Value]); sequential definitions may be arranged into a table -* {m.n w-pbar} = [`0x04] [!int<8>:[$progress]] / shows a progress bar; [`0] means empty, [`255] means full -* {m.n w-bitmap} = [`0x05] [!tail] / shows an image -* {m.n wi-bitmap} = [`0x06] [!link] [!string] [!tail] / shows an image that can be activated as an option, along with caption that may be displayed in vertical layout or as a substitute for the image in text-only displays -* {m.n wi-choice} = [`0x01] [!link:[$target]] [!tail:[$label]] / adds an option that can be selected from the menu, causing the client for query for [$target]. +* {m.n w-section} = [`0x00] [!string] / inserts a heading +* {m.n w-paragraph} = [`0x02] [!text] / shows a block of text +* {m.n w-rule} = [`0x03] / inserts a horizontal line that stretches across the screen +* {m.n w-define} = [`0x04] [!string:[$name]] [!text:[$val]] / shows a definition (e.g. [`[*Name]: Value]); sequential definitions may be arranged into a table +* {m.n w-bitmap} = [`0x05] [!bitmap] / shows an image +* {m.n w-bitdef} = [`0x06] [!string:[$name]] [!text:[$val]] [!bitmap] / like {m.n w-define}, but the value is characterized by an image rather than the [$name] string where possible +* {m.n w-pbar} = [`0x07] [!int<8>:[$progress]] / shows a progress bar; [`0] means empty, [`255] means full +* {m.n wi-bitmap} = [`0x08] [!link] [!string] [!bitmap] / shows an image that can be activated as an option, along with caption that may be displayed as a substitute for the image in text-only displays +* {m.n wi-bitmap-l} = [`0x09] [!link] [!string] [!bitmap] / like {m.n wi-bitmap} except the label is not omitted on devices with image support +* {m.n wi-choice} = [`0x01] [!link:[$target]] [!string:[$label]] / adds an option that can be selected from the menu, causing the client for query for [$target]. * {m.n wl-horiz} = [`0x80] [!int<8>:[$N]] / the next [$N] widgets will be arranged horizontally into a grid if possible ## roles a role is a small piece of metadata that alters the appearance of an object, for example by changing color or applying an icon. defined roles consist of: : generic