package
0.0.0-20230824235355-25dfc2efe2d4
Repository: https://github.com/fivemoreminix/qedit.git
Documentation: pkg.go.dev
# Functions
Clamp keeps `v` within `a` and `b` numerically.
DrawQuickCharStr renders a string very similar to how DrawStr works, but stylizes the quick char (the rune at `quickCharIdx`) with an underline.
DrawRect renders a filled box at `x` and `y`, of size `width` and `height`.
DrawRectOutline draws only the outline of a rectangle, using `ul`, `ur`, `bl`, and `br` for the corner runes, and `hor` and `vert` for the horizontal and vertical runes, respectively.
DrawRectOutlineDefault calls DrawRectOutline with the default edge runes.
DrawStr will render each character of a string at `x` and `y`.
DrawWindow draws a window-like object at x and y as the top-left corner.
Max returns the larger integer.
Min returns the smaller integer.
No description provided by the author
No description provided by the author
No description provided by the author
New creates a new Menu.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
New will initialize the buffer using the given 'contents'.
QuickCharInString is used for finding the "quick char" in a string.
# Constants
AlignJustify causes text to be left-aligned, but also spaced so that it fits the entire box where it is being rendered.
AlignLeft is the normal text alignment where text is aligned to the left of its bounding box.
AlignRight causes text to be aligned to the right of its bounding box.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Single item.
Items are left or right of eachother.
Items are above or below eachother.
No description provided by the author
No description provided by the author
# Variables
DefaultTheme uses only the first 16 colors present in most colored terminals.
# Structs
No description provided by the author
A FileSelectorDialog is a WindowContainer with an input and buttons for selecting files.
An InputField is a single-line input box.
ItemEntry is a listing in a Menu with a name and callback.
An ItemSeparator is like a blank Item that cannot actually be selected.
A Label is a component for rendering text.
A Menu contains one or more ItemEntry or ItemMenus.
A MenuBar is a horizontal list of menus.
No description provided by the author
A Panel represents a container for a split view between two items.
No description provided by the author
A Tab is a child of a TabContainer; has a name and child Component.
A TabContainer organizes children by showing only one of them at a time.
TextEdit is a field for line-based editing.
# Type aliases
Align defines the text alignment of a label.
No description provided by the author
A PanelKind describes how to interpret the fields of a Panel.
No description provided by the author
A Theme is a map of string names to styles.