pub fn add_widget<W: WidgetTrait<'a>>(&self, w: &W) -> &Self {
        let (obj_w_1, _funcs) = w.get_widget_obj_funcs();

        let (obj_data, funcs) = self.get_layout_obj_funcs();
        unsafe {
            ((*funcs).add_widget)(obj_data, obj_w_1);
        }
        self
    }
///
/// Adds widget *w* to this layout in a manner specific to the
/// layout. This function uses addItem().
Adds widget *w* to this layout in a manner specific to the
layout. This function uses addItem().
Adds widget * w * to this layout in a manner specific to the layout . This function uses addItem () .
pub fn add_widget<W: WidgetTrait<'a>>(&self, w: &W) -> &Self {
        let (obj_w_1, _funcs) = w.get_widget_obj_funcs();
        let (obj_data, funcs) = self.get_layout_obj_funcs();
        unsafe {
            ((*funcs).add_widget)(obj_data, obj_w_1);
        }
        self
    }
pub fn add_widget < W : WidgetTrait < ' a > > ( & self , w : & W ) -> & Self { let ( obj_w_1 , _funcs ) = w . get_widget_obj_funcs ( ) ; let ( obj_data , funcs ) = self . get_layout_obj_funcs ( ) ; unsafe { ( ( * funcs ) . add_widget ) ( obj_data , obj_w_1 ) ; } self }
Adds widget *w* to this layout in a manner specific to the
layout.
Adds widget * w * to this layout in a manner specific to the layout .
&self
w
&W
&self
w
&W