Struct viewy::components::HStack[][src]

pub struct HStack {
    pub alignment: Alignment,
    // some fields omitted
}

Fields

alignment: Alignment

Implementations

impl HStack[src]

pub fn new(alignment: Alignment) -> Self[src]

pub fn justify_content(&mut self, justification: &str) -> Self[src]

pub fn gap(&mut self, gaps: Vec<i32>) -> Self[src]

Trait Implementations

impl Appendable for HStack[src]

fn append_child<C>(&mut self, child: C) -> Self where
    C: 'static + Renderable
[src]

Adds a node to the end of the list of children of a specified parent node. Read more

fn prepend_child<C>(&mut self, child: C) -> Self where
    C: 'static + Renderable
[src]

Adds a node before the first child of the list of children of a specified parent node. Read more

impl ChildContainer for HStack[src]

fn get_children(&mut self) -> &mut Vec<Box<dyn Renderable>>[src]

impl Clone for HStack[src]

fn clone(&self) -> HStack[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for HStack[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Default for HStack[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl DefaultModifiers<HStack> for HStack[src]

fn color(&mut self, color: &str) -> Self[src]

fn add_class(&mut self, class_name: &str) -> Self[src]

fn remove_class(&mut self, class_name: &str) -> Self[src]

fn padding(&mut self, padding: Vec<i32>) -> Self[src]

fn padding_top(&mut self, value: i32) -> Self[src]

fn padding_bottom(&mut self, value: i32) -> Self[src]

fn padding_left(&mut self, value: i32) -> Self[src]

fn padding_right(&mut self, value: i32) -> Self[src]

fn margin(&mut self, margin: Vec<i32>) -> Self[src]

fn margin_top(&mut self, value: i32) -> Self[src]

fn margin_bottom(&mut self, value: i32) -> Self[src]

fn margin_left(&mut self, value: i32) -> Self[src]

fn margin_right(&mut self, value: i32) -> Self[src]

fn width(&mut self, value: &str) -> Self[src]

fn height(&mut self, value: &str) -> Self[src]

fn min_width(&mut self, value: &str) -> Self[src]

fn min_height(&mut self, value: &str) -> Self[src]

fn max_width(&mut self, value: &str) -> Self[src]

fn max_height(&mut self, value: &str) -> Self[src]

fn sticky(&mut self, top: i32) -> Self[src]

fn align_self(&mut self, value: &str) -> Self[src]

fn justify_self(&mut self, value: &str) -> Self[src]

fn background_color(&mut self, color: &str) -> Self[src]

fn display(&mut self, display: &str) -> Self[src]

fn background_image(&mut self, url: &str) -> Self[src]

fn border(&mut self, value: &str) -> Self[src]

fn border_left(&mut self, value: &str) -> Self[src]

fn border_right(&mut self, value: &str) -> Self[src]

fn border_bottom(&mut self, value: &str) -> Self[src]

fn border_top(&mut self, value: &str) -> Self[src]

fn tag(&mut self, tag_name: &str) -> Self[src]

fn set_attr(&mut self, name: &str, value: &str) -> Self[src]

fn grid_area(&mut self, name: &str) -> Self[src]

fn grid_column(&mut self, column: i32) -> Self[src]

fn grid_row(&mut self, row: i32) -> Self[src]

fn flex_grow(&mut self, value: i32) -> Self[src]

fn overflow(&mut self, overflow: Overflow) -> Self[src]

fn popover(&mut self, popover: Popover) -> Self[src]

impl Renderable for HStack[src]

fn render(&self) -> Node[src]

fn to_html(&self) -> String[src]

Auto Trait Implementations

impl !RefUnwindSafe for HStack

impl !Send for HStack

impl !Sync for HStack

impl Unpin for HStack

impl !UnwindSafe for HStack

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> DynClone for T where
    T: Clone
[src]

pub fn __clone_box(&self, Private) -> *mut ()[src]

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V