Documentation ¶
Index ¶
- type Arrow
- type C
- type Circle
- func (c Circle) Bounds() f32.Rectangle
- func (c Circle) Draw(gtx C)
- func (cc Circle) Fill(col color.NRGBA, gtx layout.Context) f32.Rectangle
- func (c Circle) Hit(p f32.Point) bool
- func (c Circle) Move(delta f32.Point)
- func (c Circle) Offset(p f32.Point) Shape
- func (cc Circle) Stroke(col color.NRGBA, width float32, gtx layout.Context) f32.Rectangle
- type D
- type Group
- type Image
- type Label
- type Line
- type Path
- type Plane
- func (p Plane) Center() f32.Point
- func (p Plane) GetTransform() f32.Affine2D
- func (p Plane) GetTransform2() f32.Affine2D
- func (p Plane) Hits(pos f32.Point) Shape
- func (p *Plane) Insert(s Shape)
- func (p *Plane) InsertAll(ss []Shape)
- func (p Plane) Intersects(r f32.Rectangle) []Shape
- func (p Plane) RelativePoint(point f32.Point, gtx C) f32.Point
- func (p *Plane) Remove(s Shape)
- func (p *Plane) RemoveAll(ss []Shape)
- func (p *Plane) Update(s Shape)
- func (p *Plane) UpdateAll(ss []Shape)
- func (p *Plane) View(gtx C)
- func (p Plane) Within(r f32.Rectangle) Group
- type Rectangle
- type RegularPolygon
- type Shape
- type StarPolygon
- type Text
- type Triangle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Circle ¶
type D ¶
type D = layout.Dimensions
type Line ¶
type Plane ¶
type Plane struct { Elements *orderedmap.OrderedMap Index *rtree.RTree Offset f32.Point Scale float32 Width float32 Height float32 }
A two-dimensional surface that extends infinitely far
func (Plane) GetTransform ¶
func (Plane) GetTransform2 ¶
type Rectangle ¶
type RegularPolygon ¶
type RegularPolygon struct{}
type StarPolygon ¶
type StarPolygon struct{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.