Struct penrose_ui::core::TextStyle
source · pub struct TextStyle {
pub fg: Color,
pub bg: Option<Color>,
pub padding: (u32, u32),
}
Expand description
Fields§
§fg: Color
The foreground color to be used for rendering the text itself.
bg: Option<Color>
The background color for the region behind the text (defaults to the Draw background if None).
padding: (u32, u32)
Padding in pixels around the text to the left and right.
Trait Implementations§
source§impl PartialEq for TextStyle
impl PartialEq for TextStyle
impl Copy for TextStyle
impl Eq for TextStyle
impl StructuralPartialEq for TextStyle
Auto Trait Implementations§
impl Freeze for TextStyle
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnwindSafe for TextStyle
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