-
-
Notifications
You must be signed in to change notification settings - Fork 40
Closed
Description
Plugins are currently only provided with a painter. Although this is sufficient for drawing, it may building interactive element more complicated, in particular tooltips.
My (possibly naive) suggestion would be:
- in
Map::ui()
, allocate a child ui that uses the providedUi
'savailable_size()
. - pass this child ui directly to
Plugin::run()
, instead of theResponse
andPainter
(both of which can be obtained from theUi
.
That would, of course, be a breaking change. If that's a concern, one could add a Plugin::run_ui()
method which by default delegates to the existing Plugin::run()
without changing its signature.
Would you accept such a PR? If so, would be ok with the breaking change or prefer the work-around?
Metadata
Metadata
Assignees
Labels
No labels