[][src]Struct glk::types::style

pub struct style(pub u32);

Newtype for Glk style

Methods

impl style[src]

pub const Normal: Self[src]

The style of normal or body text. A new window or stream always starts with style_Normal as

  • the current style.

pub const Emphasized: Self[src]

Text which is emphasized.

pub const Preformatted: Self[src]

Text which has a particular arrangement of characters.

pub const Header: Self[src]

Text which introduces a large section. This is suitable for the title of an entire game, or

  • a major division such as a chapter.

pub const Subheader: Self[src]

Text which introduces a smaller section within a large section.

pub const Alert: Self[src]

Text which warns of a dangerous condition, or one which the player should pay attention to.

pub const Note: Self[src]

Text which notifies of an interesting condition.

pub const BlockQuote: Self[src]

Text which forms a quotation or otherwise abstracted text.

pub const Input: Self[src]

Text which the player has entered. You should generally not use this style at all, except

  • when simulating user input from a file.

pub const User1: Self[src]

This style has no particular semantic meaning. You may define a meaning relevant to your

  • own work, and use it as you see fit.

pub const User2: Self[src]

Another style available for your use.

pub const NUMSTYLES: Self[src]

Number of pre-defined styles, for defining fixed-size arrays.

Trait Implementations

impl Clone for style[src]

impl Copy for style[src]

impl Eq for style[src]

impl PartialEq<style> for style[src]

impl Debug for style[src]

impl StructuralPartialEq for style[src]

impl StructuralEq for style[src]

Auto Trait Implementations

impl Send for style

impl Sync for style

impl Unpin for style

impl UnwindSafe for style

impl RefUnwindSafe for style

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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