Documentation ¶
Index ¶
- func HttpHandler(loop *painter.Loop, p *Parser) http.Handler
- type Parser
- type Uistate
- func (u *Uistate) AddMoveFigures(x int, y int)
- func (u *Uistate) AddTFigure(centralPoint image.Point)
- func (u *Uistate) BackgRectangle(firstPoint image.Point, secondPoint image.Point)
- func (u *Uistate) GetOperations() []painter.Operation
- func (u *Uistate) GreenBack()
- func (u *Uistate) Reset()
- func (u *Uistate) ResetOperations()
- func (u *Uistate) ResetStateAndBackground()
- func (u *Uistate) SetUpdateOperation()
- func (u *Uistate) WhiteBack()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser уміє прочитати дані з вхідного io.Reader та повернути список операцій представлені вхідним скриптом.
type Uistate ¶
type Uistate struct { Rect *painter.Rectangle Figures []*painter.TFigure // contains filtered or unexported fields }
func (*Uistate) AddMoveFigures ¶
func (*Uistate) AddTFigure ¶
func (*Uistate) BackgRectangle ¶
func (*Uistate) GetOperations ¶
func (*Uistate) ResetOperations ¶
func (u *Uistate) ResetOperations()
func (*Uistate) ResetStateAndBackground ¶
func (u *Uistate) ResetStateAndBackground()
func (*Uistate) SetUpdateOperation ¶
func (u *Uistate) SetUpdateOperation()
Click to show internal directories.
Click to hide internal directories.