Draw based widgets for Red
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hiiamboris ca804b121b DOC: 2022 documentation updates 1 day ago
..
README.md DOC: 2022 documentation updates 1 day ago
field-test.red FIX: field should fill the canvas 3 weeks ago
grid-test1.red FEAT: autosize grid rows by default 2 months ago
grid-test2.red FIX: button extension to canvas fix 1 month ago
grid-test3.red FEAT: grid rework and autofit support; fix of text caching issues 2 months ago
grid-test4.red FIX: more dynamic/reliable scrollable sizing and some 1 month ago
grid-test5.red FIX: added depth or it's too fast in release mode 4 weeks ago
grid-test6.red FIX: more dynamic/reliable scrollable sizing and some 1 month ago
grid-test7.red FIX: more dynamic/reliable scrollable sizing and some 1 month ago
grid-test8.red FIX: updated demo code 1 month ago
hello-space-manual.red FEAT: renamed item-list to content 2 months ago
hello-space.red FIX: minor hello improvement 2 weeks ago
list-test1.red FEAT: focus VID/S keyword 2 months ago
list-test2.red FEAT: changed cache structure to flat/growing 2 months ago
list-test3.red FEAT: grid-view refactor 2 months ago
popups-test.red FIX: minor refactor 1 day ago
resize-test.red FIX: updated demo code to new image sizing algo 4 weeks ago
scrollbars-test.red FEAT: initial VID/S implementation 2 months ago
spiral-test.red FIX: assertions include workaround 3 weeks ago
tube+cells-test-stretch-row.red FEAT: renamed item-list to content 2 months ago
tube+cells-test.red FEAT: canvas handling improvements (hopefully final) 3 weeks ago
tube-test.red FIX: disable origin clipping until I find a solution 2 weeks ago
web-test.red FIX: minor web fixes 1 month ago

README.md

Demos for testing

During development, I've created a number of test scripts, which help me debug things when my changes break something, and help see how my model performs.

These scripts are not meant to be templates you can just grab and extend, but until I make templates it will be the closest thing.

Screenshots show the expected behavior.

To try out any of the tests:

  1. clone the repositories:
git clone https://codeberg.org/hiiamboris/red-common common
git clone https://codeberg.org/hiiamboris/red-spaces
  1. run any test:
cd red-spaces/tests
red <test-name.red>

Common tests

web-test.red

Simplest infinite canvas test, with a spider web. I use it to check if inf-scrollable works at all.


scrollbars-test.red

Tests of how scrollbars adapt their look to various sizes.
Not interactive yet, as scrollbars events are undefined outside of scrollable space's use.


tube-test.red

Tests all axes/align combinations of tube layout.


popups-test.red

Tests label template and popups: hints and right-click menus.


resize-test.red

Tests resizing of a relatively complex layout.

Text tests

field-test.red

Tests field operation. It's logic is quite tricky to get right.


spiral-test.red

Stress test. Huge editable field curled spirally. Very slow, because renders each glyph separately :)

List tests

list-test1.red

Simplest list of 3 button spaces.


list-test2.red

list-view test: a scrollable window moving over a big but finite content.


list-test3.red

list-view test: a scrollable window moving over infinite content. No matter how far scrolled down, it should be responsive.

Grid tests

grid-test1.red

Simplest fixed grid with 2 buttons. Clickable and tabbing should work.


grid-test2.red

Simple enough grid that I use to test if cell span works. Has fixed limits and uneven row height.


grid-test3.red

Minimalistic grid-view. Size defined by data. Data is limited.


grid-test4.red

Big grid-view with unlimited data, pinned columns & rows, cell span. Should not be lagging too much.


grid-test5.red

Stress test. A grid-view that contains itself in each cell, truncated at some depth. Very slow. At depth=6 it has to render 4^6 = 4096 cells. Depth=7 contains 16384 cells, and 8192 scrollers, and takes about a minute to render.


grid-test6.red

Stress test. An infinitely zooming animation for grid-view that contains itself in each cell. Uses smarter rendering code that helps speed it up, but still has to be truncated at 625 cells to be responsive.


grid-test7.red

Stress test. An infinitely zooming animation for grid-view that contains itself only in the central cell, which allows to render it quite deeply.