Enum makepad_widgets::Area
pub enum Area {
Empty,
Instance(InstanceArea),
Rect(RectArea),
}
Variants§
Implementations§
§impl Area
impl 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 is_first_instance(&self) -> bool
pub fn is_valid(&self, cx: &Cx) -> bool
pub fn get_clipped_rect(&self, cx: &Cx) -> Rect
pub fn get_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§
§impl Into<Area> for InstanceArea
impl Into<Area> for InstanceArea
§impl Ord for Area
impl Ord for Area
§impl PartialOrd<Area> for Area
impl PartialOrd<Area> for Area
§fn partial_cmp(&self, other: &Area) -> Option<Ordering>
fn partial_cmp(&self, other: &Area) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Area
impl Eq for Area
impl StructuralEq for Area
impl StructuralPartialEq for Area
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§
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