@@ -10,7 +10,6 @@ use iced_core::layout::{Limits, Node};
1010use iced_core:: renderer:: Quad ;
1111use iced_core:: widget:: Tree ;
1212use iced_core:: { self , Clipboard , Event , Layout , Length , Point , Shell , Text , Widget } ;
13- use iced_core:: { overlay, Element } ;
1413use iced_core:: { Background , Color , Rectangle } ;
1514use iced_winit:: winit:: event:: MouseButton ;
1615use indexmap:: IndexMap ;
@@ -280,7 +279,7 @@ impl<'a, M: 'a, T: 'a, R: 'a + WidgetRenderer, C: 'a + FloatingPanesBehaviour<'a
280279 self
281280 }
282281
283- pub fn build ( mut self ) -> FloatingPane < ' a , M , R , C > {
282+ pub fn build ( mut self ) -> FloatingPane < ' a , M , T , R , C > {
284283 FloatingPane {
285284 behaviour_data : self . behaviour_data ,
286285 min_size : self . min_size ,
@@ -673,7 +672,7 @@ impl<'a, M: 'a, T: 'a, R: 'a + WidgetRenderer, C: 'a + FloatingPanesBehaviour<'a
673672 // self
674673 // }
675674
676- pub fn insert ( mut self , index : C :: FloatingPaneIndex , child : FloatingPane < ' a , M , R , C > ) -> Self {
675+ pub fn insert ( mut self , index : C :: FloatingPaneIndex , child : FloatingPane < ' a , M , T , R , C > ) -> Self {
677676 self . children . insert ( index, child. into ( ) ) ;
678677 self
679678 }
@@ -960,7 +959,7 @@ impl<'a, M: 'a, T: 'a, R: 'a + WidgetRenderer, C: 'a + FloatingPanesBehaviour<'a
960959 renderer : & R ,
961960 translation : Vector ,
962961 ) -> Option < Element < ' b , M , T , R > > {
963- C :: overlay ( self , layout, renderer)
962+ C :: overlay ( self , state , layout, renderer, translation )
964963 }
965964}
966965
@@ -1018,35 +1017,35 @@ where R: margin::WidgetRenderer + iced_core::Renderer + iced_core::text::Rendere
10181017 . gesture
10191018 . as_ref ( )
10201019 . map ( Gesture :: get_mouse_interaction)
1021- . unwrap_or ( mouse :: Interaction :: default ( ) ) ;
1020+ . unwrap_or ( Interaction :: default ( ) ) ;
10221021
1023- let background_primitive = Primitive :: Quad {
1022+ let background_primitive = PrimitiveEnum :: Quad ( Quad {
10241023 bounds : Rectangle :: new ( Point :: ORIGIN , layout. bounds ( ) . size ( ) ) ,
1025- background : Background :: Color (
1026- element
1027- . style
1028- . as_ref ( )
1029- . map ( |style| style. style ( ) . background_color )
1030- . unwrap_or ( Color :: TRANSPARENT ) ,
1031- ) ,
1024+ // background: Background::Color(
1025+ // element
1026+ // .style
1027+ // .as_ref()
1028+ // .map(|style| style.style().background_color)
1029+ // .unwrap_or(Color::TRANSPARENT),
1030+ // ),
10321031 border : iced:: Border :: default ( ) ,
10331032 shadow : iced:: Shadow :: default ( ) ,
1034- } ;
1033+ } ) ;
10351034
10361035 let ContentDrawResult {
10371036 override_parent_cursor,
1038- output : ( panes_primitive, content_mouse_interaction) ,
1037+ // output: (panes_primitive, content_mouse_interaction),
10391038 } = C :: draw_panes ( element, tree, self , theme, style, layout, cursor, viewport) ;
10401039
1041- if override_parent_cursor {
1042- mouse_interaction = content_mouse_interaction;
1043- } else {
1044- mouse_interaction = std:: cmp:: max ( mouse_interaction, content_mouse_interaction) ;
1045- } ;
1040+ // if override_parent_cursor {
1041+ // mouse_interaction = content_mouse_interaction;
1042+ // } else {
1043+ // mouse_interaction = std::cmp::max(mouse_interaction, content_mouse_interaction);
1044+ // };
10461045
1047- let primitives = vec ! [ background_primitive, panes_primitive] ;
1046+ // let primitives = vec![background_primitive, panes_primitive];
10481047
1049- ( Primitive :: Group { primitives } , mouse_interaction)
1048+ ( background_primitive /* Originally ` primitives` */ , mouse_interaction)
10501049 }
10511050}
10521051
0 commit comments