pub enum TextBlockStyle {
Caption,
Body,
BodyStrong,
BodyLarge,
BodyLargeStrong,
Subtitle,
Title,
TitleLarge,
Display,
}Expand description
One of WinUI’s text block styles; XAML {StaticResource BodyTextBlockStyle} and its siblings.
Variants§
Implementations§
Source§impl TextBlockStyle
impl TextBlockStyle
Sourcepub fn font(self, r: &ThemeResources) -> (f64, FontWeight)
pub fn font(self, r: &ThemeResources) -> (f64, FontWeight)
The style’s size and weight from TextBlock_themeresources.xaml: every style is based on BaseTextBlockStyle (SemiBold) and the body and caption styles set Normal.
Sourcepub fn text_style(self, r: &ThemeResources, color: Color) -> TextStyle
pub fn text_style(self, r: &ThemeResources, color: Color) -> TextStyle
The reveal text style in color (a TextBlock’s Foreground).
Trait Implementations§
Source§impl Clone for TextBlockStyle
impl Clone for TextBlockStyle
impl Copy for TextBlockStyle
Source§impl Debug for TextBlockStyle
impl Debug for TextBlockStyle
impl Eq for TextBlockStyle
Source§impl Hash for TextBlockStyle
impl Hash for TextBlockStyle
Source§impl PartialEq for TextBlockStyle
impl PartialEq for TextBlockStyle
impl StructuralPartialEq for TextBlockStyle
Auto Trait Implementations§
impl Forget for TextBlockStyle
impl Freeze for TextBlockStyle
impl Move for TextBlockStyle
impl RefUnwindSafe for TextBlockStyle
impl Send for TextBlockStyle
impl Sync for TextBlockStyle
impl Unpin for TextBlockStyle
impl UnsafeUnpin for TextBlockStyle
impl UnwindSafe for TextBlockStyle
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.