pub enum Part {
Char(char),
PushForm(FormId),
PopForm(FormId),
MainCaret,
ExtraCaret,
AlignLeft,
AlignCenter,
AlignRight,
Spacer,
ToggleStart(ToggleId),
ToggleEnd(ToggleId),
ResetState,
}Expand description
A part of the Text, can be a char or a Tag.
This type is used in iteration by Uis in order to
correctly print Duat’s content. Additionally, you may be
able to tell that there is no ghost text or concealment
tags, and there is a ResetState.
That is because the Text’s iteration process automatically
gets rid of these tags, since, from the point of view of the
ui, ghost text is just regular text, while conceals are
simply the lack of text. And if the ui can handle printing
regular text, printing ghost text should be a breeze.
Variants§
Char(char)
A printed char, can be real or a Ghost
PushForm(FormId)
PopForm(FormId)
MainCaret
ExtraCaret
AlignLeft
End other forms of alignment
AlignCenter
Begin centered alignment
AlignRight
Begin right alignment
Spacer
Add a Spacer
ToggleStart(ToggleId)
Starts a toggleable region for the given ToggleId
Not yet implemented
ToggleEnd(ToggleId)
Ends a toggleable region for the given ToggleId
Not yet implemented