Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlinkingOp ¶ added in v0.0.3
type BlinkingOp struct { Op *ebiten.DrawImageOptions // contains filtered or unexported fields }
DrawImageOption extension to make an element blink.
Set the blinking speed with SetInterval and update the blinking state with Update while drawing the element using the property Op.
func NewBlinkingOp ¶ added in v0.0.3
func NewBlinkingOp(dotClr color.Color) *BlinkingOp
func (*BlinkingOp) Clear ¶ added in v0.0.3
func (b *BlinkingOp) Clear()
Clear clears internal values except the interval value. If you want to change the blinking interval, please use SetInterval method.
func (*BlinkingOp) SetInterval ¶ added in v0.0.4
func (b *BlinkingOp) SetInterval(interval int)
SetInterval sets the interval of blinking. Larger values will cause it to blink more slowly.
func (*BlinkingOp) Update ¶ added in v0.0.3
func (b *BlinkingOp) Update()
Update updates the internal values to blink.
type Gauge ¶
type Gauge struct {
// contains filtered or unexported fields
}
func NewGaugeWithColor ¶
NewGauge generates a new gauge ui component with specified colors.
x,y: position max: gauge's max value dotClr: dot's color bkClr: background color
func NewGaugeWithScale ¶ added in v0.0.5
func (*Gauge) SetBlinkInterval ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.