Trait DrawListExt

Source
pub trait DrawListExt {
    // Required methods
    fn draw_list_id(&self) -> DrawListId;
    fn set_view_transform(&self, cx: &mut Cx, mat: &Mat4);
    fn begin_always(&mut self, cx: &mut CxDraw<'_>);
    fn begin_maybe(
        &mut self,
        cx: &mut CxDraw<'_>,
        will_redraw: bool,
    ) -> Result<(), ()>;
    fn end(&mut self, cx: &mut CxDraw<'_>);
    fn get_view_transform(&self, cx: &Cx) -> Mat4;
    fn redraw(&self, cx: &mut Cx);
    fn redraw_self_and_children(&self, cx: &mut Cx);
}

Required Methods§

Source

fn draw_list_id(&self) -> DrawListId

Source

fn set_view_transform(&self, cx: &mut Cx, mat: &Mat4)

Source

fn begin_always(&mut self, cx: &mut CxDraw<'_>)

Source

fn begin_maybe( &mut self, cx: &mut CxDraw<'_>, will_redraw: bool, ) -> Result<(), ()>

Source

fn end(&mut self, cx: &mut CxDraw<'_>)

Source

fn get_view_transform(&self, cx: &Cx) -> Mat4

Source

fn redraw(&self, cx: &mut Cx)

Source

fn redraw_self_and_children(&self, cx: &mut Cx)

Implementors§