A standard collection of re-usable objects.
Go to file
2024-09-12 15:13:38 -04:00
assets Fix preview image alignment 2024-09-10 18:54:42 -04:00
internal Fix history overflowing 2024-09-12 02:56:56 -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
abstractcontainer.go Overhaul collection of containers 2024-09-12 14:07:54 -04:00
button.go Document all tags and named sub-components 2024-08-25 02:36:05 -04:00
calendar.go Update object code to use new containers 2024-09-12 14:54:26 -04:00
checkbox.go Document all tags and named sub-components 2024-08-25 02:36:05 -04:00
colorpicker.go Fix spelling mistake in HSVAColorPicker documentation 2024-09-12 14:59:57 -04:00
container.go Overhaul collection of containers 2024-09-12 14:07:54 -04:00
dialog.go Update object code to use new containers 2024-09-12 14:54:26 -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 goutil 2024-09-12 03:20:09 -04:00
go.sum Update goutil 2024-09-12 03:20:09 -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 torn tag 2024-09-12 15:04:38 -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
notebook.go Make a distinction between notebook tabs and pages 2024-09-12 15:13:38 -04:00
numberinput.go Update NumberInput to use new TextInput methods 2024-08-25 01:32:44 -04:00
pegboard.go Overhaul collection of containers 2024-09-12 14:07:54 -04:00
README.md Fix grammar in README 2024-09-10 18:51:55 -04:00
root.go Fix role of Root 2024-09-12 14:54:14 -04:00
scrollbar.go Fix object code 2024-09-12 02:34:28 -04:00
scrollcontainer.go Fix object code 2024-09-12 02:34:28 -04:00
segment.go Remove TODO in segment.go 2024-09-12 14:55:44 -04:00
separator.go Ensure Separator fulfils tomo.Object 2024-08-24 22:03:35 -04:00
slider.go Fix object code 2024-09-12 02:34:28 -04:00
swatch.go Update object code to use new containers 2024-09-12 14:54:26 -04:00
textinput.go Fix object code 2024-09-12 02:34:28 -04:00
textview.go TextView tests its own compliance to tomo.Object 2024-09-12 15:06:20 -04:00

objects

Some of the objects in this package

Go Reference

Objects contains a standard collection of re-usable objects. It should also be viewed 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.