Documentation ¶
Overview ¶
Package fc is fyne high-level canvas
Index ¶
- func AbsCircle(cont *fyne.Container, x, y, r int, color color.RGBA)
- func AbsCornerImage(cont *fyne.Container, x, y, w, h int, name string)
- func AbsCornerRect(cont *fyne.Container, x, y, w, h int, color color.RGBA)
- func AbsEndRun(window fyne.Window, c *fyne.Container, w, h int)
- func AbsImage(cont *fyne.Container, x, y, w, h int, name string)
- func AbsLine(cont *fyne.Container, x1, y1, x2, y2 int, size float32, color color.RGBA)
- func AbsRect(cont *fyne.Container, x, y, w, h int, color color.RGBA)
- func AbsStart(name string, w, h int) (fyne.Window, *fyne.Container)
- func AbsText(cont *fyne.Container, x, y int, s string, size int, color color.RGBA)
- func AbsTextEnd(cont *fyne.Container, x, y int, s string, size int, color color.RGBA)
- func AbsTextMid(cont *fyne.Container, x, y int, s string, size int, color color.RGBA)
- func ColorLookup(s string) color.RGBA
- func MapRange(value, low1, high1, low2, high2 float64) float64
- func Polar(x, y, r, angle float64) (float64, float64)
- func PolarRadians(x, y, r, angle float64) (float64, float64)
- func Radians(deg float64) float64
- type Canvas
- func (c *Canvas) ArcLine(x, y, r, a1, a2, size float64, color color.RGBA)
- func (c *Canvas) CText(x, y float64, size float64, s string, color color.RGBA)
- func (c *Canvas) Circle(x, y, r float64, color color.RGBA)
- func (c *Canvas) CornerRect(x, y, w, h float64, color color.RGBA)
- func (c *Canvas) EText(x, y float64, size float64, s string, color color.RGBA)
- func (c *Canvas) EndRun()
- func (c *Canvas) Image(x, y float64, w, h int, name string)
- func (c *Canvas) Line(x1, y1, x2, y2, size float64, color color.RGBA)
- func (c *Canvas) Rect(x, y, w, h float64, color color.RGBA)
- func (c *Canvas) Text(x, y float64, size float64, s string, color color.RGBA)
- func (c *Canvas) TextWidth(s string, size float64) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsCornerImage ¶
AbsCornerImage places the image centered at x, y within a container
func AbsCornerRect ¶
AbsCornerRect makes a rectangle within a container
func AbsEndRun ¶
func AbsEndRun(window fyne.Window, c *fyne.Container, w, h int)
AbsEndRun shows the content and runs the app using bare windows and containers
func AbsTextEnd ¶
AbsTextEnd end-aligns text within a container
func AbsTextMid ¶
AbsTextMid centers text within a container
func ColorLookup ¶
ColorLookup returns a color.RGBA corresponding to the named color or "rgb(r)", "rgb(r,b)", "rgb(r,g,b), "rgb(r,g,b,a)", "#rr", "#rrgg", "#rrggbb", "#rrggbbaa" string. On error, return black
func MapRange ¶
MapRange -- given a value between low1 and high1, return the corresponding value between low2 and high2
func PolarRadians ¶
PolarRadians returns the euclidian corrdinates from polar coordinates
Types ¶
type Canvas ¶
Canvas is where objects are drawn into
func (*Canvas) CornerRect ¶
CornerRect places a rectangle with upper left corner on (x,y) within a container, using percent coordinates
func (*Canvas) Image ¶
Image places an image centered at (x, y) within a container, using percent coordinates
func (*Canvas) Rect ¶
Rect places a rectangle centered on (x,y) within a container, using percent coordinates
Directories ¶
Path | Synopsis |
---|---|
Package chart makes charts using the fync canvas package
|
Package chart makes charts using the fync canvas package |
fchart
fchart -- command line chart using fc chart packages
|
fchart -- command line chart using fc chart packages |
cmd
|
|
aconcentric
concentric gray scale circles
|
concentric gray scale circles |
aconfetti
confetti -- random shapes
|
confetti -- random shapes |
aeclipse
eclipse illustrates the eclipse
|
eclipse illustrates the eclipse |
amondrian
mondrian makes Composition II with Red Blue and Yellow by Piet Mondrian
|
mondrian makes Composition II with Red Blue and Yellow by Piet Mondrian |
arl
mondrian makes Composition II with Red Blue and Yellow by Piet Mondrian
|
mondrian makes Composition II with Red Blue and Yellow by Piet Mondrian |
concentric
concentric gray scale circles
|
concentric gray scale circles |
confetti
confetti -- random shapes
|
confetti -- random shapes |
eclipse
eclipse illustrates the eclipse
|
eclipse illustrates the eclipse |
elections
elections: show election results on a state grid
|
elections: show election results on a state grid |
mondrian
mondrian makes Composition II with Red Blue and Yellow by Piet Mondrian
|
mondrian makes Composition II with Red Blue and Yellow by Piet Mondrian |
rl
rl makes random gray scale lines
|
rl makes random gray scale lines |