package
0.22.0
Repository: https://github.com/mokiat/lacking.git
Documentation: pkg.go.dev

# Packages

Package component features a framework, inspired by React, that allows one to construct a user interface hierarchy through the usage of declarative DSL.
Package i18n provides experimental internationalization features.
Package layout provides a default layout scheme that can, but need not, be used with the ui framework.
Package mvc adds utilities on top of the component package that allow one to model a user interface that uses a type of MVC pattern.
No description provided by the author
Package state contains utilities for managing state transitions.
Package std provides a collection of standard components that can be used with the ui framework.

# Functions

Aqua returns an opaque Aqua color.
Black returns an opaque Black color.
Blue returns an opaque Blue color.
ColorWithAlpha returns a new color that is based on the specified color but with adjusted alpha channel.
Fuchsia returns an opaque Fuchsia color.
Gray returns an opaque Gray color.
Green returns an opaque Green color.
KeyModifiers constructs a KeyModifierSet by combining the specified modifier entries.
Lime returns an opaque Lime color.
Maroon returns an opaque Maroon color.
MixColors returns a mixture of the two colors where alpha determines the amount of the second color.
Navy returns an opaque Navy color.
NewBounds creates a new Bounds object.
NewController creates a new app.Controller that integrates with the ui package to render a user interface.
NewFillLayout returns a new FillLayout instance.
NewPosition creates a new Position with the specified coordinates.
NewSize returns a new Size with the specified dimensions.
Olive returns an opaque Olive color.
Purple returns an opaque Purple color.
Red returns an opaque Red color.
RGB creates a new Color off of the specified R (Red), G (Green), B (Blue) components.
RGBA creates a new Color off of the specified R (Red), G (Green), B (Blue), A (Alpha) components.
Silver returns an opaque Silver color.
SymmetricSpacing returns a Spacing that is horizontally and vertically symmetric.
Teal returns an opaque Teal color.
Transparent returns a fully transparent color.
UniformSpacing returns a Spacing that is equal all around.
White returns an opaque White color.
WrapResourceLocator returns a new resource.ReadLocator that is capable of providing ui built-in resources as well as custom user resources.
Yellow returns an opaque Yellow color.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
FillRuleEvenOdd will fill areas that are covered by the shape and it does not overlap or overlaps an odd number of times.
FillRuleNonZero will fill areas that are covered by the shape, regardless if it overlaps.
FillRuleSimple is the fastest approach and should be used with non-overlapping concave shapes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Bounds represents a content area on the screen.
Canvas represents a mechanism through which an Element can render itself to the screen.
Character contains information on a character from a text iteration.
ClipboardEvent indicates an event related to a clipboard action.
Color represents a 32bit color (8 bits per channel).
Context represents the lifecycle and resource allocation of an Element hierarchy.
No description provided by the author
DrawBounds represents a rectangle area to be used for drawing.
Element represents a hierarchical entity on the screen.
Fill configures how a solid shape is to be drawn.
FillLayout resizes the children to fill the content space of the Element.
Font represents a text Font.
FontCollection represents a collection of Fonts.
Image represents a 2D image.
KeyboardEvent is used to propagate events related to keyboard actions.
LineIterator represents an optimal way of evaluating the size of a text once character at a time.
MouseEvent represents an event related to a mouse action.
Position represents a position on the screen that can either be absolute or relative, depending on the context.
ShaderCollection holds the set of shaders to be used for rendering.
Size represents the dimensions of something on the screen.
Spacing represents a spacing around or inside a given screen entity (e.g.
Typography configures how text is to be drawn.
Window represents an application window.

# Interfaces

ElementClipboardHandler is a type of EventHandler that can be used to receive events when an element is focused and clipboard actions are performed.
ElementHistoryHandler is a type of ElementHandler that can be used to receive undo and redo related events.
ElementKeyboardHandler is a type of EventHandler that can be used to receive events when an element is focused and keyboard actions are performed.
ElementMouseHandler is a type of ElementHandler that can be used to receive events when the mouse has interacted with a given Element.
ElementRenderHandler is a type of ElementHandler that can be used to receive events when a given Element is being rendered and to perform a custom rendering for the Element.
ElementResizeHandler is a type of ElementHandler that can be used to receive events when an Element has been resized.
ElementStateHandler is a type of ElementHandler that can be used to receive state related events.
Essence represents the behavior that is attached to an Element.
Layout represents an algorithm through which child Elements are positioned on the screen relative to their parent.
LayoutConfig represents a layout configuration for an Element.
Surface represents an auxiliary drawer.
WindowHandler is an interface that is used by the framework to communicate with Window implementations critical events.

# Type aliases

ClipboardAction indicates the type of clipboard operation.
FilepathPayload is a type of Payload that occurs when files have been dragged and dropped into the window.
FillRule represents the mechanism through which it is determined which point is part of the shape in an overlapping or concave polygon.
InitFunc can be used to initialize the Window with the respective Element hierarchy.
KeyboardEventType is used to specify the type of keyboard action that occurred.
KeyCode represents a keyboard key.
KeyModifier represents a modifier key.
KeyModifierSet is used to indicate which modifier keys were active at the event occurrence.
MouseAction represents the type of mouse event.
MouseButton represents the mouse button.