pub struct Canvas<F> { /* private fields */ }
Expand description
Struct for canvas
Trait Implementations
sourceimpl<F> View for Canvas<F> where
F: Fn(LocalRect, &mut VGER),
impl<F> View for Canvas<F> where
F: Fn(LocalRect, &mut VGER),
sourcefn print(&self, _id: ViewID, _cx: &mut Context)
fn print(&self, _id: ViewID, _cx: &mut Context)
Prints a description of the view for debugging.
sourcefn process(
&self,
_event: &Event,
_id: ViewID,
_cx: &mut Context,
_vger: &mut VGER
)
fn process(
&self,
_event: &Event,
_id: ViewID,
_cx: &mut Context,
_vger: &mut VGER
)
Processes an event.
sourcefn layout(
&self,
id: ViewID,
sz: LocalSize,
cx: &mut Context,
_vger: &mut VGER
) -> LocalSize
fn layout(
&self,
id: ViewID,
sz: LocalSize,
cx: &mut Context,
_vger: &mut VGER
) -> LocalSize
Lays out subviews and return the size of the view.
sourcefn hittest(
&self,
id: ViewID,
pt: LocalPoint,
cx: &mut Context,
_vger: &mut VGER
) -> Option<ViewID>
fn hittest(
&self,
id: ViewID,
pt: LocalPoint,
cx: &mut Context,
_vger: &mut VGER
) -> Option<ViewID>
Returns the topmost view which the point intersects.
sourcefn commands(&self, _id: ViewID, _cx: &mut Context, _cmds: &mut Vec<CommandInfo>)
fn commands(&self, _id: ViewID, _cx: &mut Context, _cmds: &mut Vec<CommandInfo>)
Accumulates information about menu bar commands.
Auto Trait Implementations
impl<F> RefUnwindSafe for Canvas<F> where
F: RefUnwindSafe,
impl<F> Send for Canvas<F> where
F: Send,
impl<F> Sync for Canvas<F> where
F: Sync,
impl<F> Unpin for Canvas<F> where
F: Unpin,
impl<F> UnwindSafe for Canvas<F> where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more