Tobias Hunger
0139eea4f9
xtask: Fix up license headers
...
* Keep project related .md files triple licensed as the rest of the
crate
* Make vtable MIT OR Apache 2.0 (as suggested by @ogoffart)
2023-08-17 08:55:28 +02:00
Aurindam Jana
5a4a7fee63
Update royalty free license to 1.1 ( #2994 )
2023-07-10 10:12:11 +02:00
Olivier Goffart
11dea135f7
Domain: slint-ui.com -> slint.dev
2023-06-16 10:55:08 +02:00
Aurindam Jana
039e54a5de
Add royalty free license to files except examples and docs ( #2888 )
2023-06-15 11:20:50 +02:00
Simon Hausmann
2bf3f8389e
Add test and ChangeLog entry for VRc::map_dyn
2022-07-22 23:09:08 +02: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
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
81602353e2
Implement Default for VWeakMapped
2022-01-05 15:57:16 +01:00
Tobias Hunger
bfca0e3573
Mass update copyright messages to be more REUSE compliant
2021-12-22 10:06:12 +01:00
Simon Hausmann
94b19d3df9
Add VRcMapped::origin()
2021-11-08 13:41:52 +01:00
Simon Hausmann
5af91a133e
Fix compilation when trying to clone VRcMappend and VWeakMapped
...
A #[derive(Clone)] imposes Clone on the VTable type, which
doesn't make sense here.
2021-11-05 11:17:55 +01:00
Olivier Goffart
c506e87484
Add VRcMapped::map
2021-11-05 09:50:58 +01:00
Simon Hausmann
2b70e28d54
Move VRcMapped::map to VRc::map
...
This makes the functionality easier to discover and seems more consistent.
2021-11-04 19:59:04 +01:00
Simon Hausmann
183ff6586b
Add VrcMapped and VWeakMapped to allow for references to objects that are reachable via VRc
...
For now this requires pinning on the type contained in VRc as well as
the fields mapped to. This could be lifted using additional flags, but
for now this is what we need anyway.
2021-11-04 19:57:36 +01:00
Olivier Goffart
73ec3e6701
vtable: fix clippy warnings in tests
...
(ran with cargo clippy --tests)
2021-08-16 11:04:33 +02:00
Olivier Goffart
13bd828b96
Update license date
2021-07-02 15:55:54 +02:00
Olivier Goffart
f7c8f40dec
VRc: use atomic for the strong and weak count
2021-05-25 15:53:49 +02:00
Olivier Goffart
a1f1fcb3a6
Use VRc<ComponentVTable> in the rust generated code
2020-11-09 14:58:37 +01:00
Olivier Goffart
7fbcb78606
vtable: change VRc and VWeak to add the concrete type as a parameter
...
... or `Dyn` if unkown.
So we can implement Deref for the concreate type.
Sicne Deref is implemented for VRc, all the method of VRc are now
associated function.
2020-11-06 11:50:31 +01:00
Olivier Goffart
270408d485
vtable::VRc: Add few comments and missing function found in review
2020-11-06 10:11:44 +01:00
Olivier Goffart
f852b0bb6a
vtable: new VRc and VWeak pointer
2020-11-06 10:11:44 +01:00