pub enum Area {
Empty,
Instance(InstanceArea),
Rect(RectArea),
}
Variants§
Implementations§
Source§impl Area
impl Area
pub fn area(&self) -> Area
pub fn redraw(&self, cx: &mut Cx)
pub fn valid_instance(&self, cx: &Cx) -> Option<&InstanceArea>
pub fn is_empty(&self) -> bool
pub fn draw_list_id(&self) -> Option<DrawListId>
pub fn redraw_id(&self) -> Option<u64>
pub fn is_first_instance(&self) -> bool
pub fn is_valid(&self, cx: &Cx) -> bool
pub fn clipped_rect(&self, cx: &Cx) -> Rect
pub fn rect(&self, cx: &Cx) -> Rect
pub fn abs_to_rel(&self, cx: &Cx, abs: DVec2) -> DVec2
pub fn set_rect(&self, cx: &mut Cx, rect: &Rect)
pub fn get_read_ref<'a>( &self, cx: &'a Cx, id: LiveId, ty: ShaderTy, ) -> Option<DrawReadRef<'a>>
pub fn get_write_ref<'a>( &self, cx: &'a mut Cx, id: LiveId, ty: ShaderTy, name: &str, ) -> Option<DrawWriteRef<'a>>
Trait Implementations§
Source§impl Into<Area> for InstanceArea
impl Into<Area> for InstanceArea
Source§impl Ord for Area
impl Ord for Area
Source§impl PartialOrd for Area
impl PartialOrd for Area
impl Copy for Area
impl Eq 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> ActionTrait for T
impl<T> ActionTrait for T
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