[][src]Struct termit_ui::graphics::Drawing

pub struct Drawing {
    pub text: String,
    pub scope: Window,
    pub style: Style,
}

Fields

text: Stringscope: Windowstyle: Style

Methods

impl Drawing[src]

pub fn new() -> Drawing[src]

pub fn with_style(self, style: Style) -> Self[src]

pub fn append(
    self,
    text: impl Display
) -> Self
[src]

pub fn with_text(
    self,
    text: impl Display
) -> Self
[src]

pub fn with_pos(self, position: Point) -> Self[src]

pub fn scope(self, scope: Window) -> Self[src]

pub fn size(self, size: Point) -> Self[src]

pub fn left(self, left: u16) -> Self[src]

pub fn top(self, top: u16) -> Self[src]

pub fn width(self, width: u16) -> Self[src]

pub fn height(self, height: u16) -> Self[src]

pub fn fg(
    self,
    foreground: impl Into<Option<Color>>
) -> Self
[src]

pub fn bg(
    self,
    background: impl Into<Option<Color>>
) -> Self
[src]

pub fn lines<'a>(&'a self) -> DrawingLines<'a>[src]

Important traits for DrawingSpots<'a>
pub fn spots<'a>(&'a self) -> DrawingSpots<'a>[src]

pub fn actual_width(&self) -> X[src]

Trait Implementations

impl Default for Drawing[src]

impl PartialEq<Drawing> for Drawing[src]

impl Eq for Drawing[src]

impl Clone for Drawing[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Drawing[src]

impl Hash for Drawing[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Drawing

impl Sync for Drawing

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.