[][src]Enum makepad_render::Area

pub enum Area {
    Empty,
    All,
    Instance(InstanceArea),
    View(ViewArea),
}

Variants

Empty
All
Instance(InstanceArea)
View(ViewArea)

Methods

impl Area[src]

pub fn is_empty(&self) -> bool[src]

pub fn is_valid(&self, cx: &Cx) -> bool[src]

pub fn get_local_scroll_pos(&self, cx: &Cx) -> Vec2[src]

pub fn get_scroll_pos(&self, cx: &Cx) -> Vec2[src]

pub fn get_rect(&self, cx: &Cx) -> Rect[src]

pub fn abs_to_rel(&self, cx: &Cx, abs: Vec2) -> Vec2[src]

pub fn set_rect(&self, cx: &mut Cx, rect: &Rect)[src]

pub fn get_instance_offset(
    &self,
    cx: &Cx,
    prop_ident: InstanceType
) -> Option<usize>
[src]

pub fn get_uniform_offset(
    &self,
    cx: &Cx,
    prop_ident: UniformType
) -> Option<usize>
[src]

pub fn get_read_ref<'a>(&self, cx: &'a Cx) -> Option<InstanceReadRef<'a>>[src]

pub fn get_write_ref<'a>(&self, cx: &'a mut Cx) -> Option<InstanceWriteRef<'a>>[src]

pub fn get_uniform_write_ref<'a>(
    &self,
    cx: &'a mut Cx
) -> Option<&'a mut Vec<f32>>
[src]

pub fn write_float(&self, cx: &mut Cx, prop_ident: InstanceFloat, value: f32)[src]

pub fn read_float(&self, cx: &Cx, prop_ident: InstanceFloat) -> f32[src]

pub fn write_vec2(&self, cx: &mut Cx, prop_ident: InstanceVec2, value: Vec2)[src]

pub fn read_vec2(&self, cx: &Cx, prop_ident: InstanceVec2) -> Vec2[src]

pub fn write_vec3(&self, cx: &mut Cx, prop_ident: InstanceVec3, value: Vec3)[src]

pub fn read_vec3(&self, cx: &Cx, prop_ident: InstanceVec3) -> Vec3[src]

pub fn write_vec4(&self, cx: &mut Cx, prop_ident: InstanceVec4, value: Vec4)[src]

pub fn read_vec4(&self, cx: &Cx, prop_ident: InstanceVec4) -> Vec4[src]

pub fn write_color(&self, cx: &mut Cx, prop_ident: InstanceColor, value: Color)[src]

pub fn read_color(&self, cx: &Cx, prop_ident: InstanceColor) -> Color[src]

pub fn write_uniform_float(&self, cx: &mut Cx, prop_ident: UniformFloat, v: f32)[src]

Trait Implementations

impl Clone for Area[src]

impl Copy for Area[src]

impl Debug for Area[src]

impl Default for Area[src]

impl Into<Area> for InstanceArea[src]

impl PartialEq<Area> for Area[src]

impl StructuralPartialEq for Area[src]

Auto Trait Implementations

impl RefUnwindSafe for Area

impl Send for Area

impl Sync for Area

impl Unpin for Area

impl UnwindSafe for Area

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.