Skip to main content

Module toolbar

Module toolbar 

Source
Expand description

The row of buttons over a page being edited. DESIGN.md §11.

Structs§

MenuState
What the Format menu draws itself from: what the page said the last time it was drawn, because a menu is drawn before the page is.
Pressed
What was pressed on a text document’s toolbar.

Enums§

Command
What the Format menu asks of the page: one of the buttons’ commands.

Functions§

marks
Bold, italic, underline and strikethrough, each lit where the whole selection has it, and none of them live without a caret. Answers the mark whose button was pressed, for the editor to toggle over the model.
menu
The Format menu’s entries: the marks, each with its shortcut, and where the page has them the kinds of paragraph. Lit where the whole selection is one, and not live without a caret. Answers the command chosen.
text
The marks, and after them the kinds of paragraph: body text, three levels of heading, a bulleted and a numbered list. Each is lit where every paragraph the selection runs over is one, and pressing a lit one takes it off.