[][src]Struct makepad_render::CxView

pub struct CxView {
    pub nesting_view_id: usize,
    pub redraw_id: u64,
    pub pass_id: usize,
    pub do_v_scroll: bool,
    pub do_h_scroll: bool,
    pub draw_calls: Vec<DrawCall>,
    pub draw_calls_len: usize,
    pub parent_scroll: Vec2,
    pub view_uniforms: ViewUniforms,
    pub unsnapped_scroll: Vec2,
    pub snapped_scroll: Vec2,
    pub platform: CxPlatformView,
    pub rect: Rect,
    pub clipped: bool,
}

Fields

nesting_view_id: usizeredraw_id: u64pass_id: usizedo_v_scroll: booldo_h_scroll: booldraw_calls: Vec<DrawCall>draw_calls_len: usizeparent_scroll: Vec2view_uniforms: ViewUniformsunsnapped_scroll: Vec2snapped_scroll: Vec2platform: CxPlatformViewrect: Rectclipped: bool

Methods

impl CxView[src]

pub fn initialize(&mut self, pass_id: usize, clipped: bool, redraw_id: u64)[src]

pub fn get_scrolled_rect(&self) -> Rect[src]

pub fn get_inverse_scrolled_rect(&self) -> Rect[src]

pub fn intersect_clip(&self, clip: (Vec2, Vec2)) -> (Vec2, Vec2)[src]

pub fn get_local_scroll(&self) -> Vec2[src]

pub fn def_uniforms(sg: ShaderGen) -> ShaderGen[src]

pub fn uniform_view_transform(&mut self, v: &Mat4)[src]

Trait Implementations

impl Clone for CxView[src]

impl Default for CxView[src]

Auto Trait Implementations

impl Send for CxView

impl Sync for CxView

impl Unpin for CxView

impl UnwindSafe for CxView

impl RefUnwindSafe for CxView

Blanket Implementations

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 = !

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]