Documentation ¶
Index ¶
- func LinesToString(lines []Line) string
- type Action
- type BeginAct
- type Cell
- type CenteredText
- type Dialogue
- type DualDialogue
- type Element
- type ElementType
- type EndAct
- type Line
- type Lyrics
- type Note
- type PageBreak
- type Parenthetical
- type Scene
- type Script
- type Section
- type Speech
- type Synopsis
- type Transition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LinesToString ¶
LinesToString gets a string representation of a list of strings
Types ¶
type CenteredText ¶
type CenteredText []Line
CenteredText type.
func (CenteredText) Equals ¶
func (centeredtext CenteredText) Equals(other Element) bool
Equals checks if an Element is the same CenteredText
type DualDialogue ¶
DualDialogue type.
func (DualDialogue) Equals ¶
func (dualdialogue DualDialogue) Equals(other Element) bool
Equals checks if an Element is the same DualDialogue
type ElementType ¶
type ElementType byte
ElementType is another representation of an elements type
const ( TScene ElementType = iota TBeginAct TEndAct TAction TDialogue TDualDialogue TLyrics TTransition TCenteredText TPageBreak TSection TSynopsis TNote TNone )
Defines the different ElementTypes
func GetElementType ¶
func GetElementType(elem Element) ElementType
GetElementType returns the type of element as a lowercase string and "TNone" if unknown.
type Line ¶
type Line []Cell
Line a line of richtext cells
func (Line) StringBuffer ¶
StringBuffer returns a buffer containing the contents of the line
type Parenthetical ¶
type Parenthetical []Line
Parenthetical type
func (Parenthetical) Equals ¶
func (parenthetical Parenthetical) Equals(other Element) bool
Equals checks if an Element is the same Parenthetical
type Transition ¶
type Transition []Line
Transition type.
func (Transition) Equals ¶
func (transition Transition) Equals(other Element) bool
Equals checks if an Element is the same Transition
Click to show internal directories.
Click to hide internal directories.