Documentation
¶
Index ¶
- Constants
- type Align
- type Orientation
- type Pool
- type RateLimiter
- type Rect
- func (r *Rect) AddLayoutChild(width, height int) *Rect
- func (r *Rect) AddRectChild(width, height int) *Rect
- func (r *Rect) AddTextChild(dc *gg.Context, text string, ft *truetype.Font, size float64) *TextRect
- func (r *Rect) Children() []*Rect
- func (r *Rect) Height() int
- func (r *Rect) SetAlignment(alignment Align)
- func (r *Rect) SetInset(inset int)
- func (r *Rect) SetMargin(left, top, right, bottom int)
- func (r *Rect) SetOrientation(orientation Orientation)
- func (r *Rect) Width() int
- func (r *Rect) X() int
- func (r *Rect) Y() int
- type SmartMutex
- type TextRect
Constants ¶
View Source
const ( SizeAuto = iota * -1 SizeFitParent )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Orientation ¶
type Orientation int
const ( OrientationHorizontal Orientation = iota OrientationVertical )
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
func NewRateLimiter ¶
func NewRateLimiter(maxRequests int, interval time.Duration) *RateLimiter
func (*RateLimiter) Enqueue ¶
func (rl *RateLimiter) Enqueue(job func())
type Rect ¶
type Rect struct {
// contains filtered or unexported fields
}
func (*Rect) AddLayoutChild ¶
func (*Rect) AddRectChild ¶
func (*Rect) AddTextChild ¶
func (*Rect) SetAlignment ¶
func (*Rect) SetOrientation ¶
func (r *Rect) SetOrientation(orientation Orientation)
type SmartMutex ¶
type SmartMutex[K comparable] struct { // contains filtered or unexported fields }
func NewSmartMutex ¶
func NewSmartMutex[K comparable]() *SmartMutex[K]
func (*SmartMutex[K]) Lock ¶
func (ctx *SmartMutex[K]) Lock(id K)
func (*SmartMutex[K]) Unlock ¶
func (ctx *SmartMutex[K]) Unlock(id K)
Click to show internal directories.
Click to hide internal directories.