Versions in this module Expand all Collapse all v1 v1.2.1 Jun 14, 2023 Changes in this version + const DrawModeAdd + const DrawModeModulate + const DrawModeNoBlending + const DrawModeNormal + const ModifierAlt + const ModifierCtrl + const ModifierShift + const SizeUnlimited + var ExitFlag bool = false + var TargetFrameTime float64 = 0.05 + func AddCU(a int32, b int32) int32 + func EasingInOut(easeIn func(float64) float64) func(float64) float64 + func EasingQuadraticIn(point float64) float64 + func InferScale(dpiSource Window) float64 + func Max(a int32, b int32) int32 + func Min(a int32, b int32) int32 + func ModifyScaleBinInt(scale float64) float64 + func Scale(scale float64, target int32) int32 + type Alignment1i int8 + const AlignEnd + const AlignMiddle + const AlignStart + type Alignment2i struct + X Alignment1i + Y Alignment1i + type Area1i struct + Pos int32 + Size int32 + func Area1iMargin(l int32, r int32) Area1i + func Area1iOfSize(a int32) Area1i + func ScaleMargin1(scale float64, target Area1i) Area1i + func UnionArea1i(areas []Area1i) Area1i + func (a Area1i) Align(content int32, x Alignment1i) Area1i + func (a Area1i) Contains(i int32) bool + func (a Area1i) Contract(n Area1i) Area1i + func (a Area1i) Empty() bool + func (a Area1i) Expand(n Area1i) Area1i + func (a Area1i) Intersect(b Area1i) Area1i + func (a Area1i) Normalized() Area1i + func (a Area1i) Translate(i int32) Area1i + func (a Area1i) Union(b Area1i) Area1i + type Area1iGrid3 struct + A Area1i + B Area1i + C Area1i + func SplitArea1iGrid3(outer Area1i, inner Area1i) Area1iGrid3 + func (a Area1iGrid3) AsMargin() Area1i + type Area2i struct + X Area1i + Y Area1i + func Area2iFromVecs(pos Vec2i, size Vec2i) Area2i + func Area2iMargin(l int32, u int32, r int32, d int32) Area2i + func Area2iOfSize(a Vec2i) Area2i + func ScaleMargin2(scale float64, target Area2i) Area2i + func UnionArea2i(areas []Area2i) Area2i + func (a Area2i) Align(content Vec2i, align Alignment2i) Area2i + func (a Area2i) Contains(v Vec2i) bool + func (a Area2i) Contract(b Area2i) Area2i + func (a Area2i) Empty() bool + func (a Area2i) Expand(b Area2i) Area2i + func (a Area2i) Intersect(b Area2i) Area2i + func (a Area2i) Normalized() Area2i + func (a Area2i) Pos() Vec2i + func (a Area2i) Size() Vec2i + func (a Area2i) Translate(v Vec2i) Area2i + func (a Area2i) Union(b Area2i) Area2i + type Area2iGrid3x3 struct + A Area2i + B Area2i + C Area2i + D Area2i + E Area2i + F Area2i + G Area2i + H Area2i + I Area2i + func SplitArea2iGrid3x3(outer Area2i, inner Area2i) Area2iGrid3x3 + func (a Area2iGrid3x3) AsMargin() Area2i + type Backend interface + CreateTexture func(size Vec2i, pixels []uint32) Texture + CreateWindow func(name string, size Vec2i, vsync bool, receiver WindowReceiver) (Window, error) + Run func(ticker func(frameTime float64)) error + var GlobalBackend Backend + type DrawMode uint8 + type DrawRectCommand struct + Colour uint32 + Mode DrawMode + Target Area2i + Tex Texture + TexSprite Area2i + type KeyEvent struct + Keycode int32 + Modifiers uint16 + Pressed bool + Scancode int32 + func (ke KeyEvent) FyVOffset(amount Vec2i) NormalEvent + func (ke KeyEvent) FyVRoute() NormalEventRoute + type MouseButton int8 + const MouseButtonLeft + const MouseButtonLength + const MouseButtonMiddle + const MouseButtonNone + const MouseButtonRight + const MouseButtonScrollDown + const MouseButtonScrollLeft + const MouseButtonScrollRight + const MouseButtonScrollUp + const MouseButtonX1 + const MouseButtonX2 + type MouseEvent struct + Button MouseButton + ID MouseEventID + Pos Vec2i + func (ev MouseEvent) Offset(offset Vec2i) MouseEvent + type MouseEventID uint8 + const MouseEventDown + const MouseEventMove + const MouseEventUp + type NormalEvent interface + FyVOffset func(amount Vec2i) NormalEvent + FyVRoute func() NormalEventRoute + type NormalEventRoute uint8 + const NormalEventRouteBroadcast + const NormalEventRouteFocus + const NormalEventRouteStop + const NormalEventRouteStructuralBroadcast + type Renderer interface + Clip func() Area2i + DrawRect func(DrawRectCommand) + RenderToTexture func(size Vec2i, drawer func(), reserved bool) Texture + Reset func(colour uint32) + SetClip func(clip Area2i) + Size func() Vec2i + Translate func(vec Vec2i) + Translation func() Vec2i + type TextInput interface + FyTArea func() Area2i + FyTClose func() + FyTEditing func(text string, start int, length int) + FyTInput func(text string) + FyTOpen func() + type Texture interface + Size func() Vec2i + type Vec2i struct + X int32 + Y int32 + func ScaleVec2i(scale float64, target Vec2i) Vec2i + func Vec2iUnlimited() Vec2i + func (a Vec2i) Add(b Vec2i) Vec2i + func (a Vec2i) ConditionalTranspose(yes bool) Vec2i + func (a Vec2i) Eq(b Vec2i) bool + func (a Vec2i) Ge(b Vec2i) bool + func (a Vec2i) Gt(b Vec2i) bool + func (a Vec2i) Max(b Vec2i) Vec2i + func (a Vec2i) Min(b Vec2i) Vec2i + func (a Vec2i) Negate() Vec2i + type Window interface + Destroy func() + GetLocalDPI func() float64 + Name func() string + Present func() + SetName func(name string) + SetSize func(size Vec2i) + SetTextInput func(input TextInput) + TextInput func() TextInput + type WindowReceiver interface + FyRClose func() + FyRMouseEvent func(m MouseEvent) + FyRNormalEvent func(n NormalEvent) + FyRStart func(w Window) + FyRTick func(time float64)