pub struct Title { /* private fields */ }
Expand description
Title component, including main title and subtitle.
Implementations§
Source§impl Title
impl Title
pub fn new() -> Self
pub fn show(self, show: bool) -> Self
pub fn text<S: Into<String>>(self, text: S) -> Self
pub fn link<S: Into<String>>(self, link: S) -> Self
pub fn target<T: Into<LinkTarget>>(self, target: T) -> Self
pub fn text_style<S: Into<TextStyle>>(self, text_style: S) -> Self
pub fn subtext<S: Into<String>>(self, subtext: S) -> Self
pub fn sublink<S: Into<String>>(self, sublink: S) -> Self
pub fn subtarget<T: Into<LinkTarget>>(self, subtarget: T) -> Self
pub fn subtext_style<S: Into<TextStyle>>(self, subtext_style: S) -> Self
pub fn text_align<A: Into<TextAlign>>(self, text_align: A) -> Self
pub fn text_vertical_align<A: Into<TextVerticalAlign>>( self, text_vertical_align: A, ) -> Self
pub fn padding<P: Into<Padding>>(self, padding: P) -> Self
pub fn item_gap<F: Into<i64>>(self, item_gap: F) -> Self
pub fn zlevel<F: Into<i64>>(self, zlevel: F) -> Self
pub fn z<F: Into<i64>>(self, z: F) -> Self
pub fn left<C: Into<CompositeValue>>(self, left: C) -> Self
pub fn top<C: Into<CompositeValue>>(self, top: C) -> Self
pub fn right<C: Into<CompositeValue>>(self, right: C) -> Self
pub fn bottom<C: Into<CompositeValue>>(self, bottom: C) -> Self
pub fn background_color<C: Into<Color>>(self, background_color: C) -> Self
pub fn border_color<C: Into<Color>>(self, border_color: C) -> Self
pub fn border_width<F: Into<i64>>(self, border_width: F) -> Self
pub fn border_radius<F: Into<i64>>(self, border_radius: F) -> Self
pub fn shadow_color<C: Into<Color>>(self, shadow_color: C) -> Self
pub fn shadow_blur<F: Into<i64>>(self, shadow_blur: F) -> Self
pub fn shadow_offset_x<F: Into<i64>>(self, shadow_offset_x: F) -> Self
pub fn shadow_offset_y<F: Into<i64>>(self, shadow_offset_y: F) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Title
impl RefUnwindSafe for Title
impl Send for Title
impl Sync for Title
impl Unpin for Title
impl UnwindSafe for Title
Blanket Implementations§
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more