pub struct CanvasPaintModel { /* private fields */ }Implementations§
Source§impl CanvasPaintModel
impl CanvasPaintModel
pub fn new(document: CanvasDocument, viewport: CanvasViewport) -> Self
pub fn new_with_kind_registry( document: CanvasDocument, viewport: CanvasViewport, kind_registry: CanvasKindRegistry, ) -> Self
pub fn new_with_router<R>(
document: CanvasDocument,
viewport: CanvasViewport,
router: &R,
) -> Selfwhere
R: CanvasEdgeRouter + ?Sized,
pub fn new_with_router_and_kind_registry<R>(
document: CanvasDocument,
viewport: CanvasViewport,
router: &R,
kind_registry: CanvasKindRegistry,
) -> Selfwhere
R: CanvasEdgeRouter + ?Sized,
pub fn document(&self) -> &CanvasDocument
pub fn runtime(&self) -> &CanvasRuntime
pub fn kind_registry(&self) -> &CanvasKindRegistry
pub fn viewport(&self) -> CanvasViewport
pub fn interaction(&self) -> &CanvasPaintInteraction
pub fn with_interaction(self, interaction: CanvasPaintInteraction) -> Self
pub fn with_selection(self, selection: CanvasSelection) -> Self
Trait Implementations§
Source§impl Clone for CanvasPaintModel
impl Clone for CanvasPaintModel
Source§fn clone(&self) -> CanvasPaintModel
fn clone(&self) -> CanvasPaintModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CanvasPaintModel
impl Debug for CanvasPaintModel
Source§impl From<&CanvasEditor> for CanvasPaintModel
impl From<&CanvasEditor> for CanvasPaintModel
Source§fn from(editor: &CanvasEditor) -> Self
fn from(editor: &CanvasEditor) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CanvasPaintModel
impl !UnwindSafe for CanvasPaintModel
impl Freeze for CanvasPaintModel
impl Send for CanvasPaintModel
impl Sync for CanvasPaintModel
impl Unpin for CanvasPaintModel
impl UnsafeUnpin for CanvasPaintModel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more