pub struct Style { /* private fields */ }
Implementations
sourceimpl Style
impl Style
pub const fn new() -> Style
pub const fn border_style(self, border_style: BorderStyle) -> Style
pub const fn text_align(self, text_align: TextAlign) -> Style
pub const fn padding(self, padding: usize) -> Self
pub const fn padding_left(self, padding: usize) -> Self
pub const fn padding_top(self, padding: usize) -> Self
pub const fn padding_right(self, padding: usize) -> Self
pub const fn padding_bottom(self, padding: usize) -> Self
pub const fn color(self, color: u32) -> Self
pub const fn background(self, color: u32) -> Self
pub const fn border_color(self, color: u32) -> Self
pub const fn border_background(self, color: u32) -> Self
pub const fn border(self, border: usize) -> Self
pub const fn border_left(self, left: usize) -> Self
pub const fn border_top(self, top: usize) -> Self
pub const fn border_right(self, right: usize) -> Self
pub const fn border_bottom(self, bottom: usize) -> Self
pub const fn width(self, width: usize) -> Self
pub const fn height(self, height: usize) -> Self
pub fn render(&self, text: &str)
pub fn render_at_position(&self, x: u16, y: u16, text: &str)
pub fn measure(&self, text: &str) -> (usize, usize)
pub const fn bold(self) -> Self
pub const fn italic(self) -> Self
pub const fn underline(self) -> Self
pub const fn strikethrough(self) -> Self
Auto Trait Implementations
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more