[][src]Enum kas::draw::TextClass

pub enum TextClass {
    Label,
    LabelSingle,
    Button,
    Edit,
    EditMulti,
}

Class of text drawn

Themes choose font, font size, colour, and alignment based on this.

Variants

Label

Label text is drawn over the background colour

LabelSingle

Single-line label which does not want to stretch vertically

Button

Button text is drawn over a button

Edit

Class of text drawn in a single-line edit box

EditMulti

Class of text drawn in a multi-line edit box

Implementations

impl TextClass[src]

pub fn line_wrap(self) -> bool[src]

True if text should be automatically line-wrapped

Trait Implementations

impl Clone for TextClass[src]

impl Copy for TextClass[src]

impl Debug for TextClass[src]

impl Default for TextClass[src]

Default class: Label

impl Eq for TextClass[src]

impl Hash for TextClass[src]

impl Ord for TextClass[src]

impl PartialEq<TextClass> for TextClass[src]

impl PartialOrd<TextClass> for TextClass[src]

impl StructuralEq for TextClass[src]

impl StructuralPartialEq for TextClass[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.