Documentation ¶
Index ¶
- func AddClipPath(element *etree.Element, id string, x, y, w, h float64)
- func AddCornerRadius(e *etree.Element, radius float64)
- func AddOutline(e *etree.Element, width float64, color string)
- func AddShadow(element *etree.Element, id string, x, y, blur float64)
- func GetDimensions(element *etree.Element) (int, int)
- func Move(e *etree.Element, x, y float64)
- func NewWindowControls(r float64, x, y float64) *etree.Element
- func SetDimensions(element *etree.Element, width, height float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddClipPath ¶
AddClipPath adds a definition of a clip path to the <defs> with the given id.
func AddCornerRadius ¶
AddCornerRadius adds corner radius to an element.
func AddOutline ¶
AddOutline adds an outline to the given element.
func GetDimensions ¶
GetDimensions returns the width and height of the element.
func NewWindowControls ¶
NewWindowControls returns a colorful window bar element.
func SetDimensions ¶
SetDimensions sets the width and height of the given element.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.