Olivier Goffart
c82bb1515e
C++ image: add some docs
...
Note: Don't use cbindgen to generate `operator==` for public types.
Because it doesn't have docs and the documentation show warnings
otherwise
2023-03-20 17:22:56 +01:00
Olivier Goffart
ef7fb6422a
C++ Image API: introduce the SharedPixelBuffer
2023-03-20 17:22:56 +01:00
Olivier Goffart
be47c8464c
C++: implement creation of image from raw data
...
Issue #616
2023-03-20 17:22:56 +01:00
Tobias Hunger
d09833d664
wasm-interpreter: Fix warnings about ignored results
2023-03-16 12:53:13 +01:00
Jyotirmoy Roy
f376741167
Rename BUILD_TESTING cache variable to SLINT_BUILD_TESTING #2362 ( #2364 )
...
Rename BUILD_TESTING cache variable to SLINT_BUILD_TESTING
Fixes #2362
2023-03-12 10:33:44 +01:00
Olivier Goffart
4df25b7f15
Janitor: upgrade corrosion
2023-03-09 09:14:34 +01:00
Tobias Hunger
9af756bf3f
cpp: Do not produce warnings when using the UIntModel
2023-03-06 17:03:20 +01:00
Olivier Goffart
bea263a447
Docs: Remove the sentence that say one need to use nightly
...
Rust 1.68 will be released by the time we do the next release
2023-03-06 11:02:10 +01:00
Tobias Hunger
1f877887cd
docs: Remove builtin_ prefix from files in builtins dir
2023-02-24 12:04:22 +01:00
Simon Hausmann
ecb7819e9b
doc: Fix links from C++ docs to the Slint Language Documentation
...
Fix paths and use HTML anchors, as the markdown links won't turn into
links as the files don't exist yet in that location.
2023-02-23 15:21:04 +01:00
Simon Hausmann
7e843a30d8
doc: Move the recipes into the Slint Language Documentation
2023-02-23 14:20:10 +01:00
Tobias Hunger
39d215bee0
docs: Rename "Slint language Reference" to "Slint Language Documentation"
2023-02-22 21:13:47 +01:00
Tobias Hunger
78892cdf1f
docs: Fix broken links in our docs.
2023-02-22 17:08:30 +01:00
Tobias Hunger
96f75bdd0c
docs: Rework the rust part of the documentation ( #2240 )
...
Co-authored-by: Simon Hausmann <hausmann@gmail.com>
2023-02-20 21:06:05 +01:00
Olivier Goffart
f231522f7e
Change the homepage URL in the Rust API's Cargo.toml
2023-02-20 08:52:38 +01:00
Simon Hausmann
2d878de7ac
Bump corrosion
...
Fixes #2245
2023-02-17 16:46:49 +01:00
Olivier Goffart
81cb89d374
C++: fix including the generated file in several translation units
2023-02-17 16:42:40 +01:00
Simon Hausmann
aba5797eaa
C++ docs: Elaborate a little on the argument to Window::set_rendering_notifier
2023-02-17 11:12:54 +01:00
Simon Hausmann
aee97b475e
janitor: remove dead CMake code
2023-02-16 13:53:20 +01:00
Olivier Goffart
8450e01a3f
Change the name of the compat feature ( #2230 )
...
And remove the compat-0-2-0 and compat-0-3-0 features
2023-02-16 09:40:44 +01:00
Olivier Goffart
fd6c80a590
Set MSRV to 1.66
2023-02-16 09:03:22 +01:00
Tobias Hunger
1a31c9a50b
docs: Polish the C++ docs ( #2229 )
2023-02-15 15:47:45 +01:00
Olivier Goffart
5b3cde87ab
Update dependencies
2023-02-15 10:28:02 +01:00
Olivier Goffart
e57627d535
Use the new syntax in more tests
...
That are failing otherwise as there would be a warning
2023-02-14 12:38:39 +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
Olivier Goffart
a19efc30db
Replace the MAX_BUFFER_AGE const generic with a runtime enum
...
Having a const generic for that didn't turn to be a good API.
Also made the C++ side more difficult
(Also renamed buffer_stride to pixel_stride)
Closes #2135
2023-02-08 14:44:01 +01:00
Olivier Goffart
eaa9db4911
C++: use size_t everywhere as index in our models
...
cc #2024
2023-02-07 15:25:44 +01:00
Tobias Hunger
d93445bd0b
docs: Remove inline langref documentation and link the mdbook
...
For node and cpp, I use relative links to point to the slint language
reference documentation.
For the slint crate documentation I create a link to
https://slint-ui.com/releases/VERSION/ ... instead: This needs to work from
docs.rs as well as from our own docs area on slint-ui.com! That is
pretty ugly: I can not even define constants for this as the crate docs
need to come before anything else.
2023-02-07 12:10:07 +01:00
ogoffart
e7f48512ee
Bump version number to 1.0.0
2023-02-03 11:07:15 +01:00
Olivier Goffart
f2c680ac28
Update description in Cargo.toml
2023-01-27 08:54:13 +01:00
Olivier Goffart
ae20ec59c8
Rename PointerEventButton::None to PointerEventButton::Other
...
And mark the enum non_exhaustive
closes #1903
2023-01-26 13:36:54 +01:00
Olivier Goffart
a0fb8bc771
Remove support of old SIXTYFPS_ env variable, and sixtyfps_widgets.60
2023-01-26 13:36:38 +01:00
Olivier Goffart
63cc68ea0c
C++: Use concepts for the invokables
2023-01-26 11:35:16 +01:00
Olivier Goffart
a3ec320bfb
Remove some deprecated stuff
...
CC #2024
2023-01-26 11:19:21 +01:00
Olivier Goffart
aad03d2d43
Update the version number in the readme and docs
2023-01-25 11:25:51 +01:00
Simon Hausmann
cbb5198bf6
Update syntax in Mini-C++ tutorial
2023-01-25 09:54:50 +01:00
Simon Hausmann
7e02fa8b6a
Update the syntax used in the different documentation entries and README
2023-01-25 09:54:50 +01:00
Olivier Goffart
16354c2c25
vscode browser: implement the highlight
2023-01-22 10:16:15 +01:00
Simon Hausmann
629c7ed80e
Remove undocumented and dysfunctional PathLayout
...
This type is poorly implemented and not documented. Let's remove it for now.
It shall remain available in the git history in the event of a resurrection.
2023-01-21 13:10:19 +01:00
Simon Hausmann
587c9f6942
Prospective build fix for vs code extension build
...
The wasm interpreter isn't built with the highlight feature there.
2023-01-21 09:20:22 +01:00
Tobias Hunger
82bc71b245
tools: Improve highlighting in the interpreter
...
Trigger the event loop once, so that the highlight gets rendered without
further user interaction.
2023-01-20 18:27:11 +01:00
Tobias Hunger
15bd48d2fa
tools: Add highlight feature to wasm-interpreter
...
... and use it.
2023-01-20 18:27:11 +01:00
Tobias Hunger
ee3f714638
tools: Turn on highlight support in wasm-interpreter
2023-01-20 18:27:11 +01:00
Olivier Goffart
83ea50761a
Janitor: upgrade corrosion
2023-01-19 11:48:28 +01:00
Jocelyn Turcotte
cad7178b9e
Docs: Suggest enabling the Feature resolver version 2 in the MCU doc
...
After a while trying to understand why std kept appearing in the output of
`cargo +nightly tree -e features -i once_cell -f "{p} {f}"` and why it built within the
slint tree but not in my project, I figured out that this is probably because slint
is enabling the new feature resolver in its root Cargo.toml.
2023-01-18 06:09:47 +01:00
Olivier Goffart
8967deef56
C++: add a manual test to test the platform API using Qt
2023-01-17 10:21:11 +01:00
Olivier Goffart
8d0cdc6ec2
C++: cmake: move the build instruction for the tests in the tests dir
2023-01-17 10:21:11 +01:00
Olivier Goffart
00de1867ae
Janitor: deps upgrade
2023-01-16 10:47:55 +01:00
Florian Blasius
ac5eaf495f
move cpp StandardListViewItem from private to public namespace ( #2062 )
...
* move cpp StandardListViewItem to public namespace
* Fix missing C++ docs for StandardListViewItem
The struct is originally defined in Rust in model.rs and cbindgen creates the
compatible C++ declaration. For doxygen
to see it, it needs to be emitted into slint_generated_public.h.
* Improve the StandardListViewItem docs a little bit
* move cpp StandardListViewItem to public namespace
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-01-16 09:06:36 +01:00
Simon Hausmann
96c80a2dd1
Fix crash when using an int model in a repeater with a negative value ( #2063 )
...
Make sure that we return an unsigned for row_count() in C++ and Rust by ensuring an unsigned int model at creation time.
For the interpreter this "worked" by chance as casting a negative floating
number to usize automatically caps at zero, and all values are stored as f64. For safety this patch
applies the same fix though, to be on the safe side.
2023-01-14 21:20:14 +01:00