Simon Hausmann
0bd21f4e56
Use click-to-play for preview of examples and recipes ( #1919 )
...
By using a persistent WebGL context for reach (small) preview, we hit
the browser imposed limits on the number of GL contexts quickly. This
change add support to pt out of the automatic enabling of the preview
via no-auto-preview, that's selected for recipes.
2022-11-28 11:49:53 +01:00
Olivier Goffart
6bed0e00bb
Docs: recipes: Add some no-preview tags
...
For things that involve native code.
That helps showing the page on chromium as it would otherwise run out of
GPU contexts
2022-11-28 10:54:30 +01:00
Olivier Goffart
ad5b7be836
Recipes: Translation example
2022-11-25 17:38:40 +01:00
Olivier Goffart
c4f90dfa2a
Receipes: TableView
2022-11-25 14:26:22 +01:00
Olivier Goffart
51933b99bb
New syntax for transitions, within the state
2022-11-22 15:16:54 +01:00
aydwi
dafbcc8418
Update recipes.md
...
Fix a small namespace bug in C++ sample code for "Global Callbacks"
2022-07-06 21:53:54 +02:00
Olivier Goffart
f75a0d4e0f
Recipes: Slider and Tabs
2022-04-20 18:03:40 +02:00
Olivier Goffart
ca5bfd3426
Doc recipes: add custom widgets
2022-04-19 17:11:20 +02:00
Olivier Goffart
c24a51aaba
Apply suggestions from code review
...
grammar and wording fixes
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2022-04-05 06:39:21 +02:00
Olivier Goffart
7979d54c85
Recipes: Add some text to fill it
2022-04-05 06:39:21 +02:00
Simon Hausmann
72cf11b855
Adapt to correct no-preview code fence syntax
2022-04-04 10:01:26 +02:00
Simon Hausmann
87d66d0e53
Fix the compilation of the global callback example recipe
2022-04-04 10:01:26 +02:00
Simon Hausmann
f1e7f876f9
Make the showing/hiding of language snippets explicit in the markup
...
Use a data attribute instead of relying on the structure of rustdoc and myst-parser/sphinx.
2022-04-04 10:01:26 +02:00
Simon Hausmann
2e9fc34af3
Don't run the global callback example as preview
2022-04-04 10:01:26 +02:00
Simon Hausmann
809b29a422
Added example of invoking a global callback
2022-04-04 10:01:26 +02:00
Simon Hausmann
f88b9f143e
Fix doctest
...
Make the native Rust example compile
2022-04-04 10:01:26 +02:00
Simon Hausmann
4c88b2b19b
Start a page with examples and recipes
...
This is the beginning of a page to collect common things users need to
do, in a format that they can copy & paste into their application code.
There's a lot more that could be done though.
2022-04-04 10:01:26 +02:00