Categorygithub.com/eliquious/ui
modulepackage
1.3.0
Repository: https://github.com/eliquious/ui.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

BoxCorners draws corners on a box.
Circle draws a circle.
ComponentFunc creates a simple component from render and update functions.
Container creates a container component.
DynamicAntiAliasedLine creates a new anti-aliased line that is designed for dynamic rendering.
DynamicCircle creates a cicle componet which can change radius and position.
DynamicImage creates a new DynamicImage component.
DynamicText craetes a dynamic text component.
EnableHighDPI enables high DPI display.
FPSDisplay renders the FPS and mouse position in the top left corner in Arial font.
Image draws a static image at the same location.
ImageCursor renders an image at the mouse position.
IsHighDPIEnabled returned if display has high DPI enabled.
Line draws a line.
LineVertices returns the vertices for a line.
MomentaryButton creates an interactive component which responds to mouse events.
MouseHandlerFunc creates a MouseButtonHandler from a function.
MouseMoveHandlerFunc creates a MouseMoveHandler from a function.
New creates a new screen.
NewDisplayContext creates a new display context.
NewFontFace creates a new font face from a system font.
NewFontRegistry creates a new font face.
NewMouseEventRegistry creates a new mouse event registry with the given origin.
NewSlantImage draws a slant onto an image.
NewUpdateContext creates a new UpdateContext with the provided context.Context.
Rect creates a new image.Rectangle using X,Y,W,H coordinates.
Rectangle draws a rectangle.
RectVertices returns the vertices for a rectangle.
RGBA converts a color.Color to color.RGBA.
SimpleComponent creates a simple component from a render function.
SolidBackground fills the background of the parent.
StackedComponent creates a component which updates and renders all the child components.
StaticAntiAliasedLine creates a new anti-aliased line that is meant for static rendering.
StripedRect draws a rectangle with striped.
StrokeBorder creates a border with the same stroke on all sides.
Text creates a new component for rentering text.
ToggleButton creates an interactive component which responds to mouse events and toggles state.
TriangleCursor renders a triangle at the mouse position.
TriLine draws a line using triangles.
UniformQuad returns a Quad where each side is the same.
UpdateHandlerFunc creates an update handler.
VertexLine creates a line component.

# Constants

These are the two available button states.
These are the two available button states.
MouseMoveEvent occurs when the mouse moves.
MousePressEvent occurs when a mouse button is pressed.
MouseReleaseEvent occurs when a mouse button is released.

# Variables

DefaultFontRegistry stores all the loaded fonts.
DefaultMouseEventRegistry is the root mouse event registry.

# Structs

AntiAliasedLine is an antialiased line.
Border represents a border for a rectangle.
CircleOptions is the options for the circle.
ContainerOptions stores the options for a container.
Display represents a display screen.
DisplayContext manages drawing the component in the parent component.
DisplaySettings stores the display settings.
DynamicCircleComponent is a circle component which can change position and radius.
DynamicImageComponent is an image component in which the image can be updated.
DynamicTextComponent is a text component that is optimized for dynamic text.
FontRegistry is a registry of all the loaded fonts.
ImageOptions is the options for the image component.
MouseEvent stores the mouse butten and event type.
MouseEventRegistry stores all the mouse button handlers.
Quad stores the padding around the element.
RectangleOptions stores the rectangle options.
StripedRectOptions is the stripe rect options.
Stroke represents a line stroke.
TextOptions contains the options for a text component.
UpdateContext provides a simple context and a way to pass information to child components during update.
VertexLineComponent draws a line.

# Interfaces

Button combines the component and mouse handlers in one interface.
Component is a display component for the screen.
MouseButtonHandler is dispatched whenever mouse button events occur.
MouseMoveHandler is dispatched whenever mouse moves.
UpdateHandler is an interface for non-display components.

# Type aliases

ButtonState represents a button's internal state.
MouseEventType enumerates the type of mouse event.
RenderFunc is a render function for a simple component.
UpdateFunc is an update function for a simple component.