Versions in this module Expand all Collapse all v0 v0.1.2 Dec 2, 2023 Changes in this version + func MouseInBounds(window *glfw.Window, area Area) bool + type Area struct + Bottom float64 + Function func() + Left float64 + Right float64 + Top float64 + func (a Area) ToString() string type Button + Function func() + HoverImage string + Image string + func (button Button) ToString() string type Column + Image string + func (column Column) ToString() string + type Container struct + Child UIElement + Image string + Properties Properties + Style Style + func (container Container) Draw(img *image.RGBA, window *glfw.Window) []Area + func (container Container) GetProperties() Properties + func (container Container) Initialize(skip SkipAlignment) UIElement + func (container Container) SetParent(parent *Properties) UIElement + func (container Container) SetProperties(size Size, center Point) UIElement + func (container Container) ToString() string type Point + func (p Point) ToString() string type Properties + Type UIType + func (p Properties) ToString() string type Row + Image string + func (row Row) ToString() string type Size + func (s Size) ToString() string type Style + func DefaultStyle(style Style) Style + func (s Style) ToString() string type StyleText + func DefaultStyleText(style StyleText) StyleText + func (s StyleText) ToString() string type Text + func (text Text) ToString() string type UIElement + ToString func() string + type UIType byte + const UIButton + const UIColumn + const UIContainer + const UIImage + const UIRow + const UIText + func (u UIType) ToString() string v0.1.1 Jun 15, 2023 Changes in this version + func Draw(img *image.RGBA, window *glfw.Window, props Properties, style Style) + func GetScreenCenter(props Properties) (int, int) + func GetScreenSize(props Properties) (int, int) + type Alignment byte + const AlignmentBottom + const AlignmentBottomLeft + const AlignmentBottomRight + const AlignmentCenter + const AlignmentLeft + const AlignmentRight + const AlignmentTop + const AlignmentTopLeft + const AlignmentTopRight + type Button struct + Child UIElement + Properties Properties + Style Style + func (button Button) Debug() + func (button Button) Draw(img *image.RGBA, window *glfw.Window) + func (button Button) GetProperties() Properties + func (button Button) Initialize(skip SkipAlignment) UIElement + func (button Button) SetParent(parent *Properties) UIElement + func (button Button) SetProperties(size Size, center Point) UIElement + type Column struct + Children []UIElement + Properties Properties + Style Style + func (column Column) Debug() + func (column Column) Draw(img *image.RGBA, window *glfw.Window) + func (column Column) GetProperties() Properties + func (column Column) Initialize(skip SkipAlignment) UIElement + func (column Column) SetParent(parent *Properties) UIElement + func (column Column) SetProperties(size Size, center Point) UIElement + type Padding struct + Bottom int + Left int + Right int + Scale ScaleType + Top int + func PaddingEqual(scale ScaleType, padding int) Padding + func PaddingSideBySide(scale ScaleType, top, right, bottom, left int) Padding + func PaddingSymmetric(scale ScaleType, vertical, horizontal int) Padding + type Point struct + X int + Y int + type Properties struct + Alignment Alignment + Center Point + Function func() + Initialized bool + Padding Padding + Parent *Properties + Size Size + Skip SkipAlignment + func DefaultProperties(props Properties, skip SkipAlignment) Properties + type Row struct + Children []UIElement + Properties Properties + Style Style + func (row Row) Debug() + func (row Row) Draw(img *image.RGBA, window *glfw.Window) + func (row Row) GetProperties() Properties + func (row Row) Initialize(skip SkipAlignment) UIElement + func (row Row) SetParent(parent *Properties) UIElement + func (row Row) SetProperties(size Size, center Point) UIElement + type ScaleType bool + const ScalePixel + const ScaleRelative + type Size struct + Height int + Scale ScaleType + Width int + type SkipAlignment byte + const SkipAlignmentHoriz + const SkipAlignmentNone + const SkipAlignmentVert + type Style struct + BorderColor color.Color + BorderWidth int + Color color.Color + CornerRadius int + type StyleText struct + Font string + FontColor color.Color + FontSize int + type Text struct + Properties Properties + StyleText StyleText + func (text Text) Debug() + func (text Text) Draw(img *image.RGBA, window *glfw.Window) + func (text Text) GetProperties() Properties + func (text Text) Initialize(skip SkipAlignment) UIElement + func (text Text) SetParent(parent *Properties) UIElement + func (text Text) SetProperties(size Size, center Point) UIElement + type UIElement interface + Debug func() + Draw func(img *image.RGBA, window *glfw.Window) + GetProperties func() Properties + Initialize func(skip SkipAlignment) UIElement + SetParent func(parent *Properties) UIElement + SetProperties func(size Size, center Point) UIElement + func ApplyAlignment(element UIElement) UIElement + func ApplyPadding(element UIElement) UIElement + func ApplyRelative(element UIElement) UIElement v0.1.0 Jun 15, 2023