Documentation
¶
Index ¶
- type Item
- type List
- func (l *List[T]) Draw(primaryColor sdl.Color, selectedColor sdl.Color)
- func (l *List[T]) GetScrollOffset() int
- func (l *List[T]) GetSelectedIndex() int
- func (l *List[T]) GetValues() []T
- func (l *List[T]) ScrollDown()
- func (l *List[T]) ScrollUp()
- func (l *List[T]) SelectedValue() T
- func (l *List[T]) SetItems(items []Item[T])
- type TextArea
- type TextView
- func (t *TextView) AddText(text string)
- func (t TextView) AtBottom() bool
- func (t TextView) AtTop() bool
- func (t *TextView) Draw(textColor sdl.Color)
- func (t *TextView) GetScrollOffset() int
- func (t *TextView) GetText() []string
- func (t *TextView) GoToBottom()
- func (t *TextView) ScrollDown(n int)
- func (t *TextView) ScrollUp(n int)
- func (t *TextView) SetContent(text []string)
- func (t *TextView) SetYOffset(n int)
- type TextViewSize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List[T any] struct { // contains filtered or unexported fields }
func (*List[T]) GetScrollOffset ¶
func (*List[T]) GetSelectedIndex ¶
func (*List[T]) ScrollDown ¶
func (l *List[T]) ScrollDown()
func (*List[T]) SelectedValue ¶ added in v1.4.0
func (l *List[T]) SelectedValue() T
type TextArea ¶
type TextArea struct {
// contains filtered or unexported fields
}
func NewTextArea ¶
func (*TextArea) GetScrollOffset ¶
func (*TextArea) ScrollDown ¶
func (t *TextArea) ScrollDown()
type TextView ¶
type TextView struct { YOffset int // contains filtered or unexported fields }
func NewTextView ¶
func (*TextView) GetScrollOffset ¶
func (*TextView) GoToBottom ¶
func (t *TextView) GoToBottom()
func (*TextView) ScrollDown ¶
func (*TextView) SetContent ¶
func (*TextView) SetYOffset ¶
type TextViewSize ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.