Implement Widget::mouse_interaction for PaneGrid
... and fix rendering of drag interaction in `PaneGrid` by introducing an explicit `with_translation` method to `Renderer` and simplifying the `with_layer` and `Clip` primitive.
This commit is contained in:
parent
41394b4e90
commit
4a11cbd994
11 changed files with 167 additions and 66 deletions
|
|
@ -1,4 +1,3 @@
|
|||
use crate::pane_grid;
|
||||
use crate::progress_bar;
|
||||
use crate::renderer::{self, Renderer};
|
||||
use crate::text;
|
||||
|
|
@ -19,10 +18,11 @@ impl Null {
|
|||
}
|
||||
|
||||
impl Renderer for Null {
|
||||
fn with_layer(
|
||||
fn with_layer(&mut self, _bounds: Rectangle, _f: impl FnOnce(&mut Self)) {}
|
||||
|
||||
fn with_translation(
|
||||
&mut self,
|
||||
_bounds: Rectangle,
|
||||
_offset: Vector<u32>,
|
||||
_translation: Vector,
|
||||
_f: impl FnOnce(&mut Self),
|
||||
) {
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue