Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andlabs/ui
/ types & classes
Types & classes
74 in github.com/andlabs/ui
⨍
Functions
315
◇
Types & classes
74
↓ 4 callers
TypeAlias
OpenTypeTag
OpenTypeTag represents a four-byte OpenType feature tag.
drawtext.go:253
↓ 3 callers
TypeAlias
Modifiers
TODO document Note: these must be numerically identical to their libui equivalents.
areahandler.go:249
↓ 2 callers
TypeAlias
TextFamily
TextFamily is an Attribute that changes the font family of the text it is applied to. Font family names are case-insensitive.
drawtext.go:33
↓ 2 callers
TypeAlias
TextItalic
TextItalic is an Attribute that changes the italic mode of the text it is applied to. Italic represents "true" italics where the slanted glyphs have c
drawtext.go:90
↓ 2 callers
TypeAlias
TextSize
TextSize is an Attribute that changes the size of the text it is applied to, in typographical points.
drawtext.go:43
↓ 2 callers
TypeAlias
TextStretch
TextStretch is an Attribute that changes the stretch (also called "width") of the text it is applied to. Note that due to restrictions in early versi
drawtext.go:111
↓ 2 callers
TypeAlias
TextWeight
TextWeight is an Attribute that changes the weight of the text it is applied to. These roughly map to the OS/2 text weight field of TrueType and OpenT
drawtext.go:64
↓ 1 callers
TypeAlias
ExtKey
TODO document Note: these must be numerically identical to their libui equivalents.
areahandler.go:260
↓ 1 callers
TypeAlias
TableInt
TableInt is a TableValue that stores integers. These are used for progressbars. Due to current limitations of libui, they also represent checkbox stat
tablemodel.go:38
↓ 1 callers
TypeAlias
TableString
TableString is a TableValue that stores a string. TableString is used for displaying text in a Table.
tablemodel.go:16
↓ 1 callers
TypeAlias
Underline
Underline is an Attribute that specifies a type of underline to use on text.
drawtext.go:156
↓ 1 callers
TypeAlias
UnderlineColor
UnderlineColor is an Attribute that changes the color of any underline on the text it is applied to, regardless of the type of underline. In addition
drawtext.go:182
TypeAlias
Align
Align represents the alignment of a Control in its cell of a Grid.
grid.go:35
Struct
Area
Area is a Control that represents a blank canvas that a program can draw on as it wishes. Areas also receive keyboard and mouse events, and programs c
area.go:44
Struct
AreaDrawParams
AreaDrawParams provides a drawing context that can be used to draw on an Area and tells you where to draw. See AreaHandler for introductory informatio
areahandler.go:115
Interface
AreaHandler
AreaHandler defines the functionality needed for handling events from an Area. Each of the methods on AreaHandler is called from the GUI thread, and e
areahandler.go:36
Struct
AreaKeyEvent
TODO document all these
areahandler.go:224
Struct
AreaMouseEvent
TODO document all these TODO note that in the case of a drag, X and Y can be out of bounds, or in the event of a scrolling area, in places that are n
areahandler.go:158
TypeAlias
At
At represents a side of a Control to add other Controls to a Grid to.
grid.go:44
Interface
Attribute
Attribute stores information about an attribute in an AttributedString. The following types can be used as Attributes: - TextFamily - TextSize -
drawtext.go:27
Struct
AttributedString
AttributedString represents a string of UTF-8 text that can optionally be embellished with formatting attributes. Package ui provides the list of form
drawtext.go:359
Struct
Box
Box is a Control that holds a group of Controls horizontally or vertically. If horizontally, then all controls have the same height. If vertically, th
box.go:20
Struct
Button
Button is a Control that represents a button that the user can click to perform an action. A Button has a text label that should describe what the but
button.go:15
Struct
Checkbox
Checkbox is a Control that represents a box with a text label at its side. When the user clicks the checkbox, a check mark will appear in the box; cli
checkbox.go:15
Struct
ColorButton
ColorButton is a Control that represents a button that the user can click to select a color.
colorbutton.go:14
Struct
Combobox
Combobox is a Control that represents a drop-down list of strings that the user can choose one of at any time. For a Combobox that users can type valu
combobox.go:15
Interface
Control
Control represents a GUI control. It provdes methods common to all Controls. The preferred way to create new Controls is to use ControlBase; see Cont
control.go:20
Struct
ControlBase
ControlBase is an implementation of Control that provides all the methods that Control requires. To use it, embed a ControlBase (not a *ControlBase) i
control.go:73
Struct
DateTimePicker
DateTimePicker is a Control that represents a field where the user can enter a date and/or a time.
datetimepicker.go:15
Struct
DrawBrush
TODO
draw.go:196
TypeAlias
DrawBrushType
DrawBrushType defines the various types of brushes. TODO disclaimer
draw.go:163
Struct
DrawContext
DrawContext represents a drawing surface that you can draw to. At present the only DrawContexts are surfaces associated with Areas and are provided by
draw.go:156
TypeAlias
DrawFillMode
TODO TODO disclaimer
draw.go:46
Struct
DrawGradientStop
TODO
draw.go:217
TypeAlias
DrawLineCap
TODO TODO disclaimer TODO rename these to put LineCap at the beginning? or just Cap?
draw.go:175
TypeAlias
DrawLineJoin
TODO TODO disclaimer
draw.go:185
Struct
DrawMatrix
TODO TODO should the methods of these return self for chaining?
draw.go:318
Struct
DrawPath
DrawPath represents a geometric path in a drawing context. This is the basic unit of drawing: all drawing operations consist of forming a path, then s
draw.go:39
Struct
DrawStrokeParams
TODO
draw.go:266
TypeAlias
DrawTextAlign
DrawTextAlign specifies the alignment of lines of text in a DrawTextLayout. TODO should this really have Draw in the name?
drawtext.go:469
Struct
DrawTextLayout
DrawTextLayout is a concrete representation of an AttributedString that can be displayed in a DrawContext. It includes information important for the d
drawtext.go:462
Struct
DrawTextLayoutParams
DrawTextLayoutParams describes a DrawTextLayout. DefaultFont is used to render any text that is not attributed sufficiently in String. Width determine
drawtext.go:480
Struct
EditableCombobox
EditableCombobox is a Control that represents a drop-down list of strings that the user can choose one of at any time. It also has an entry field that
editablecombobox.go:15
Struct
Entry
Entry is a Control that represents a space that the user can type a single line of text into.
entry.go:18
Struct
FontButton
FontButton is a Control that represents a button that the user can click to select a font.
fontbutton.go:14
Struct
FontDescriptor
TODO uiAttributedStringForEachAttribute TODO uiAttributedStringNumGraphemes TODO uiAttributedStringByteIndexToGrapheme TODO uiAttributedStringGrapheme
drawtext.go:420
Struct
Form
Form is a Control that holds a group of Controls vertically with labels next to each. By default, each control has its preferred height; if a control
form.go:18
Struct
Grid
Grid is a Control that arranges other Controls in a grid. Grid is a very powerful container: it can position and size each Control in several ways and
grid.go:28
Struct
Group
Group is a Control that holds another Control and wraps it around a labelled box (though some systems make this box invisible). You can use this to gr
group.go:15
Struct
Image
Image stores an image for display on screen. Images are built from one or more representations, each with the same aspect ratio but a different pixel
image.go:31
Struct
Label
Label is a Control that represents a line of text that cannot be interacted with.
label.go:14
Struct
MultilineEntry
MultilineEntry is a Control that represents a space that the user can type multiple lines of text into.
multilineentry.go:18
TypeAlias
OpenTypeFeatures
OpenTypeFeatures is an Attribute that represents a set of OpenType feature tag-value pairs, for applying OpenType features to text. OpenType feature t
drawtext.go:237
Struct
ProgressBar
ProgressBar is a Control that represents a horizontal bar that is filled in progressively over time as a process completes.
progressbar.go:14
Struct
RadioButtons
RadioButtons is a Control that represents a set of checkable buttons from which exactly one may be chosen by the user.
radiobuttons.go:14
Struct
Separator
Separator is a Control that represents a horizontal line that visually separates controls.
separator.go:14
Struct
Slider
Slider is a Control that represents a horizontal bar that represents a range of integers. The user can drag a pointer on the bar to select an integer.
slider.go:15
Struct
Spinbox
Spinbox is a Control that represents a space where the user can enter integers. The space also comes with buttons to add or subtract 1 from the intege
spinbox.go:15
Struct
Tab
Tab is a Control that holds tabbed pages of Controls. Each tab has a label. The user can click on the tabs themselves to switch pages. Individual page
tab.go:15
Struct
Table
Table is a Control that shows tabular data, allowing users to manipulate rows of such data at a time.
table.go:68
Struct
TableColor
TableColor is a TableValue that represents a color.
tablemodel.go:51
Struct
TableImage
TableImage is a TableValue that represents an Image. Ownership of the Image is not copied; you must keep it alive alongside the TableImage.
tablemodel.go:27
Struct
TableModel
TableModel is an object that provides the data for a Table. This data is returned via methods you provide in the TableModelHandler interface. TableMo
tablemodel.go:100
Interface
TableModelHandler
TableModelHandler defines the methods that TableModel calls when it needs data.
tablemodel.go:106
Struct
TableParams
TableParams defines the parameters passed to NewTable.
table.go:44
Struct
TableTextColumnOptionalParams
TableTextColumnOptionalParams are the optional parameters that control the appearance of the text column of a Table.
table.go:24
Interface
TableValue
TableValue is a type that represents a piece of data that can come out of a TableModel.
tablemodel.go:10
Struct
TextBackground
TextBackground is an Attribute that changes the background color of the text it is applied to.
drawtext.go:143
Struct
TextColor
TextColor is an Attribute that changes the color of the text it is applied to.
drawtext.go:130
Struct
UnderlineColorCustom
UnderlineColorCustom is an Attribute like UnderlineColor, except it allows specifying a custom color.
drawtext.go:195
Struct
Window
Window is a Control that represents a top-level window. A Window contains one child Control that occupies the entirety of the window. Though a Window
window.go:16
Struct
areaHandler
examples/drawtext.go:84
Struct
areaHandler
examples/histogram.go:92
Struct
modelHandler
examples/table.go:22