[][src]Struct makepad_render::Quad

pub struct Quad {
    pub shader: Shader,
    pub z: f32,
    pub color: Color,
}

Fields

shader: Shaderz: f32color: Color

Methods

impl Quad[src]

pub fn proto_with_shader(cx: &mut Cx, shader: ShaderGen, name: &str) -> Self[src]

pub fn new(cx: &mut Cx) -> Self[src]

pub fn instance_x() -> InstanceFloat[src]

pub fn instance_y() -> InstanceFloat[src]

pub fn instance_w() -> InstanceFloat[src]

pub fn instance_h() -> InstanceFloat[src]

pub fn instance_z() -> InstanceFloat[src]

pub fn instance_color() -> InstanceColor[src]

pub fn def_quad_shader() -> ShaderGen[src]

pub fn begin_quad(&mut self, cx: &mut Cx, layout: Layout) -> InstanceArea[src]

pub fn end_quad(&mut self, cx: &mut Cx, inst: &InstanceArea) -> Area[src]

pub fn begin_quad_fill(&mut self, cx: &mut Cx) -> InstanceArea[src]

pub fn end_quad_fill(&mut self, cx: &mut Cx, inst: &InstanceArea) -> Area[src]

pub fn draw_quad(&mut self, cx: &mut Cx, walk: Walk) -> InstanceArea[src]

pub fn draw_quad_rel(&mut self, cx: &mut Cx, rect: Rect) -> InstanceArea[src]

pub fn draw_quad_abs(&mut self, cx: &mut Cx, rect: Rect) -> InstanceArea[src]

Trait Implementations

impl Clone for Quad[src]

Auto Trait Implementations

impl RefUnwindSafe for Quad

impl Send for Quad

impl Sync for Quad

impl Unpin for Quad

impl UnwindSafe for Quad

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.