Comments (4)
I think this should be achievable with a custom widget accepting a draggable set of items and containing a drop zone.
Once one of the items is clicked, you would draw it at the cursor position until it is dropped. If it is dropped in the drop zone, you could produce a Message
containing the index of the dropped item.
The main limitation of this approach is that both draggable and drop zone will be part of the same widget and flexibility when it comes to styling/layout may be difficult. Right now, this is necessary in order to control drawing properly, as layers are not supported yet (see #30).
from iced.
Interesting, let me see if I can get something done. Thanks.
from iced.
The new PaneGrid
widget (see #224) implements drag and drop with the approach I described in my previous comment.
from iced.
from iced.
Related Issues (20)
- creating a menu HOT 11
- window::Settings::exit_on_close_request doesn't work on windows (STATUS_ACCESS_VIOLATION) HOT 1
- The commit 9600954 introduced a bug when using the numpad keys HOT 6
- Some Path::line is invisible in Canvas HOT 1
- Add command for setting window mouse passthrough mode
- Implement `Default` for `Size<T>` and `Point<T>` for any `T: Default` HOT 2
- Custom Quad's drop shadow broken
- Building the documentation ends with an error HOT 1
- TextEditor widget clipping issue with very long words.
- feature request - mac system menu support HOT 2
- Error: `palette` overflow evaluating the requirement `&_: std::iter::IntoIterator` HOT 1
- `palette` is ambiguous ambiguous because of multiple potential import sources HOT 1
- New release required to work with iced_aw 0.8.0? HOT 4
- GUI freezes upon interacting with a widget under Wayland HOT 8
- Themer widget doens't apply its theme to Text widgets HOT 2
- Compilation fails on x86_64-pc-windows-msvc. HOT 1
- column macro possibly in conflict with core column macro HOT 5
- svg scaling artifacts
- iced-winit depends on a yanked version of winit HOT 2
- tiny_skia backend panics if you have an Combobox menu with zero search results
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 iced.