💻Build one codebase and get native UI on Windows, Linux and Web
MPL-2.0 License
Bot releases are hidden (Show)
Commit Changelog: https://github.com/capy-ui/capy/compare/v0.2.0...v0.3.0
Published by zenith391 over 2 years ago
@embedFile
by @frmdstryr in https://github.com/zenith391/zgt/pull/13
zgt.Scrollable
which takes any component and makes it scrollable by adding scroll bars by @zenith391zgt.Tabs
as tab view (note: this component is not done yet)readOnly
property to TextField
getPreferredSize
, that is they are now of the correct size.Window.getChild
to get the child widget of the windowWindow.setIcon
to set the icon (takes an ImageData
)Container.getAs
as a shorthand for Container.get(...).as(...)zgt.lerp
, this is a lerp function for ints, floats and structs that have a lerp()
functionRow
and Column
, spacing between elements can now be controlled with .spacing
(e.g. Row(.{ .spacing = 10 }, ...)
for a spacing of 10 pixels)ZGT_MOBILE_EMULATED
environment variable, this works similarly to Chrome and Firefox mobile emulation (that is, it only changes the size of the window)Container.resize()
: sizes on the gtk backend are consistent with other backends.TextField
peerNote that the win32 backend is still basically pre-alpha and doesn't have feature parity with the gtk backend yet (although it might be reached by 0.2.1)
Some efforts have been started towards exporting zgt API to C. This will allow zgt to be used in any language with an FFI (given the C ABI is the lingua franca of programming languages).
Currently it is still at an early stage and only supports windows and buttons.
See c_examples/zgt_app.c
Full Changelog: https://github.com/zenith391/zgt/compare/0.1.0...0.2.0
Published by zenith391 almost 3 years ago
The first release of zgt.
This initial implementation has buttons, labels, text fields, canvas and containers.
The following backends are implemented: