Enum rg3d_ui::message::TextMessage[][src]

pub enum TextMessage {
    Text(String),
    Wrap(bool),
    Font(SharedFont),
    VerticalAlignment(VerticalAlignment),
    HorizontalAlignment(HorizontalAlignment),
}

Variants

Text(String)
Wrap(bool)
VerticalAlignment(VerticalAlignment)
HorizontalAlignment(HorizontalAlignment)

Implementations

impl TextMessage[src]

pub fn text<M: MessageData, C: Control<M, C>>(
    destination: Handle<UINode<M, C>>,
    direction: MessageDirection,
    value: String
) -> UiMessage<M, C>
[src]

pub fn wrap<M: MessageData, C: Control<M, C>>(
    destination: Handle<UINode<M, C>>,
    direction: MessageDirection,
    value: bool
) -> UiMessage<M, C>
[src]

pub fn font<M: MessageData, C: Control<M, C>>(
    destination: Handle<UINode<M, C>>,
    direction: MessageDirection,
    value: SharedFont
) -> UiMessage<M, C>
[src]

pub fn vertical_alignment<M: MessageData, C: Control<M, C>>(
    destination: Handle<UINode<M, C>>,
    direction: MessageDirection,
    value: VerticalAlignment
) -> UiMessage<M, C>
[src]

pub fn horizontal_alignment<M: MessageData, C: Control<M, C>>(
    destination: Handle<UINode<M, C>>,
    direction: MessageDirection,
    value: HorizontalAlignment
) -> UiMessage<M, C>
[src]

Trait Implementations

impl Clone for TextMessage[src]

impl Debug for TextMessage[src]

impl PartialEq<TextMessage> for TextMessage[src]

impl StructuralPartialEq for TextMessage[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> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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<V, T> VZip<V> for T where
    V: MultiLane<T>,