A standard collection of re-usable objects.
Go to file
2024-08-25 01:59:30 -04:00
internal
layouts
.editorconfig
button.go Update other objects to use new methods of Label 2024-08-24 19:56:58 -04:00
calendar.go Update other objects to use new methods of Label 2024-08-24 19:56:58 -04:00
checkbox.go Checkbox no longer embeds tomo.ContainerBox 2024-08-24 15:41:47 -04:00
colorpicker.go HSVAColorPicker no longer embeds tomo.ContainerBox 2024-08-24 19:28:48 -04:00
container.go Update doc comment for Container 2024-08-24 20:13:38 -04:00
dialog.go Update other objects to use new methods of Label 2024-08-24 19:56:58 -04:00
dropdown.go Dropdown no longer embeds tomo.ContainerBox 2024-08-24 19:33:16 -04:00
go.mod Update Tomo API 2024-08-16 18:01:01 -04:00
go.sum Update Tomo API 2024-08-16 18:01:01 -04:00
heading.go Remove Heading.SetSelectable 2024-08-24 19:49:20 -04:00
icon.go Icon no longer embeds tomo.Box 2024-08-24 19:50:20 -04:00
input.go Functions to check for common buttons/keys 2024-08-16 16:15:52 -04:00
label.go Fix doc comments on Label, TextInput 2024-08-25 01:38:42 -04:00
labelcheckbox.go LabelSwatch, LabelCheckbox changing their labels 2024-08-24 20:03:48 -04:00
labelswatch.go LabelSwatch, LabelCheckbox changing their labels 2024-08-24 20:03:48 -04:00
LICENSE
menu.go Same as last commit but for TearLine 2024-08-24 14:42:08 -04:00
menuitem.go MenuItem no longer embeds tomo.ContainerBox 2024-08-24 20:10:37 -04:00
mimeicon.go MimeIcon no longer embeds tomo.Box 2024-08-24 20:10:49 -04:00
numberinput.go Update NumberInput to use new TextInput methods 2024-08-25 01:32:44 -04:00
README.md README.md tweaks 2024-08-25 01:59:30 -04:00
scrollbar.go Scrollbar no longer embeds tomo.ContainerBox 2024-08-24 21:35:43 -04:00
scrollcontainer.go ScrollContainer no longer embeds ContainerBox 2024-08-24 21:41:16 -04:00
separator.go Ensure Separator fulfils tomo.Object 2024-08-24 22:03:35 -04:00
slider.go Slider no longer embeds tomo.ContainerBox 2024-08-24 22:09:31 -04:00
swatch.go Swatch no longer embeds tomo.CanvasBox 2024-08-24 22:12:43 -04:00
tabbedcontainer.go TabbedContainer no longer embeds tomo.ContainerBox 2024-08-24 22:26:00 -04:00
textinput.go Fix doc comments on Label, TextInput 2024-08-25 01:38:42 -04:00
textview.go TextView no longer embeds tomo.TextBox 2024-08-25 01:40:40 -04:00

objects

Go Reference

Objects contains a standard collection of re-usable objects. It should be viewed also as a reference for how to create custom objects in Tomo.

Styling

All objects in this module have roles of the form:

objects.TypeName

Where TypeName is the exact Go type name of the object in question. Objects may also have different tags to indicate variations, states, etc. If applicable, they are listed and described in the doc comment for the object's type. More complex objects may have sub-components that are not accessible from the API. These are listed alongside the tags.

Setting Attributes

It is generally not recommended to set attributes on these objects. However, if you must, they can be set by obtaining the object's underlying box through the GetBox method. Be aware that the exact type of box that is returned here is not part of the API, and may change unexpectedly even after v1.0. This caveat also applies to boxes/sub-components making up the internal composition of the objects.