A standard collection of re-usable objects.
Go to file
2024-09-06 00:13:15 -04:00
internal Improvements to internal/history 2024-09-06 00:12:05 -04:00
layouts Fix flow layout 2024-07-27 14:41:46 -04:00
.editorconfig Add .editorconfig 2024-07-27 02:10:00 -04:00
button.go Document all tags and named sub-components 2024-08-25 02:36:05 -04:00
calendar.go Document all tags and named sub-components 2024-08-25 02:36:05 -04:00
checkbox.go Document all tags and named sub-components 2024-08-25 02:36:05 -04:00
colorpicker.go Move color functionality into subpackage of internal 2024-09-05 22:46:58 -04:00
container.go Document all tags and named sub-components 2024-08-25 02:36:05 -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
file.go File. Why not. 2024-08-27 13:38:35 -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 Document all tags and named sub-components 2024-08-25 02:36:05 -04:00
icon.go Document all tags and named sub-components 2024-08-25 02:36:05 -04:00
input.go Functions to check for common buttons/keys 2024-08-16 16:15:52 -04:00
label.go Add SetOverflow to Label 2024-08-29 17:06:38 -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 I forgor the license 2023-08-13 21:56:16 -04:00
menu.go Document all tags and named sub-components 2024-08-25 02:36:05 -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 Document all tags and named sub-components 2024-08-25 02:36:05 -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 Document all tags and named sub-components 2024-08-25 02:36:05 -04:00
swatch.go Move color functionality into subpackage of internal 2024-09-05 22:46:58 -04:00
tabbedcontainer.go Fix tag on right TabSpacer 2024-08-25 02:37:39 -04:00
textinput.go Remove debug line 2024-09-06 00:13:15 -04:00
textview.go You get an OnDotChange! Everypony gets an OnDotChange! 2024-08-25 18:55:43 -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.