Struct DrawList2d

Source
pub struct DrawList2d { /* private fields */ }

Implementations§

Source§

impl DrawList2d

Source

pub fn draw_list_id(&self) -> DrawListId

Source

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

Source

pub fn begin_overlay_last(&mut self, cx: &mut Cx2d<'_>)

Source

pub fn begin_overlay_reuse(&mut self, cx: &mut Cx2d<'_>)

Source

pub fn begin_overlay_inner(&mut self, cx: &mut Cx2d<'_>, always_last: bool)

Source

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

Source

pub fn begin(&mut self, cx: &mut Cx2d<'_>, walk: Walk) -> Result<(), ()>

Source

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

Source

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

Source

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

Source

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

Trait Implementations§

Source§

impl Debug for DrawList2d

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl LiveApply for DrawList2d

Source§

fn apply( &mut self, cx: &mut Cx, from: ApplyFrom, start_index: usize, nodes: &[LiveNode], ) -> usize

Source§

fn apply_over(&mut self, cx: &mut Cx, nodes: &[LiveNode])

Source§

impl LiveHook for DrawList2d

Source§

fn before_live_design(_cx: &mut Cx)

Source§

fn apply_value_unknown( &mut self, cx: &mut Cx, _apply_from: ApplyFrom, index: usize, nodes: &[LiveNode], ) -> usize

Source§

fn apply_value_instance( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, index: usize, nodes: &[LiveNode], ) -> usize

Source§

fn skip_apply( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, _index: usize, _nodes: &[LiveNode], ) -> Option<usize>

Source§

fn before_apply( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, _index: usize, _nodes: &[LiveNode], )

Source§

fn after_apply( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, _index: usize, _nodes: &[LiveNode], )

Source§

fn after_apply_from(&mut self, cx: &mut Cx, apply_from: ApplyFrom)

Source§

fn after_new_from_doc(&mut self, _cx: &mut Cx)

Source§

fn after_new_before_apply(&mut self, _cx: &mut Cx)

Source§

impl LiveNew for DrawList2d

Source§

fn new(cx: &mut Cx) -> DrawList2d

Source§

fn live_type_info(_cx: &mut Cx) -> LiveTypeInfo

Source§

fn live_design_with(_cx: &mut Cx)

Source§

fn new_apply( cx: &mut Cx, from: ApplyFrom, index: usize, nodes: &[LiveNode], ) -> Self
where Self: Sized,

Source§

fn new_apply_mut_index( cx: &mut Cx, from: ApplyFrom, index: &mut usize, nodes: &[LiveNode], ) -> Self
where Self: Sized,

Source§

fn new_from_ptr(cx: &mut Cx, live_ptr: Option<LivePtr>) -> Self
where Self: Sized,

Source§

fn new_main(cx: &mut Cx) -> Self
where Self: Sized,

Source§

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

Source§

fn new_local(cx: &mut Cx) -> Self
where Self: Sized,

Source§

fn new_from_module( cx: &mut Cx, module_id: LiveModuleId, id: LiveId, ) -> Option<Self>
where Self: Sized,

Source§

fn update_from_module( &mut self, cx: &mut Cx, module_id: LiveModuleId, id: LiveId, )

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.