Documentation ¶
Index ¶
- func NewButton(core common.Core) common.Component
- func NewFlexContainer(initial common.FlexLayout) common.Factory
- func NewGridContainer(cols int, gap int) common.Factory
- func NewImage(core common.Core) common.Component
- func NewRect(core common.Core) common.Component
- func NewText(core common.Core) common.Component
- type Button
- type Container
- type Image
- type Rect
- func (rect *Rect) Core() *common.Core
- func (rect *Rect) Destroy()
- func (rect *Rect) GetBorder() int
- func (rect *Rect) GetBorderColor() color.RGBA
- func (rect *Rect) GetColor() color.RGBA
- func (rect *Rect) Mount()
- func (rect *Rect) SetBorder(b int)
- func (rect *Rect) SetBorderColor(c color.RGBA)
- func (rect *Rect) SetColor(c color.RGBA)
- func (rect *Rect) Update()
- type Text
- func (t *Text) Color() color.Color
- func (t *Text) Core() *common.Core
- func (t *Text) Destroy()
- func (t *Text) Font() string
- func (t *Text) FontSize() float64
- func (t *Text) LineHeight() float64
- func (t *Text) Mount()
- func (t *Text) SetColor(c color.Color)
- func (t *Text) SetFont(font string)
- func (t *Text) SetFontSize(size float64)
- func (t *Text) SetLineHeight(size float64)
- func (t *Text) SetText(text string)
- func (t *Text) Text() string
- func (t *Text) Update()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFlexContainer ¶
func NewFlexContainer(initial common.FlexLayout) common.Factory
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func (*Container) SetLayout ¶
func (c *Container) SetLayout(options common.LayoutOptions)
type Rect ¶
type Rect struct {
// contains filtered or unexported fields
}
func (*Rect) GetBorderColor ¶
func (*Rect) SetBorderColor ¶
type Text ¶
type Text struct {
// contains filtered or unexported fields
}
func (*Text) LineHeight ¶
func (*Text) SetFontSize ¶
func (*Text) SetLineHeight ¶
Click to show internal directories.
Click to hide internal directories.