Documentation ¶
Index ¶
- type Input
- func (I *Input) Click()
- func (I Input) Clone(r *sdl.Renderer) (*Input, error)
- func (I *Input) Close() error
- func (I *Input) Draw(wg *sync.WaitGroup, r *sdl.Renderer)
- func (I Input) GetColor() (r, g, b, a uint8)
- func (I Input) GetPosition() (int32, int32)
- func (I Input) GetSize() (int32, int32)
- func (I Input) GetStatus() uint8
- func (I Input) GetTxt() string
- func (I *Input) Init(r *sdl.Renderer) error
- func (I Input) IsInit() bool
- func (I Input) IsOver(xRef, yRef int32) bool
- func (I *Input) MoveTo(x, y int32)
- func (I Input) Reset(r *sdl.Renderer)
- func (I *Input) SetAction(f func(...interface{}), d ...interface{})
- func (I *Input) SetNewRune(key sdl.Keysym, r *sdl.Renderer) error
- func (I *Input) SetStatus(s uint8)
- func (I *Input) UpdateColor(red, green, blue, opacity uint8, r *sdl.Renderer)
- func (I *Input) UpdatePosition(x, y int32)
- func (I *Input) UpdateSize(w, h int32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
Input object implementation
func (*Input) SetAction ¶
func (I *Input) SetAction(f func(...interface{}), d ...interface{})
SetAction to get it on click button
func (*Input) SetNewRune ¶
SetNewRune add a character on the text
func (*Input) UpdateColor ¶
UpdateColor to change color of initialized object
func (*Input) UpdateSize ¶
UpdateSize to change size of initialized object
Click to show internal directories.
Click to hide internal directories.