09a659ba70
ref(event): split resize event into viewport and size event
...
Viewport event reflects the absolut position and size of a given
container (and propagates them to its children). While the size
event propagates the content size to its children (and sets their
corresponding member values accordingly).
Both events are currently only emitted by `Container`s meaning that they
don't need to be part of the event loop and that they might be removed
later.
2025-02-15 09:55:30 +01:00
abaea968a6
rem(container): sizing options
...
This enables the `Layout` struct to be packed (as well as the
`Properties` struct) which should further reduce the memory footprint.
2025-02-14 22:19:20 +01:00
c2a03e95c1
fix(container/layout): padding calculation for anchor corrections
2025-02-14 21:59:10 +01:00
8998afd9d6
mod():
2025-02-14 21:49:30 +01:00
bbe6f4741e
WIP: use viewport to allow sizes of scroll to extend further than renderable screen
2025-02-12 22:33:03 +01:00
98031dbd1a
add(container/layout): sizing option percentage
2025-02-09 13:41:23 +01:00
ef950809a6
add(container/layout): sizing:fixed option
2025-02-09 12:59:55 +01:00
c72d76470a
mod(container/border): change default configuration
2025-02-08 13:52:01 +01:00
29ae75adf5
add(layout/padding): layout configuration for padding
...
With minor code layout fixes
2025-02-08 13:11:27 +01:00
d326deac97
add(container/rectangle): add content creation
2025-02-07 17:43:16 +01:00
11531e9d4a
mod: remove min_size argument from App.start
2025-02-06 22:19:27 +01:00
8586a05508
mod: fix rendering resizing; layout placement of child elements for vertical and horizontal directions
...
Work in progress for separator configuration of border properties
2025-02-06 20:10:22 +01:00
009d2129b6
mod(container/layout): support gap configuration
2025-02-04 19:06:09 +01:00
9c06ced658
mod(style): styling and color revamp now with fewer characters to print to the terminal
2025-02-04 17:51:28 +01:00
2bfacc0e98
WIP: container rendering for borders + container element rendering
2025-02-03 19:55:33 +01:00
1293cb065d
WIP: add Container type with corresponding Properties configuration
...
The configuration of the `Container` types is very much inspired by
[clay](https://github.com/nicbarker/clay ).
2025-02-01 01:05:56 +01:00
bdbe05c996
mod(structure): update project structure
...
Remove examples, add description for design goals in README.md and
apply re-names and naming changes accordingly for the project structure.
Implement a flat hierachry, as the library shall remain pretty simple.
2025-01-30 23:02:34 +01:00
3decc541a9
mod(renderer): initial version of double buffer intermediate renderer
...
This branch will implement the necessary changes for the widgets and
their implementations to use the new renderer correctly.
2025-01-30 20:53:01 +01:00
f4a01f227e
fix: renderer default size value and example usage
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 41s
2025-01-14 17:17:24 +01:00
2efbb5feb1
mod(renderer): store absolut screen size for view change to report current screen size accordingly
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 1m21s
2025-01-14 17:08:19 +01:00
3048b59e84
add(view): View type for composing view modules
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 22s
2025-01-14 01:14:55 +01:00
c2c3f41ff3
mod(memory): do not create items on the stack instead using the provided allocator
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 4m26s
2025-01-06 21:56:04 +01:00
3a989321fc
feat(event): add focus in/out event to SystemEvents
...
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 3m54s
feat(app): add minimal size argument for App.start
Read more corresponding inputs from stdin and convert them correctly
(i.e. in band window resizing), further keys (arrow keys, F-keys, etc.).
Respect the provided minimal size for the application which posts an
error message in case the size is smaller than the requested minimal
size.
2024-12-25 12:53:39 +01:00
8d68945100
add(widget/List): initial list widget; used in tabs.zig example
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m34s
2024-11-23 22:41:42 +01:00
c0c7b9f925
add(layout/tab): Tab layout implementation
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 9m46s
2024-11-21 23:27:00 +01:00
6cd78d0418
fix: release mode undefined usage (for optionals); bump to 0.14.dev
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 54s
2024-11-19 23:27:12 +01:00
f4adf53067
doc: removed unnecessary comment
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 32s
2024-11-16 19:08:50 +01:00
7c9038fbda
mod(widget/Text): add alignment options for Text Widget
...
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 36s
Updated exec example which uses centered text.
2024-11-16 18:12:24 +01:00
aeac4bdc83
add(examples): split main.zig into examples which can be executed and reviewed independently
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 50s
2024-11-15 21:02:44 +01:00