Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateStyledText ¶
CreateStyledText returns text field with applied style
func RemoveStyleTextMarkers ¶
RemoveStyleTextMarkers removes styled markers from string
Types ¶
type Body ¶
type Body struct {
// contains filtered or unexported fields
}
Body contains data for display page
type Row ¶
type Row struct {
// contains filtered or unexported fields
}
Row - paragraph row
func (*Row) GetMarginLeft ¶
GetMarginLeft gets marginLeft field
func (*Row) GetTextRuneCount ¶
GetTextRuneCount gets textRuneCount field
func (*Row) GetTextStyled ¶
GetTextStyled gets textStyled field
type RowChunk ¶
type RowChunk struct {
// contains filtered or unexported fields
}
RowChunk contains data for display styled text part of row
func MakeRowChunk ¶
func MakeRowChunk(text string, styles ...StyleTextMask) RowChunk
MakeRowChunk creates RowChunk
func MakeRowChunkSpaces ¶
MakeRowChunkSpaces creates RowChunk with countSpaces spaces
func (*RowChunk) CountRunes ¶
CountRunes returns size text field as rune slice
type StyleTextMask ¶
type StyleTextMask int
StyleTextMask - style of text byte mask
const ( // StyleTextDefault - default value of StyleTextMask StyleTextDefault StyleTextMask = 0 // StyleTextBold - use bold text StyleTextBold StyleTextMask = 0x1 // StyleTextUnderlined - use underlined text StyleTextUnderlined StyleTextMask = 0x2 )
func (StyleTextMask) Has ¶
func (m StyleTextMask) Has(check StyleTextMask) bool
Has returns if StyleTextMask has set StyleTextMask
Click to show internal directories.
Click to hide internal directories.