Comments (2)
There's an interesting case here that widthProp
could in simple cases be write-able. However, this would need a different API, to track const- vs non-const bindings, I guess.
So you could do:
Property<Rect> r;
auto widthProp = makeBoundPropery(r.width);
widthProp = 99;
and this would trigger bindings on r
I can guess making this work for arbitrary deep nesting is impossible, but for the common case of types such as color, date or vec3 / mat4, it feels like it would be useful enough to support.
from kdbindings.
There's an interesting case here that widthProp could in simple cases be write-able. However, this would need a different API, to track const- vs non-const bindings, I guess.
I'd say this is a separate issue, that also came up frequently, which is two-way bindings. (i.e. assign the "result" of a binding and if it's direct, write it into the source).
Otherwise adding support for .
and ->
operators is definitely interesting, but will need more research.
from kdbindings.
Related Issues (13)
- Draft - Single Shot Connection HOT 4
- Draft - Multi-Threaded bindings HOT 1
- Draft - Deferred connection evaluation HOT 1
- Property move constructor cannot promise noexcept HOT 2
- Handle Cascading Bindings
- Allow having bindings referencing const Properties HOT 2
- Add `[[warn_unused_result]]` for ConnectionHandle HOT 3
- Add facilities for signal throttling and debouncing HOT 1
- Add include paths with capitalised paths HOT 4
- Add logging when dequeuing a deferred emission
- Use signal and slots in QML/Javascript HOT 5
- Clazy never fails CI HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kdbindings.