MCPcopy Create free account

hub / github.com/andlabs/ui / types & classes

Types & classes74 in github.com/andlabs/ui

↓ 4 callersTypeAliasOpenTypeTag
OpenTypeTag represents a four-byte OpenType feature tag.
drawtext.go:253
↓ 3 callersTypeAliasModifiers
TODO document Note: these must be numerically identical to their libui equivalents.
areahandler.go:249
↓ 2 callersTypeAliasTextFamily
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 callersTypeAliasTextItalic
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 callersTypeAliasTextSize
TextSize is an Attribute that changes the size of the text it is applied to, in typographical points.
drawtext.go:43
↓ 2 callersTypeAliasTextStretch
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 callersTypeAliasTextWeight
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 callersTypeAliasExtKey
TODO document Note: these must be numerically identical to their libui equivalents.
areahandler.go:260
↓ 1 callersTypeAliasTableInt
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 callersTypeAliasTableString
TableString is a TableValue that stores a string. TableString is used for displaying text in a Table.
tablemodel.go:16
↓ 1 callersTypeAliasUnderline
Underline is an Attribute that specifies a type of underline to use on text.
drawtext.go:156
↓ 1 callersTypeAliasUnderlineColor
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
TypeAliasAlign
Align represents the alignment of a Control in its cell of a Grid.
grid.go:35
StructArea
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
StructAreaDrawParams
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
InterfaceAreaHandler
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
StructAreaKeyEvent
TODO document all these
areahandler.go:224
StructAreaMouseEvent
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
TypeAliasAt
At represents a side of a Control to add other Controls to a Grid to.
grid.go:44
InterfaceAttribute
Attribute stores information about an attribute in an AttributedString. The following types can be used as Attributes: - TextFamily - TextSize -
drawtext.go:27
StructAttributedString
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
StructBox
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
StructButton
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
StructCheckbox
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
StructColorButton
ColorButton is a Control that represents a button that the user can click to select a color.
colorbutton.go:14
StructCombobox
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
InterfaceControl
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
StructControlBase
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
StructDateTimePicker
DateTimePicker is a Control that represents a field where the user can enter a date and/or a time.
datetimepicker.go:15
StructDrawBrush
TODO
draw.go:196
TypeAliasDrawBrushType
DrawBrushType defines the various types of brushes. TODO disclaimer
draw.go:163
StructDrawContext
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
TypeAliasDrawFillMode
TODO TODO disclaimer
draw.go:46
StructDrawGradientStop
TODO
draw.go:217
TypeAliasDrawLineCap
TODO TODO disclaimer TODO rename these to put LineCap at the beginning? or just Cap?
draw.go:175
TypeAliasDrawLineJoin
TODO TODO disclaimer
draw.go:185
StructDrawMatrix
TODO TODO should the methods of these return self for chaining?
draw.go:318
StructDrawPath
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
StructDrawStrokeParams
TODO
draw.go:266
TypeAliasDrawTextAlign
DrawTextAlign specifies the alignment of lines of text in a DrawTextLayout. TODO should this really have Draw in the name?
drawtext.go:469
StructDrawTextLayout
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
StructDrawTextLayoutParams
DrawTextLayoutParams describes a DrawTextLayout. DefaultFont is used to render any text that is not attributed sufficiently in String. Width determine
drawtext.go:480
StructEditableCombobox
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
StructEntry
Entry is a Control that represents a space that the user can type a single line of text into.
entry.go:18
StructFontButton
FontButton is a Control that represents a button that the user can click to select a font.
fontbutton.go:14
StructFontDescriptor
TODO uiAttributedStringForEachAttribute TODO uiAttributedStringNumGraphemes TODO uiAttributedStringByteIndexToGrapheme TODO uiAttributedStringGrapheme
drawtext.go:420
StructForm
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
StructGrid
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
StructGroup
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
StructImage
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
StructLabel
Label is a Control that represents a line of text that cannot be interacted with.
label.go:14
StructMultilineEntry
MultilineEntry is a Control that represents a space that the user can type multiple lines of text into.
multilineentry.go:18
TypeAliasOpenTypeFeatures
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
StructProgressBar
ProgressBar is a Control that represents a horizontal bar that is filled in progressively over time as a process completes.
progressbar.go:14
StructRadioButtons
RadioButtons is a Control that represents a set of checkable buttons from which exactly one may be chosen by the user.
radiobuttons.go:14
StructSeparator
Separator is a Control that represents a horizontal line that visually separates controls.
separator.go:14
StructSlider
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
StructSpinbox
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
StructTab
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
StructTable
Table is a Control that shows tabular data, allowing users to manipulate rows of such data at a time.
table.go:68
StructTableColor
TableColor is a TableValue that represents a color.
tablemodel.go:51
StructTableImage
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
StructTableModel
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
InterfaceTableModelHandler
TableModelHandler defines the methods that TableModel calls when it needs data.
tablemodel.go:106
StructTableParams
TableParams defines the parameters passed to NewTable.
table.go:44
StructTableTextColumnOptionalParams
TableTextColumnOptionalParams are the optional parameters that control the appearance of the text column of a Table.
table.go:24
InterfaceTableValue
TableValue is a type that represents a piece of data that can come out of a TableModel.
tablemodel.go:10
StructTextBackground
TextBackground is an Attribute that changes the background color of the text it is applied to.
drawtext.go:143
StructTextColor
TextColor is an Attribute that changes the color of the text it is applied to.
drawtext.go:130
StructUnderlineColorCustom
UnderlineColorCustom is an Attribute like UnderlineColor, except it allows specifying a custom color.
drawtext.go:195
StructWindow
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
StructareaHandler
examples/drawtext.go:84
StructareaHandler
examples/histogram.go:92
StructmodelHandler
examples/table.go:22