lang

package
v0.0.0-...-fdf5337 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpHandler

func HttpHandler(loop *painter.Loop, p *Parser) http.Handler

HttpHandler конструює обробник HTTP запитів, який дані з запиту віддає у Parser, а потім відправляє отриманий список операцій у painter.Loop.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser уміє прочитати дані з вхідного io.Reader та повернути список операцій представлені вхідним скриптом.

func (*Parser) Parse

func (p *Parser) Parse(in io.Reader) ([]painter.Operation, error)

type Uistate

type Uistate struct {
	Rect    *painter.Rectangle
	Figures []*painter.TFigure
	// contains filtered or unexported fields
}

func (*Uistate) AddMoveFigures

func (u *Uistate) AddMoveFigures(x int, y int)

func (*Uistate) AddTFigure

func (u *Uistate) AddTFigure(centralPoint image.Point)

func (*Uistate) BackgRectangle

func (u *Uistate) BackgRectangle(firstPoint image.Point, secondPoint image.Point)

func (*Uistate) GetOperations

func (u *Uistate) GetOperations() []painter.Operation

func (*Uistate) GreenBack

func (u *Uistate) GreenBack()

func (*Uistate) Reset

func (u *Uistate) Reset()

func (*Uistate) ResetOperations

func (u *Uistate) ResetOperations()

func (*Uistate) ResetStateAndBackground

func (u *Uistate) ResetStateAndBackground()

func (*Uistate) SetUpdateOperation

func (u *Uistate) SetUpdateOperation()

func (*Uistate) WhiteBack

func (u *Uistate) WhiteBack()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL