Documentation
¶
Index ¶
- Variables
- func GetTable() map[string]Operation
- type BRect
- type ClickHandler
- type CreateBRect
- type CreateMove
- type CreateTFigureFn
- type DrawableElement
- type Fill
- type FillCreateFn
- type Generator
- type Loop
- type Move
- type Operation
- type Point
- type Receiver
- type Rectangle
- type Reset
- type Store
- type TFigure
- type TextureGenerator
- type UpdatePoint
Constants ¶
This section is empty.
Variables ¶
View Source
var TFigureColor = color.RGBA{255, 102, 102, 255}
View Source
var Table = map[string]Operation{ "white": FillCreateFn(NewWhiteFill), "green": FillCreateFn(NewGreenFill), "figure": CreateTFigureFn(NewTFigure), "update": UpdatePoint{}, "brect": CreateBRect(NewBRect), "move": CreateMove(NewMove), "reset": Reset{}, }
Functions ¶
Types ¶
type ClickHandler ¶
type ClickHandler struct { GetTFigures func() []*TFigure // contains filtered or unexported fields }
func (*ClickHandler) GetTFigureUnderPoint ¶
func (cl *ClickHandler) GetTFigureUnderPoint(p image.Point) (*TFigure, bool)
type CreateBRect ¶
type CreateMove ¶
type CreateTFigureFn ¶
type DrawableElement ¶
type Fill ¶
func NewGreenFill ¶
func NewGreenFill() Fill
func NewWhiteFill ¶
func NewWhiteFill() Fill
type FillCreateFn ¶
type FillCreateFn func() Fill
type Loop ¶
type Loop struct { Receiver Receiver Gen TextureGenerator // contains filtered or unexported fields }
func (*Loop) AddDefaultElements ¶
func (l *Loop) AddDefaultElements()
func (*Loop) PostOperation ¶
func (*Loop) PostOperations ¶
type TFigure ¶
type TFigure struct { Color color.RGBA Center Point Size Point // contains filtered or unexported fields }
func NewTFigure ¶
type TextureGenerator ¶
type UpdatePoint ¶
type UpdatePoint struct{}
Click to show internal directories.
Click to hide internal directories.