[][src]Enum megaui::DrawCommand

pub enum DrawCommand {
    DrawLabel {
        position: Vector2,
        label: String,
        params: LabelParams,
    },
    DrawRect {
        rect: Rect,
        stroke: Option<Color>,
        fill: Option<Color>,
    },
    DrawLine {
        start: Vector2,
        end: Vector2,
        color: Color,
    },
    DrawRawTexture {
        position: Vector2,
        size: Vector2,
        texture: u32,
    },
    Clip {
        rect: Option<Rect>,
    },
}

Variants

DrawLabel

Fields of DrawLabel

position: Vector2label: Stringparams: LabelParams
DrawRect

Fields of DrawRect

rect: Rectstroke: Option<Color>fill: Option<Color>
DrawLine

Fields of DrawLine

start: Vector2end: Vector2color: Color
DrawRawTexture

Fields of DrawRawTexture

position: Vector2size: Vector2texture: u32
Clip

Fields of Clip

rect: Option<Rect>

Methods

impl DrawCommand[src]

pub fn offset(&self, offset: Vector2) -> DrawCommand[src]

Trait Implementations

impl Clone for DrawCommand[src]

impl Debug for DrawCommand[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.