Tobias Hunger
1a31c9a50b
docs: Polish the C++ docs ( #2229 )
2023-02-15 15:47:45 +01:00
Olivier Goffart
6889dfa5f5
Rust: Make new(), run() and show() report errors from the backend
...
Fixes #2198
2023-02-10 05:00:03 +01:00
Simon Hausmann
9381f00e04
doc: Fix button recipe talking about :=
syntax for component declaration
2023-02-06 08:53:58 +01:00
Simon Hausmann
448b216bd8
Second stage of cleaning up the export handling of the slint root component
...
Commit 24dcef5fed
added a warning for the
implicit export of last component. For 1.0, this commit makes it so that
the root component is determined by the last export in the file.
2023-01-26 15:52:40 +01:00
Olivier Goffart
907fd72725
Fix duplicate transition in the recipes
2023-01-25 12:28:52 +01:00
Simon Hausmann
6cd9108fda
Fix warnings on cargo test -p doctests
2023-01-23 15:22:10 +01:00
Olivier Goffart
d7e903214c
Adust docs to the new syntax
2023-01-07 14:18:10 +01:00
Olivier Goffart
ff53420a72
Run the syntax_updater on the .md files in docs
2023-01-07 14:18:10 +01:00
Olivier Goffart
1cbd61145e
WIP: pure qualifier for callback and functions
2022-12-22 00:26:27 -08:00
Florian Blasius
56ade50512
add recipe for responsive sidebar ( #2002 )
2022-12-20 08:17:34 +01:00
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