Tobias Hunger
c825eee228
janitor: Update global cspell
...
Update global cspell words and remove some file-wide words.
Also remove a manual test that is now also run as a proper test case.
2022-04-12 12:03:45 +02:00
Olivier Goffart
0429e11cf7
Refactor: Move ItemRc and ItemWeak to item_tree.rs
...
Keep items.rs for the implementation of items, and move the logic
that helprs navigating the tree to the item_tree.rs module
2022-04-07 16:59:38 +02:00
Olivier Goffart
40c98d6d05
Update cbindgen and enable MouseCursor::move
...
cbindgen 0.21 was released which contains https://github.com/eqrion/cbindgen/pull/724
which allow to use raw identifier in enums shared with C++.
So now we can have `MouseCursor.move` in slint despite it being a rust keyword
Note that the strum macro also have trouble with the raw identifier, so we
take that in account in the conversion functions in the interpreter
2022-04-05 06:39:50 +02:00
Tobias Hunger
ee68716d07
Component: Add information to stich together ItemTrees
...
Add accessors to the information necessary to stitch together the
Component-wide ItemTrees (which include DynamicNodes) into one logical
tree of Items.
2022-03-28 14:13:36 +02:00
Simon Hausmann
535e134223
Add a Layer element that's created when using a layer boolean property
...
For now no backend implements this optimization hint.
2022-03-21 20:22:43 +01:00
Tobias Hunger
fd497ab657
Fix ComponentBox drop() implementation
2022-03-16 13:48:20 +01:00
Tobias Hunger
ea684fa4de
Add item_tree function to Component VTable
2022-03-14 17:19:31 +01:00
Tobias Hunger
106593eddc
Simplify code a bit using an already existing helper function
2022-03-14 17:19:31 +01:00
Tobias Hunger
bdc3778cec
Rename init/free item functions back
2022-03-14 09:43:50 +01:00
Tobias Hunger
095537e3fd
Remove item from ItemTreeNode
...
... and make ItemTreeNode non-generic this way.
The Item is now only in the extra ItemArray struct and we are free to
expose the ItemTree further.
2022-03-14 09:43:50 +01:00
Tobias Hunger
33b5227023
Use item_array in interpreter
2022-03-14 09:43:50 +01:00
Tobias Hunger
b95342551b
Add index into item_array into ItemTreeNode
2022-03-14 09:43:50 +01:00
ogoffart
7b50791db4
Bump version number to 0.2.2
2022-03-10 08:48:33 +00:00
Simon Hausmann
ba2a06863f
Partial fix for ffi build of the interpreter
...
Commit 738ac0dc01
increased the size of CompilerConfig, thus ComponentCompiler.
2022-03-03 13:54:10 +01:00
Jared Moulton
b884a4ca19
Fix CI issues, remove references to replace-char, add a test, fix creation of string
2022-03-02 15:47:32 +01:00
Jared Moulton
fdbc8056b3
Add an option to draw *'s instead of characters for password fields
2022-03-02 15:47:32 +01:00
Simon Hausmann
39a2290221
Build the backends without rtti unless needed ( #1001 )
...
* Build the backends without rtti unless needed
Only the interpreter needs the rtti generated code.
* Since `SlintElement` emits `#[cfg(feature = "rtti")]` tokens, each
crate using `SlintElement` needs to have an `rtti` feature.
* The selector gets backend specific rtti selection features, in order
for the interpreter to enable them.
* Enable rtti when building the C++ project with the interpreter enabled
2022-03-01 18:37:07 +01:00
Olivier Goffart
0dc188f328
Support for referring to other globals from globals
...
- We need to make sure that the initialization of global is in the right order.
- In C++ and rust, we need to add accessor to the global component
- There can be `PropertyReference::Global` in binding of globals
- The interpreter globals need to hold references to the global they may depend on
Fixes #175
2022-02-28 10:14:34 +01:00
Tobias Hunger
f3feab1267
Implement ptr_eq for VWeak and PartialEq for Items ( #976 )
...
* Implement ptr_eq for VWeaks
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2022-02-21 17:45:18 +01:00
Olivier Goffart
a1176d7b6a
Update to document-features 0.2
...
Make it optional and only enabled when building the docs
2022-02-11 11:07:58 +01:00
ogoffart
ecd0fb7ecd
Bump version number to 0.2.1
2022-02-10 16:25:28 +01:00
Tobias Hunger
58e7caafb0
Fix LICENSES symlinks
2022-02-09 17:05:47 +01:00
Olivier Goffart
3d209287c2
Docs: add a note that only exported global from the main file are exposed
2022-02-09 14:49:20 +01:00
Tobias Hunger
4230ac2572
Update copyright information to reflect name change
...
Also run resue over the codebase and fix complaints from that tool.
2022-02-09 10:27:47 +01:00
Simon Hausmann
6d923b9367
Improve GL backend feature docs to convey cross-platform support
...
Apply suggestion from code review
2022-02-08 14:47:25 +01:00
Simon Hausmann
9a520cb41c
Fix implicit selection of the std feature when selecting backend-gl-x11/wayland
2022-02-08 14:47:25 +01:00
Simon Hausmann
90d67be1a4
Document the feature renaming in the migration guides
2022-02-08 14:47:25 +01:00
Simon Hausmann
be5b8c1c46
Rename the backend-gl feature to backend-gl-all
2022-02-08 14:47:25 +01:00
Simon Hausmann
48f3f47401
Rename the x11 and wayland features to backend-gl-x11/wayland
2022-02-08 14:47:25 +01:00
Olivier Goffart
1425ef63de
Change the Url from sixtyfps.io to slint-ui.com
...
Also, change the URL of the logo in the docs
2022-02-08 08:52:46 +01:00
Olivier Goffart
00ff5e21a7
Update git repository URL
2022-02-08 08:26:21 +01:00
Simon Hausmann
e5483f2836
Add support for selecting the style via SIXTYFPS_STYLE as fallback
...
This makes transitioning easier
2022-02-07 17:49:44 +01:00
Tobias Hunger
de4e195280
Rename internal crates and add a README.md to them
...
The README.md contains the warning that used to be in lib.rs.
Add README.md files to all internal crates
... pointing to the official public crate to use instead.
Rename internal crates
fixup: README files
fixup rename
2022-02-07 13:12:48 +01:00
Tobias Hunger
1534f87e30
Change authors to Slint Developers
2022-02-02 16:21:34 +01:00
Tobias Hunger
2b55c488ca
Rename sixtyfps to slint in internal
2022-02-02 16:16:55 +01:00
Olivier Goffart
ad4eea9e96
Merge remote-tracking branch 'master' into wip/rename
...
Conflicts:
.reuse/dep5
Cargo.toml
api/cpp/README.md
api/cpp/docs/conf.py
api/rs/slint/Cargo.toml
docs/development.md
2022-02-02 15:04:22 +01:00
Olivier Goffart
fc6b7cc966
Replace sixtyfps::
almost everywhere
2022-02-02 13:50:44 +01:00
Tobias Hunger
cc3994b58d
Rename rust API
2022-02-02 13:26:35 +01:00
Olivier Goffart
e92dd7797d
Rename some occurences
2022-02-02 12:26:55 +01:00
Simon Hausmann
c846633708
Rename C ffi functions
2022-02-02 11:12:34 +01:00
Olivier Goffart
03534039d6
Replace more .60 by .slint
...
Mainly an automated change with
git grep -O"sed -i 's/\.60/.slint/g'" -w "\.60"
and some manual checks
2022-02-02 10:12:31 +01:00
Simon Hausmann
2f73a27635
Rename the sixtyfps-interpreter crate
2022-02-01 18:11:25 +01:00
Simon Hausmann
cab22f8355
Rename the sixtyfps-compilerlib crate
2022-02-01 18:08:18 +01:00
Simon Hausmann
9494068201
Rename the sixtyfps-rendering-backend-selector crate
2022-02-01 18:06:49 +01:00
Simon Hausmann
2e04b3c8b3
Rename the sixtyfps-rendering-backend-gl crate
2022-02-01 18:04:38 +01:00
Simon Hausmann
19eb3e671d
Rename sixtyfps-rendering-backend-qt
2022-02-01 18:04:32 +01:00
Simon Hausmann
ad0c020aa4
Rename the sixtyfps-corelib crate
2022-02-01 18:04:30 +01:00
Olivier Goffart
8273a3e147
Use document-features from crates.io
2022-02-01 17:55:11 +01:00
Olivier Goffart
f9c3e7a8de
C++ interpreter: first crash when invoking native callback
...
This was a regression following the move to the edition 2021.
The CallbackUserData was not capture in the lamda, its member were moved.
So the destructor was called right after it was set.
We must make sure we capture the whole CallbackUserData, so put the callback
inside of it. This also reduce a bit of code duplication at the same time.
Test the callback invokation with statefull lambda
2022-01-31 22:25:24 +01:00
Tobias Hunger
0d358251c9
Janitor: More clippy stuff
2022-01-31 20:59:45 +01:00