macro_rules! impl_container_widgets {
() => {
fn create_scroll_area(
&self,
parent: ObjectId,
x: i32,
y: i32,
width: u32,
height: u32,
) -> ObjectId {
self.mount_widget_of_kind(WidgetKind::ScrollArea, parent, "", x, y, width, height)
}
#[cfg(widgets_unstripped)]
fn create_dock_panel(
&self,
parent: ObjectId,
x: i32,
y: i32,
width: u32,
height: u32,
) -> ObjectId {
self.mount_widget_of_kind(WidgetKind::DockPanel, parent, "", x, y, width, height)
}
#[cfg(widgets_unstripped)]
fn create_tab_widget(
&self,
parent: ObjectId,
x: i32,
y: i32,
width: u32,
height: u32,
) -> ObjectId {
self.mount_widget_of_kind(WidgetKind::TabWidget, parent, "", x, y, width, height)
}
#[cfg(widgets_unstripped)]
fn create_splitter(
&self,
parent: ObjectId,
x: i32,
y: i32,
width: u32,
height: u32,
) -> ObjectId {
self.mount_widget_of_kind(WidgetKind::Splitter, parent, "", x, y, width, height)
}
#[cfg(widgets_unstripped)]
fn create_stack_widget(
&self,
parent: ObjectId,
x: i32,
y: i32,
width: u32,
height: u32,
) -> ObjectId {
self.mount_widget_of_kind(WidgetKind::StackedWidget, parent, "", x, y, width, height)
}
#[cfg(widgets_unstripped)]
fn create_mdi_area(
&self,
parent: ObjectId,
x: i32,
y: i32,
width: u32,
height: u32,
) -> ObjectId {
self.mount_widget_of_kind(WidgetKind::MdiArea, parent, "", x, y, width, height)
}
#[cfg(widgets_unstripped)]
fn create_toolbox(
&self,
parent: ObjectId,
x: i32,
y: i32,
width: u32,
height: u32,
) -> ObjectId {
self.mount_widget_of_kind(WidgetKind::Toolbox, parent, "", x, y, width, height)
}
#[cfg(widgets_unstripped)]
fn create_collapsible_pane(
&self,
parent: ObjectId,
title: &str,
x: i32,
y: i32,
width: u32,
height: u32,
) -> ObjectId {
self.mount_widget_of_kind(WidgetKind::CollapsiblePane, parent, title, x, y, width, height)
}
#[cfg(widgets_unstripped)]
fn create_dock_widget(
&self,
parent: ObjectId,
title: &str,
x: i32,
y: i32,
width: u32,
height: u32,
) -> ObjectId {
self.mount_widget_of_kind(WidgetKind::DockWidget, parent, title, x, y, width, height)
}
};
}