Struct widgetry::widgets::panel::PanelBuilder [−][src]
pub struct PanelBuilder { top_level: Widget, horiz: HorizontalAlignment, vert: VerticalAlignment, dims: Dims, }
Fields
top_level: Widget
horiz: HorizontalAlignment
vert: VerticalAlignment
dims: Dims
Implementations
impl PanelBuilder
[src]
impl PanelBuilder
[src]pub fn build(self, ctx: &mut EventCtx<'_>) -> Panel
[src]
pub fn build_custom(self, ctx: &mut EventCtx<'_>) -> Panel
[src]
pub fn aligned(
self,
horiz: HorizontalAlignment,
vert: VerticalAlignment
) -> PanelBuilder
[src]
self,
horiz: HorizontalAlignment,
vert: VerticalAlignment
) -> PanelBuilder
pub fn aligned_pair(
self,
pair: (HorizontalAlignment, VerticalAlignment)
) -> PanelBuilder
[src]
self,
pair: (HorizontalAlignment, VerticalAlignment)
) -> PanelBuilder
pub fn max_size(self, width: Percent, height: Percent) -> PanelBuilder
[src]
pub fn exact_size_percent(
self,
pct_width: usize,
pct_height: usize
) -> PanelBuilder
[src]
self,
pct_width: usize,
pct_height: usize
) -> PanelBuilder