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,
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,
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
source§impl Renderable for TabViewItem
impl Renderable for TabViewItem
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>,
source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
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
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
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
§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere T: ?Sized,
§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling [Attribute] value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi [Quirk] value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the [Condition] value
applies. Replaces any previous condition.
See the crate level docs for more details.
Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);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>>
OutOfBounds error is returned which contains
the unclamped color. Read more