Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MouseStrokeSource ¶
type MouseStrokeSource struct{}
func (*MouseStrokeSource) IsJustReleased ¶
func (m *MouseStrokeSource) IsJustReleased() bool
func (*MouseStrokeSource) Position ¶
func (m *MouseStrokeSource) Position() (int, int)
type Observable ¶
type Observable interface {
Add(Observer)
Remove(Observer)
Notify(StrokeEvent)
}
type Observer ¶
type Observer interface {
NotifyCallback(StrokeEvent)
}
https://gist.github.com/patrickmn/1549985?permalink_comment_id=3036407#gistcomment-3036407
type Stroke ¶
func NewStroke ¶
func NewStroke(source StrokeSource) *Stroke
func StartStroke ¶
func (*Stroke) IsReleased ¶
func (*Stroke) Notify ¶
func (s *Stroke) Notify(event StrokeEvent)
func (*Stroke) PositionDiff ¶
type StrokeSource ¶
type TouchStrokeSOurce ¶
func (*TouchStrokeSOurce) IsJustReleased ¶
func (t *TouchStrokeSOurce) IsJustReleased() bool
func (*TouchStrokeSOurce) Position ¶
func (t *TouchStrokeSOurce) Position() (int, int)
type WheelStrokeSource ¶
type WheelStrokeSource struct{}
func (*WheelStrokeSource) IsJustReleased ¶
func (w *WheelStrokeSource) IsJustReleased() bool
func (*WheelStrokeSource) Position ¶
func (w *WheelStrokeSource) Position() (int, int)
Click to show internal directories.
Click to hide internal directories.