Documentation
¶
Index ¶
- type LazyBrush
- func (l *LazyBrush) BrushHasMoved() bool
- func (l *LazyBrush) Disable()
- func (l *LazyBrush) Enable()
- func (l *LazyBrush) GetAngle() float64
- func (l *LazyBrush) GetBrush() LP.LazyPoint
- func (l *LazyBrush) GetBrushCoordinates() map[string]int
- func (l *LazyBrush) GetDistance() float64
- func (l *LazyBrush) GetPointer() LP.LazyPoint
- func (l *LazyBrush) GetPointerCoordinates() map[string]int
- func (l *LazyBrush) GetRadius() float64
- func (l *LazyBrush) IsEnabled() bool
- func (l *LazyBrush) SetRadius(r float64)
- func (l *LazyBrush) Update(newPointerPoint P.Point, both bool) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LazyBrush ¶
type LazyBrush struct { Radius float64 Pointer LP.LazyPoint Brush LP.LazyPoint Angle float64 Distance float64 // contains filtered or unexported fields }
*
- constructor *
- @param {object} settings
- @param {number} settings.radius The radius for the lazy area
- @param {boolean} settings.enabled
func (*LazyBrush) BrushHasMoved ¶
*
- Return if the previous update has moved the brush. *
- @returns {boolean} Whether the brush moved previously.
func (*LazyBrush) GetAngle ¶
*
- Return the angle between pointer and brush *
- @returns {number} Angle in radians
func (*LazyBrush) GetBrushCoordinates ¶
*
- Return the brush coordinates as a simple object *
- @returns {object}
func (*LazyBrush) GetDistance ¶
*
- Return the distance between pointer and brush *
- @returns {number} Distance in pixels
func (*LazyBrush) GetPointerCoordinates ¶
*
- Return the pointer coordinates as a simple object *
- @returns {object}
Click to show internal directories.
Click to hide internal directories.