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