pub enum Area {
Empty,
All,
Instance(InstanceArea),
View(ViewArea),
}
Variants§
Implementations§
Source§impl Area
impl Area
pub fn is_empty(&self) -> bool
pub fn is_valid(&self, cx: &Cx) -> bool
pub fn get_local_scroll_pos(&self, cx: &Cx) -> Vec2
pub fn get_scroll_pos(&self, cx: &Cx) -> Vec2
pub fn get_rect(&self, cx: &Cx) -> Rect
pub fn abs_to_rel(&self, cx: &Cx, abs: Vec2) -> Vec2
pub fn set_rect(&self, cx: &mut Cx, rect: &Rect)
pub fn get_instance_offset( &self, cx: &Cx, prop_ident: InstanceType, ) -> Option<usize>
pub fn get_uniform_offset( &self, cx: &Cx, prop_ident: UniformType, ) -> Option<usize>
pub fn get_read_ref<'a>(&self, cx: &'a Cx) -> Option<InstanceReadRef<'a>>
pub fn get_write_ref<'a>(&self, cx: &'a mut Cx) -> Option<InstanceWriteRef<'a>>
pub fn get_uniform_write_ref<'a>( &self, cx: &'a mut Cx, ) -> Option<&'a mut Vec<f32>>
pub fn write_float(&self, cx: &mut Cx, prop_ident: InstanceFloat, value: f32)
pub fn read_float(&self, cx: &Cx, prop_ident: InstanceFloat) -> f32
pub fn write_vec2(&self, cx: &mut Cx, prop_ident: InstanceVec2, value: Vec2)
pub fn read_vec2(&self, cx: &Cx, prop_ident: InstanceVec2) -> Vec2
pub fn write_vec3(&self, cx: &mut Cx, prop_ident: InstanceVec3, value: Vec3)
pub fn read_vec3(&self, cx: &Cx, prop_ident: InstanceVec3) -> Vec3
pub fn write_vec4(&self, cx: &mut Cx, prop_ident: InstanceVec4, value: Vec4)
pub fn read_vec4(&self, cx: &Cx, prop_ident: InstanceVec4) -> Vec4
pub fn write_color(&self, cx: &mut Cx, prop_ident: InstanceColor, value: Color)
pub fn read_color(&self, cx: &Cx, prop_ident: InstanceColor) -> Color
pub fn write_uniform_float(&self, cx: &mut Cx, prop_ident: UniformFloat, v: f32)
Trait Implementations§
Source§impl Into<Area> for InstanceArea
impl Into<Area> for InstanceArea
impl Copy for Area
impl StructuralPartialEq for Area
Auto Trait Implementations§
impl Freeze for Area
impl RefUnwindSafe for Area
impl Send for Area
impl Sync for Area
impl Unpin for Area
impl UnwindSafe for Area
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more