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