Documentation
¶
Index ¶
- type Text
- func (T Text) Click()
- func (T Text) Clone(r *sdl.Renderer) (*Text, error)
- func (T *Text) Close() error
- func (T Text) Draw(wg *sync.WaitGroup, r *sdl.Renderer)
- func (T Text) GetColor() (r, g, b, a uint8)
- func (T Text) GetIDSDL() uint8
- func (T Text) GetPosition() (int32, int32)
- func (T Text) GetSize() (int32, int32)
- func (T Text) GetStatus() uint8
- func (T Text) GetTxt() string
- func (T *Text) Init(r *sdl.Renderer) error
- func (T Text) IsInit() bool
- func (T Text) IsOver(xRef, yRef int32) bool
- func (T *Text) MoveTo(x, y int32)
- func (T *Text) NewIDSDL() uint8
- func (T *Text) SetAction(f func(...interface{}), d ...interface{})
- func (T *Text) SetStatus(s uint8)
- func (T *Text) SetUnderPosition(x, y int32)
- func (T *Text) SetVariantStyle(r, g, b, a uint8, status ...uint8) error
- func (T *Text) SetVariantUnderStyle(r, g, b, a uint8, status ...uint8) error
- func (T *Text) UpdateColor(red, green, blue, opacity uint8, r *sdl.Renderer)
- func (T *Text) UpdatePosition(x, y int32)
- func (T *Text) UpdateSize(w, h int32)
- func (T *Text) UpdateText(str string, r *sdl.Renderer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Text ¶
type Text struct {
// contains filtered or unexported fields
}
Text object implementation
func (*Text) SetAction ¶
func (T *Text) SetAction(f func(...interface{}), d ...interface{})
SetAction to get it on click button
func (*Text) SetUnderPosition ¶
SetUnderPosition to underText
func (*Text) SetVariantStyle ¶
SetVariantStyle define styles to interact with object.
func (*Text) SetVariantUnderStyle ¶
SetVariantUnderStyle define styles under to interact with object.
func (*Text) UpdateColor ¶
UpdateColor to change color of initialized object
func (*Text) UpdateSize ¶
UpdateSize to change size of initialized object
Click to show internal directories.
Click to hide internal directories.