1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
use crate::factory::FactoryView;
impl FactoryView for panel::Paned {
type Children = gtk::Widget;
type ReturnedWidget = gtk::Widget;
type Position = ();
fn factory_remove(&self, widget: >k::Widget) {
self.remove(widget);
}
fn factory_append(&self, widget: impl AsRef<gtk::Widget>, _: &()) -> gtk::Widget {
self.append(widget.as_ref());
widget.as_ref().clone()
}
fn factory_prepend(&self, widget: impl AsRef<gtk::Widget>, _: &()) -> gtk::Widget {
self.prepend(widget.as_ref());
widget.as_ref().clone()
}
fn factory_insert_after(
&self,
widget: impl AsRef<gtk::Widget>,
_: &(),
other: >k::Widget,
) -> gtk::Widget {
self.insert_after(widget.as_ref(), other);
widget.as_ref().clone()
}
fn returned_widget_to_child(root_child: >k::Widget) -> gtk::Widget {
root_child.clone()
}
fn factory_move_after(&self, widget: >k::Widget, other: >k::Widget) {
self.insert_after(widget, other);
}
fn factory_move_start(&self, widget: >k::Widget) {
self.insert(0, widget);
}
}