Olivier Goffart
8117e7f03d
C++: make Model::track_row_data_changes const
2022-04-19 15:12:15 +02:00
Olivier Goffart
2f67564ea9
C++: add a Model::row_data_tracked function
2022-04-19 15:12:15 +02:00
Olivier Goffart
f5030cff06
Add a reset function to the model notifier
2022-04-14 14:06:34 +02:00
Tobias Hunger
e5aadd7c26
C++: Make component_at() return a ComponentWeak
2022-03-28 14:13:36 +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
Tobias Hunger
86a6add32c
janitor: Fix typos and make cspell happy
2022-03-18 10:15:44 +01:00
Olivier Goffart
ca5151de11
C++: implement Window::on_close_requested
2022-03-17 14:49:12 +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
5d3f296af9
API: Change WindowRc::free_graphics_resources and init_items on C++
...
Use the ItemArray in both cases.
2022-03-14 09:43:50 +01:00
Tobias Hunger
1fd14272cf
Use item_array in C++
2022-03-14 09:43:50 +01:00
n-raine
beda5aca07
Add dark style detection support for GL backend
...
With the help of dark-light crate this is now exposed as dark-style
boolean property in NativeStyleMetrics.
Co-authored-by: Olivier Goffart <olivier@slint-ui.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2022-03-01 16:41:20 +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
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
Olivier Goffart
91e107150e
Merge remote-tracking branch 'origin/wip/rename'
...
Conflicts:
examples/opengl_underlay/index.html
examples/opengl_underlay/main.cpp
2022-02-08 07:29:41 +01:00
Olivier Goffart
4115af88bd
Fixup previous merge
2022-02-04 17:43:15 +01:00
Simon Hausmann
125b90a64b
Merge remote-tracking branch 'origin/master' into wip/rename
...
Conflicts:
api/cpp/cbindgen.rs
api/cpp/include/slint.h
examples/CMakeLists.txt
examples/imagefilter/Cargo.toml
examples/plotter/main.rs
internal/backends/mcu/lib.rs
2022-02-04 16:47:20 +01:00
Simon Hausmann
f48d7d9f9e
SixtyFPS -> Slint in the C++ documentation
2022-02-02 15:19:13 +01:00
Simon Hausmann
b45433951a
Rename two more pre-processor variables
2022-02-02 13:39:11 +01:00
Simon Hausmann
fcf59f3793
Rename the C++ header files
2022-02-02 13:07:26 +01:00