Struct kiss_ui::container::Horizontal [] [src]

pub struct Horizontal(_);

A container widget that lines up its children from left to right.

Methods

impl Horizontal

fn new<C>(children: C) -> Horizontal where C: AsRef<[BaseWidget]>

Create a new horizontal container with the given vector or array of children, which may also be empty.

See the children![] macro in this crate for more info.

fn set_valign(self, valign: VAlign) -> Self

fn set_elem_spacing_pixels(self, spacing: u32) -> Self

Trait Implementations

impl Widget for Horizontal

fn show(self) -> Self

fn hide(self) -> Self

fn set_visible(self, visible: bool) -> Self

fn set_enabled(self, enabled: bool) -> Self

fn set_position(self, x: i32, y: i32) -> Self

fn get_position(self) -> (i32, i32)

fn set_name(self, name: &str) -> Self

fn get_name(&self) -> Option<WidgetStr>

fn get_sibling(self) -> Option<BaseWidget>

fn get_parent(self) -> Option<BaseWidget>

fn get_dialog(self) -> Option<Dialog>

fn get_size_pixels(self) -> (u32, u32)

fn store<N: Into<String>>(self, name: N) -> Option<BaseWidget>

fn to_base(self) -> BaseWidget

impl Copy for Horizontal

impl Clone for Horizontal

fn clone(&self) -> Self

fn clone_from(&mut self, source: &Self)

impl Downcast for Horizontal

fn can_downcast(base: &BaseWidget) -> bool

fn try_downcast(base: BaseWidget) -> Result<Self, BaseWidget>