[][src]Struct makepad_render::Blit

pub struct Blit {
    pub shader: Shader,
    pub min_x: f32,
    pub min_y: f32,
    pub max_x: f32,
    pub max_y: f32,
    pub alpha: f32,
    pub do_scroll: bool,
}

Fields

shader: Shadermin_x: f32min_y: f32max_x: f32max_y: f32alpha: f32do_scroll: bool

Methods

impl Blit[src]

pub fn style(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_min_x() -> InstanceFloat[src]

pub fn instance_min_y() -> InstanceFloat[src]

pub fn instance_max_x() -> InstanceFloat[src]

pub fn instance_max_y() -> InstanceFloat[src]

pub fn instance_z() -> InstanceFloat[src]

pub fn instance_color() -> InstanceColor[src]

pub fn uniform_alpha() -> UniformFloat[src]

pub fn def_blit_shader() -> ShaderGen[src]

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

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

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

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

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

Trait Implementations

impl Clone for Blit[src]

Auto Trait Implementations

impl RefUnwindSafe for Blit

impl Send for Blit

impl Sync for Blit

impl Unpin for Blit

impl UnwindSafe for Blit

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.