Documentation ¶
Overview ¶
font
Index ¶
- type Alignment
- type Color
- type Font
- type PaletteIndex
- type Point
- type PreparedText
- type Touch
- type UI
- func (u *UI) Arc(p Point, r, a0, a1 float32)
- func (ui *UI) BeginFrame()
- func (u *UI) BeginPath()
- func (ui *UI) Button(w Window, depressed bool, label *PreparedText) *Touch
- func (u *UI) Circle(p Point, r float32)
- func (ui *UI) Dial(w Window, label *PreparedText, value float32, valueStr *PreparedText) (Window, *Touch)
- func (ui *UI) EndFrame()
- func (u *UI) EndPath()
- func (u *UI) Fill()
- func (u *UI) FillAndStroke()
- func (u *UI) FillColor(c Color)
- func (u *UI) FontFace(name string)
- func (u *UI) FontSize() float32
- func (ui *UI) Init()
- func (ui *UI) Label(w Window, t *PreparedText, align Alignment)
- func (u *UI) LineCap(style vg.CapStyleEnum)
- func (u *UI) MiterLimit(limit float32)
- func (u *UI) Palette(p PaletteIndex) Color
- func (ui *UI) Pane(w Window)
- func (ui *UI) PrepareText(s string) *PreparedText
- func (u *UI) Rect(w Window)
- func (u *UI) Restore()
- func (u *UI) RoundedRect(w Window, radius float32)
- func (u *UI) Save()
- func (u *UI) SetFontSize(size float32)
- func (u *UI) SetWindow(w Window)
- func (u *UI) Stroke()
- func (u *UI) StrokeColor(c Color)
- func (u *UI) StrokeWidth(size float32)
- func (u *UI) Text(w Window, size float32, align Alignment, t *PreparedText)
- func (u *UI) TextPoint(p Point, size float32, align Alignment, t *PreparedText)
- func (u *UI) Window() Window
- type UIPalette
- type Window
- func (w Window) AlignedPoint(align Alignment) Point
- func (n Window) Inner(l, t, r, b float32) Window
- func (w Window) IsPointInside(p Point) bool
- func (w Window) RadiusMin() float32
- func (n Window) SplitH(t float32) (top Window, bottom Window)
- func (n Window) SplitV(l float32) (left Window, right Window)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Font ¶
type Font struct {
// contains filtered or unexported fields
}
func NewSansFont ¶
func NewSansFont() *Font
type PaletteIndex ¶
type PaletteIndex int
type PreparedText ¶
type PreparedText struct { String string // contains filtered or unexported fields }
type UI ¶
type UI struct { Touches []Touch // contains filtered or unexported fields }
func (*UI) BeginFrame ¶
func (ui *UI) BeginFrame()
func (*UI) Dial ¶
func (ui *UI) Dial(w Window, label *PreparedText, value float32, valueStr *PreparedText) (Window, *Touch)
func (*UI) FillAndStroke ¶
func (u *UI) FillAndStroke()
func (*UI) LineCap ¶
func (u *UI) LineCap(style vg.CapStyleEnum)
func (*UI) MiterLimit ¶
func (*UI) Palette ¶
func (u *UI) Palette(p PaletteIndex) Color
func (*UI) PrepareText ¶
func (ui *UI) PrepareText(s string) *PreparedText
func (*UI) RoundedRect ¶
func (*UI) SetFontSize ¶
func (*UI) StrokeColor ¶
func (*UI) StrokeWidth ¶
Click to show internal directories.
Click to hide internal directories.