Struct viewy::components::TabViewItem
source · pub struct TabViewItem {
pub id: Uuid,
pub title: String,
pub icon: Option<Box<dyn IconPack>>,
pub open: bool,
/* private fields */
}Fields§
§id: Uuid§title: String§icon: Option<Box<dyn IconPack>>§open: boolImplementations§
source§impl TabViewItem
impl TabViewItem
Trait Implementations§
source§impl Appendable for TabViewItem
impl Appendable for TabViewItem
source§fn append_child<C>(&mut self, child: C) -> Selfwhere
C: 'static + Renderable,
fn append_child<C>(&mut self, child: C) -> Selfwhere C: 'static + Renderable,
Adds a node to the end of the list of children of a specified parent node. Read more
source§fn prepend_child<C>(&mut self, child: C) -> Selfwhere
C: 'static + Renderable,
fn prepend_child<C>(&mut self, child: C) -> Selfwhere C: 'static + Renderable,
Adds a node before the first child of the list of children of a specified parent node. Read more
source§impl ChildContainer for TabViewItem
impl ChildContainer for TabViewItem
fn get_children(&mut self) -> &mut Vec<Box<dyn Renderable>>
source§impl Clone for TabViewItem
impl Clone for TabViewItem
source§fn clone(&self) -> TabViewItem
fn clone(&self) -> TabViewItem
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TabViewItem
impl Debug for TabViewItem
source§impl DefaultModifiers<TabViewItem> for TabViewItem
impl DefaultModifiers<TabViewItem> for TabViewItem
fn id(&mut self, id: &str) -> Self
fn color(&mut self, color: &str) -> Self
fn opacity(&mut self, opacity: f32) -> Self
fn add_class(&mut self, class_name: &str) -> Self
fn remove_class(&mut self, class_name: &str) -> Self
fn position(&mut self, position: Position) -> Self
fn padding(&mut self, padding: Vec<i32>) -> Self
fn padding_top(&mut self, value: i32) -> Self
fn padding_bottom(&mut self, value: i32) -> Self
fn padding_left(&mut self, value: i32) -> Self
fn padding_right(&mut self, value: i32) -> Self
fn margin(&mut self, margin: Vec<i32>) -> Self
fn margin_top(&mut self, value: i32) -> Self
fn margin_bottom(&mut self, value: i32) -> Self
fn margin_left(&mut self, value: i32) -> Self
fn margin_right(&mut self, value: i32) -> Self
fn width(&mut self, value: &str) -> Self
fn height(&mut self, value: &str) -> Self
fn min_width(&mut self, value: &str) -> Self
fn min_height(&mut self, value: &str) -> Self
fn max_width(&mut self, value: &str) -> Self
fn max_height(&mut self, value: &str) -> Self
fn sticky_to_top(&mut self, top: i32) -> Self
fn sticky_to_bottom(&mut self, bottom: i32) -> Self
fn align_self(&mut self, value: &str) -> Self
fn justify_self(&mut self, value: &str) -> Self
fn background_color(&mut self, color: &str) -> Self
fn display(&mut self, display: &str) -> Self
fn background_image(&mut self, url: &str) -> Self
fn background(&mut self, value: &str) -> Self
fn border(&mut self, value: &str) -> Self
fn border_left(&mut self, value: &str) -> Self
fn border_right(&mut self, value: &str) -> Self
fn border_bottom(&mut self, value: &str) -> Self
fn border_top(&mut self, value: &str) -> Self
fn tag(&mut self, tag_name: &str) -> Self
fn set_attr(&mut self, name: &str, value: &str) -> Self
fn unset_attr(&mut self, name: &str) -> Self
fn grid_area(&mut self, name: &str) -> Self
fn grid_column(&mut self, column: &str) -> Self
fn grid_row(&mut self, row: &str) -> Self
fn flex_grow(&mut self, value: i32) -> Self
fn line_height(&mut self, value: &str) -> Self
fn box_sizing(&mut self, value: &str) -> Self
fn border_radius(&mut self, value: &str) -> Self
fn text_align(&mut self, value: &str) -> Self
fn overflow(&mut self, overflow: Overflow) -> Self
fn popover(&mut self, popover: Popover) -> Self
fn popup(&mut self, popup: Popup) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for TabViewItem
impl Send for TabViewItem
impl Sync for TabViewItem
impl Unpin for TabViewItem
impl !UnwindSafe for TabViewItem
Blanket Implementations§
source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: FloatComponent, Swp: WhitePoint, Dwp: WhitePoint, D: AdaptFrom<S, Swp, Dwp, T>,
source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere U: FromColor<T>,
source§fn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere U: FromColorUnclamped<T>,
source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere U: TryFromColor<T>,
source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an
OutOfBounds error is returned which contains
the unclamped color. Read more