A GUI toolkit written in pure Go.
This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Sasha Koshka 423e6869c0 X backend better handles expose events
Previously, when an expose event was recieved, the backend would
call Window.paste, converting RGBA image data to BGRA image data.
Now we only call Window.pushRegion with the bounds given to us by
the expose event(s). This speeds up window resizing significantly.
2023-03-07 12:48:29 -05:00
artist X backend better handles expose events 2023-03-07 12:48:29 -05:00
assets
backends/x X backend better handles expose events 2023-03-07 12:48:29 -05:00
canvas Default elements compile 2023-02-26 22:20:17 -05:00
config Cleaned out the old theme code and moved padding and margins to theme 2023-02-26 00:44:44 -05:00
data
defaultfont
dirs
elements Button applies the sink offset correctly to icons 2023-03-05 11:20:33 -05:00
examples X backend better handles expose events 2023-03-07 12:48:29 -05:00
fixedutil Added fixed precision point utilities 2023-02-15 18:41:03 -05:00
flow
input
layouts Layouts now take in proper margin and padding values 2023-03-04 01:42:14 -05:00
popups Buttons can now have icons 2023-03-05 00:05:56 -05:00
shatter
textdraw whee back in busineess 2023-02-26 14:27:38 -05:00
textmanip Keyboard text selection is now no longer broken lmao 2023-02-16 14:09:23 -05:00
theme Made a few icons blacker 2023-03-05 00:07:37 -05:00
backend.go
go.mod
go.sum
LICENSE
README.md
tomo.go

tomo

This repository is mirrored on GitHub.

Please note: Tomo is in early development. Some features may not work properly, and its API may change without notice.

Tomo is a retro-looking GUI toolkit written in pure Go. It is designed with these goals in mind:

  • Modularity: the core of Tomo is mostly composed of interfaces—and the overwhelming majority of its code resides in pluggable modules. If you don't need it, then dont import it—and you can be assured it won't be there.
  • Extendability: during the design of Tomo's API, use cases such as creating custom backends, elements, and layouts were given just as much importance as normal application building. Your custom element is a first-class citizen.
  • Independence: Tomo is minimally dependent on code outside of the Go standard library. Because of this, the file size of a compiled Tomo application is typically very small.
  • Frugality: Tomo foregoes things like animations and anti-aliasing in order to use a minimal amount of system resources without even having to touch the GPU.
  • Consistency: Tomo's design is not only consistent within itself, but also with the Go standard library. If you've worked with Go in the past, Tomo will feel pleasantly familliar.

You can find out more about how to use it by visiting the examples directory, or pull up its documentation by running godoc within the repository. You can also view it on the web on pkg.go.dev.