A standard collection of re-usable objects.
Go to file
2024-09-12 14:54:26 -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
.editorconfig
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 Replace HSV color functionality with that of goutil 2024-09-10 18:24:50 -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
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
label.go Add SetOverflow to Label 2024-08-29 17:06:38 -04:00
labelcheckbox.go
labelswatch.go
LICENSE
menu.go Update object code to use new containers 2024-09-12 14:54:26 -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
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 Overhaul collection of containers 2024-09-12 14:07:54 -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
tabbedcontainer.go Fix tag on right TabSpacer 2024-08-25 02:37:39 -04:00
textinput.go Fix object code 2024-09-12 02:34:28 -04:00
textview.go You get an OnDotChange! Everypony gets an OnDotChange! 2024-08-25 18:55:43 -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.