[−][src]Enum makepad_render::Area
Variants
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]
&self,
cx: &Cx,
prop_ident: InstanceType
) -> Option<usize>
pub fn get_uniform_offset(
&self,
cx: &Cx,
prop_ident: UniformType
) -> Option<usize>
[src]
&self,
cx: &Cx,
prop_ident: UniformType
) -> Option<usize>
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]
&self,
cx: &'a mut Cx
) -> Option<&'a mut Vec<f32>>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,