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