Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NormalText ¶ added in v0.1.10
type NormalText struct {
// contains filtered or unexported fields
}
NormalText is a highlighted text.
func NewNormalText ¶ added in v0.1.10
func NewNormalText(data []byte, style tcell.Style) *NormalText
NewNormalText creates a new highlighted data.
Parameters:
- data: The data to create the highlighted data from.
- style: The style to apply.
Returns:
- *NormalText: The new highlighted data.
func (*NormalText) Runes ¶ added in v0.1.10
func (hd *NormalText) Runes() []rune
Runes returns the runes of the text.
Returns:
- []rune: The runes of the text.
type ValidText ¶ added in v0.1.10
type ValidText[T gr.TokenTyper] struct { // contains filtered or unexported fields }
ValidText is a highlighted text.
func NewValidText ¶ added in v0.1.10
NewValidText creates a new highlighted data.
Parameters:
- tokens: The tokens to create the highlighted data from.
Returns:
- *ValidText: The new highlighted data.
- error: An error of type *uc.ErrInvalidParameter if the tokens are empty.
Click to show internal directories.
Click to hide internal directories.