Documentation ¶
Index ¶
Constants ¶
View Source
const Namespace = "https://yuml.ovo.ovh/schema/components/1.0"
Variables ¶
View Source
var AllComponents = map[string]components.ComponentProvider{
"Page": makePage,
"Canvas": makeCanvas,
"Image": makeImage,
"Label": makeLabel,
}
Functions ¶
This section is empty.
Types ¶
type Canvas ¶
type Canvas struct { components.Base // contains filtered or unexported fields }
Canvas is a container that has absolute positioning and sizing regardless of parent/siblings. While Canvas can hold multiple childrens, those childrens will share the same position/size so they will all overlap each other. It is therefore recommended to only put one component inside a Canvas.
func (*Canvas) SetBounds ¶
func (c *Canvas) SetBounds(bounds components.Bounds)
func (*Canvas) SetPosition ¶
type Image ¶
type Image struct { components.Drawable // contains filtered or unexported fields }
Image is a simple box that can contain an image or any sort of drawable surface
func (*Image) ClearFlags ¶
func (i *Image) ClearFlags()
func (*Image) ShouldDraw ¶
type Label ¶
type Label struct { components.Base components.Text }
Label is a drawable text label
func (*Label) ShouldDraw ¶
ShouldDraw returns whether the label needs to be re-drawn
type Page ¶
type Page struct { components.Base // contains filtered or unexported fields }
Page is a special canvas container with less checks
func (*Page) ShouldDraw ¶
Click to show internal directories.
Click to hide internal directories.