Versions in this module Expand all Collapse all v1 v1.2.1 Jun 14, 2023 Changes in this version + func CreateBoundWindow(title string, vsync bool, clearColour uint32, e UIElement) (frenyard.Window, error) + func InitUILayoutElementComponent(self UILayoutElement) + func InitUILayoutProxy(proxy UIProxyHost, target UILayoutElement) + func InitUIProxy(proxy UIProxyHost, target UIElement) + type ButtonBehavior func() + type EnterWindowEvent struct + Window frenyard.Window + func (fe EnterWindowEvent) FyVOffset(o frenyard.Vec2i) frenyard.NormalEvent + func (fe EnterWindowEvent) FyVRoute() frenyard.NormalEventRoute + type FlexboxContainer struct + Debug bool + DirVertical bool + Slots []FlexboxSlot + WrapMode FlexboxWrapMode + type FlexboxSlot struct + Basis int32 + Element UILayoutElement + Grow int32 + MinBasis int32 + Order int + RespectMinimumSize bool + Shrink int32 + type FlexboxWrapMode uint8 + const FlexboxWrapModeNone + const FlexboxWrapModeWrap + type FocusEvent struct + Focused bool + func (fe FocusEvent) FyVOffset(o frenyard.Vec2i) frenyard.NormalEvent + func (fe FocusEvent) FyVRoute() frenyard.NormalEventRoute + type Frame interface + FyFClipping func() bool + FyFDraw func(r frenyard.Renderer, size frenyard.Vec2i, pass FramePass) + FyFPadding func() frenyard.Area2i + FyFTick func(delta float64) + type FramePass uint8 + const FramePassOverAfter + const FramePassOverBefore + const FramePassUnderAfter + const FramePassUnderBefore + type LayoutElementNoSubelementsComponent struct + func (px *LayoutElementNoSubelementsComponent) FyLSubelementChanged() + type NinePatch struct + Bounds frenyard.Area2i + Centre frenyard.Area2i + Sprite frenyard.Area2i + Tex frenyard.Texture + func (np NinePatch) Draw(r frenyard.Renderer, where frenyard.Area2i, scale float64, ...) + func (np NinePatch) Inset(margin frenyard.Area2i) NinePatch + type NinePatchFrame struct + Clipping bool + Layers []NinePatchFrameLayer + Padding frenyard.Area2i + func (npcf NinePatchFrame) FyFClipping() bool + func (npcf NinePatchFrame) FyFDraw(r frenyard.Renderer, size frenyard.Vec2i, pass FramePass) + func (npcf NinePatchFrame) FyFPadding() frenyard.Area2i + func (npcf NinePatchFrame) FyFTick(delta float64) + type NinePatchFrameLayer struct + ColourMod uint32 + Mode frenyard.DrawMode + Pass FramePass + Scale float64 + type PanelFixedElement struct + Element UIElement + Locked bool + Pos frenyard.Vec2i + Visible bool + type ScrollbarTheme struct + Base Frame + Movement Frame + type ScrollbarValue interface + FySSetValue func(v float64) + FySValue func() float64 + type SlideTransition struct + Element UILayoutElement + Length float64 + Reverse bool + Vertical bool + type UIButton struct + Down bool + Focused bool + Hover bool + LastMousePos frenyard.Vec2i + func NewUIButtonPtr(theme UILayoutElement, click ButtonBehavior) *UIButton + func (btn *UIButton) FyEMouseEvent(me frenyard.MouseEvent) + func (btn *UIButton) FyENormalEvent(me frenyard.NormalEvent) + type UIElement interface + FyEDraw func(target frenyard.Renderer, under bool) + FyEFindElement func(target UIElement) frenyard.Area2i + FyEMouseEvent func(ev frenyard.MouseEvent) + FyENormalEvent func(ev frenyard.NormalEvent) + FyEResize func(size frenyard.Vec2i) + FyESize func() frenyard.Vec2i + FyETick func(deltaTime float64) + type UIElementComponent struct + func NewUIElementComponent(size frenyard.Vec2i) UIElementComponent + func (es *UIElementComponent) FyEFindElement(target UIElement) frenyard.Area2i + func (es *UIElementComponent) FyEResize(size frenyard.Vec2i) + func (es *UIElementComponent) FyESize() frenyard.Vec2i + type UIEventDebugger struct + func NewUIEventDebuggerPtr(size frenyard.Vec2i) *UIEventDebugger + func (cr *UIEventDebugger) FyEDraw(target frenyard.Renderer, under bool) + func (cr *UIEventDebugger) FyEMouseEvent(ev frenyard.MouseEvent) + func (cr *UIEventDebugger) FyENormalEvent(ev frenyard.NormalEvent) + func (cr *UIEventDebugger) FyETick(deltaTime float64) + type UIFlexboxContainer struct + func NewUIFlexboxContainerPtr(setup FlexboxContainer) *UIFlexboxContainer + func (ufc *UIFlexboxContainer) FyEResize(size frenyard.Vec2i) + func (ufc *UIFlexboxContainer) FyLSizeForLimits(limits frenyard.Vec2i) frenyard.Vec2i + func (ufc *UIFlexboxContainer) FyLSubelementChanged() + func (ufc *UIFlexboxContainer) SetContent(setup FlexboxContainer) + type UILabel struct + func NewUILabelPtr(text integration.TypeChunk, colour uint32, back uint32, ...) *UILabel + func (cr *UILabel) Alignment() frenyard.Alignment2i + func (cr *UILabel) Background() uint32 + func (cr *UILabel) Colour() uint32 + func (cr *UILabel) FyEDraw(target frenyard.Renderer, under bool) + func (cr *UILabel) FyEMouseEvent(ev frenyard.MouseEvent) + func (cr *UILabel) FyENormalEvent(ev frenyard.NormalEvent) + func (cr *UILabel) FyEResize(s frenyard.Vec2i) + func (cr *UILabel) FyETick(deltaTime float64) + func (cr *UILabel) FyLSizeForLimits(limits frenyard.Vec2i) frenyard.Vec2i + func (cr *UILabel) SetAlignment(align frenyard.Alignment2i) + func (cr *UILabel) SetBackground(colour uint32) + func (cr *UILabel) SetColour(colour uint32) + func (cr *UILabel) SetText(text integration.TypeChunk) + func (cr *UILabel) Text() integration.TypeChunk + type UILayoutElement interface + FyLSizeForLimits func(limits frenyard.Vec2i) frenyard.Vec2i + FyLSubelementChanged func() + func ConvertElementToLayout(subelement UIElement) UILayoutElement + func NewDebugWrapPtr(inner UILayoutElement) UILayoutElement + func NewUIMarginContainerPtr(innards UILayoutElement, margin frenyard.Area2i) UILayoutElement + func NewUIScrollboxPtr(theme ScrollbarTheme, content UILayoutElement, vertical bool) UILayoutElement + type UILayoutElementComponent struct + ThisUILayoutElementComponentDetails UILayoutElementComponentDetails + type UILayoutElementComponentDetails struct + func (details *UILayoutElementComponentDetails) Attach(subelement UILayoutElement) UILayoutElement + func (details *UILayoutElementComponentDetails) ContentChanged() + func (details *UILayoutElementComponentDetails) Detach(subelement UILayoutElement) + type UILayoutProxy struct + func (px *UILayoutProxy) FyLSizeForLimits(limits frenyard.Vec2i) frenyard.Vec2i + type UIOverlayContainer struct + func NewUIOverlayContainerPtr(npp Frame, setup []UILayoutElement) *UIOverlayContainer + func (ufc *UIOverlayContainer) FyEDraw(r frenyard.Renderer, under bool) + func (ufc *UIOverlayContainer) FyEResize(size frenyard.Vec2i) + func (ufc *UIOverlayContainer) FyETick(delta float64) + func (ufc *UIOverlayContainer) FyLSizeForLimits(limits frenyard.Vec2i) frenyard.Vec2i + func (ufc *UIOverlayContainer) FyLSubelementChanged() + func (ufc *UIOverlayContainer) SetContent(npp Frame, setup []UILayoutElement) + type UIPanel struct + ThisUIPanelDetails UIPanelDetails + func NewPanel(size frenyard.Vec2i) UIPanel + func (pan *UIPanel) FyEDraw(target frenyard.Renderer, under bool) + func (pan *UIPanel) FyEFindElement(target UIElement) frenyard.Area2i + func (pan *UIPanel) FyEMouseEvent(ev frenyard.MouseEvent) + func (pan *UIPanel) FyENormalEvent(ev frenyard.NormalEvent) + func (pan *UIPanel) FyETick(f float64) + type UIPanelDetails struct + Clipping bool + func (pan *UIPanelDetails) SetContent(content []PanelFixedElement) + type UIProxy struct + func (px *UIProxy) FyEDraw(target frenyard.Renderer, under bool) + func (px *UIProxy) FyEFindElement(target UIElement) frenyard.Area2i + func (px *UIProxy) FyEMouseEvent(ev frenyard.MouseEvent) + func (px *UIProxy) FyENormalEvent(ev frenyard.NormalEvent) + func (px *UIProxy) FyEResize(v frenyard.Vec2i) + func (px *UIProxy) FyESize() frenyard.Vec2i + func (px *UIProxy) FyETick(f float64) + type UIProxyHost interface + type UIRect struct + Alignment frenyard.Alignment2i + Colour uint32 + Sprite frenyard.Area2i + Tex frenyard.Texture + func NewColouredRectPtr(colour uint32, size frenyard.Vec2i) *UIRect + func NewTextureRectPtr(colour uint32, tex frenyard.Texture, sprite frenyard.Area2i, ...) *UIRect + func (cr *UIRect) FyEDraw(target frenyard.Renderer, under bool) + func (cr *UIRect) FyEMouseEvent(ev frenyard.MouseEvent) + func (cr *UIRect) FyENormalEvent(ev frenyard.NormalEvent) + func (cr *UIRect) FyETick(deltaTime float64) + type UIScrollbar struct + MouseNotch float64 + Value ScrollbarValue + func NewUIScrollbarPtr(theme ScrollbarTheme, vertical bool, value ScrollbarValue) *UIScrollbar + func (uis *UIScrollbar) FyEDraw(r frenyard.Renderer, under bool) + func (uis *UIScrollbar) FyEMouseEvent(me frenyard.MouseEvent) + func (uis *UIScrollbar) FyENormalEvent(me frenyard.NormalEvent) + func (uis *UIScrollbar) FyETick(time float64) + func (uis *UIScrollbar) FyLSizeForLimits(limits frenyard.Vec2i) frenyard.Vec2i + type UIScrollbox struct + func (usc *UIScrollbox) FyEMouseEvent(me frenyard.MouseEvent) + func (usc *UIScrollbox) FyEResize(size frenyard.Vec2i) + func (usc *UIScrollbox) FyLSizeForLimits(limits frenyard.Vec2i) frenyard.Vec2i + func (usc *UIScrollbox) FyLSubelementChanged() + func (usc *UIScrollbox) FySSetValue(v float64) + func (usc *UIScrollbox) FySValue() float64 + type UISlideTransitionContainer struct + func NewUISlideTransitionContainerPtr(initContent UILayoutElement) *UISlideTransitionContainer + func (ufc *UISlideTransitionContainer) FyEResize(size frenyard.Vec2i) + func (ufc *UISlideTransitionContainer) FyETick(time float64) + func (ufc *UISlideTransitionContainer) FyLSizeForLimits(limits frenyard.Vec2i) frenyard.Vec2i + func (ufc *UISlideTransitionContainer) FyLSubelementChanged() + func (ufc *UISlideTransitionContainer) TransitionTo(next SlideTransition) + type UITextbox struct + OnConfirm func() + OnRebuild func() + OnStall func() + func NewUITextboxPtr(text string, hint string, face font.Face, primaryColour uint32, ...) *UITextbox + func (tb *UITextbox) FyEDraw(target frenyard.Renderer, under bool) + func (tb *UITextbox) FyENormalEvent(ne frenyard.NormalEvent) + func (tb *UITextbox) FyETick(delta float64) + func (tb *UITextbox) FyTArea() frenyard.Area2i + func (tb *UITextbox) FyTClose() + func (tb *UITextbox) FyTEditing(text string, start int, length int) + func (tb *UITextbox) FyTInput(text string) + func (tb *UITextbox) FyTOpen() + func (tb *UITextbox) SetText(text string) + func (tb *UITextbox) Text() string