Documentation ¶
Index ¶
- Constants
- type ArrowHead
- type HorizontalStack
- type Link
- type Margin
- type Padding
- type Resource
- func (r *Resource) AddChild(child *Resource)
- func (r *Resource) AddLink(link *Link)
- func (r *Resource) AddParent()
- func (r *Resource) Draw(img *image.RGBA, parent *Resource) *image.RGBA
- func (r *Resource) GetBindings() image.Rectangle
- func (r *Resource) GetMargin() Margin
- func (r *Resource) GetPadding() Padding
- func (r *Resource) Init() *Resource
- func (r *Resource) IsDrawn() bool
- func (r *Resource) LoadIcon(imageFilePath string) error
- func (r *Resource) Scale(parent *Resource)
- func (r *Resource) SetAlign(align string)
- func (r *Resource) SetBindings(bindings image.Rectangle)
- func (r *Resource) SetBorderColor(borderColor color.RGBA)
- func (r *Resource) SetDirection(direction string)
- func (r *Resource) SetFillColor(fillColor color.RGBA)
- func (r *Resource) SetIconBounds(bounds image.Rectangle)
- func (r *Resource) SetLabel(label *string, labelColor *color.RGBA, labelFont *string)
- func (r *Resource) Translation(dx, dy int)
- func (r *Resource) ZeroAdjust()
- type VerticalStack
Constants ¶
View Source
const DEBUG_LAYOUT = false
View Source
const WIDTH = 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HorizontalStack ¶
type HorizontalStack struct {
// contains filtered or unexported fields
}
func (HorizontalStack) Init ¶
func (v HorizontalStack) Init() *Resource
type Link ¶
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func (*Resource) GetBindings ¶
func (*Resource) GetPadding ¶
func (*Resource) SetBindings ¶
func (*Resource) SetBorderColor ¶
func (*Resource) SetDirection ¶
func (*Resource) SetFillColor ¶
func (*Resource) SetIconBounds ¶
func (*Resource) Translation ¶
func (*Resource) ZeroAdjust ¶
func (r *Resource) ZeroAdjust()
type VerticalStack ¶
type VerticalStack struct {
// contains filtered or unexported fields
}
func (VerticalStack) Init ¶
func (h VerticalStack) Init() *Resource
Click to show internal directories.
Click to hide internal directories.