[][src]Crate prototty

Modules

colours
inputs
prototty_inputs

Structs

Align
Border

Decorate another element with a border. It's possible to give the border a title, in which case the text appears in the top-left corner.

BorderChars

The characters comprising a border. By default, borders are made of unicode box-drawing characters, but they can be changed to arbitrary characters via this struct.

BorderPadding

The space in cells between the edge of the bordered area and the element inside.

Coord

General purpose coordinate

Decorated

Represents a particular view V, decorated by a decorator D.

DefaultMenuInstanceView

Default view of a MenuInstance.

DefaultRichTextView

Default view of a RichText.

Menu

A list of MenuEntrys, in the order they appear when rendered, with a description of how the text of the selected and normal (ie. not selected) entries should be rendered.

MenuEntry

A single entry in a menu. It owns the value which will be yielded if this entry is finalised.

MenuInstance

An instance of a menu, with a selected entry. When a MenuInstance is rendered, the currently-selected entry is rendered using the Menu's selected_info.

Rgb24
RichStringView
RichText

A text element, where the style of the text can be controlled. A single RichText element can have several different parts, each styled differently.

RichTextPart

A section of text sharing a common TextInfo.

Size

A size cannot be created which would contain un-addressable cells. That is, the maximum size has a width and height of one greater than the maximum i32.

StringView
TextInfo

Rich text settings

TextInfoStringView
ViewCell

Enums

Alignment
Input

An input event

MenuOutput

The result of a user interacting with a menu.

MouseButton
ProtottyInput

An input event

ScrollDirection

Traits

MenuIndexFromScreenCoord
View

Defines a method for rendering a T to the terminal.

ViewGrid

A grid of cells

ViewSize

Report the size of a T when rendered.