Struct flo::standard_tools::Eraser
[−]
[src]
pub struct Eraser { /* fields omitted */ }
TODO: really, we should make the eraser subtract from existing paths rather than drawing over the top (this means when moving things around, any erasings stick around: also when something is entire erased it should be removed from the drawing).
We need to add path arithmetic at least before this is possible to do, however.
The Eraser tool (Erasers control points of existing objects)
Methods
impl Eraser
[src]
Trait Implementations
impl<Anim: Animation + 'static> Tool<Anim> for Eraser
[src]
type ToolData = InkData
Represents data for the tool at a point in time (typically a snapshot of the model) Read more
type Model = InkModel
The type of the model used by the UI elements of this tool Read more
fn tool_name(&self) -> String
[src]
Retrieves the name of this tool Read more
fn image_name(&self) -> String
[src]
Retrieves the name of the image that is associated with this tool Read more
fn create_model(&self, _flo_model: Arc<FloModel<Anim>>) -> InkModel
[src]
Creates a new instance of the UI model for this tool Read more
[src]
Creates the menu controller for this tool (or None if this tool has no menu controller) Read more
ⓘImportant traits for Box<W>fn actions_for_model(
&self,
flo_model: Arc<FloModel<Anim>>,
tool_model: &InkModel
) -> Box<Stream<Item = ToolAction<InkData>, Error = ()> + Send>
[src]
&self,
flo_model: Arc<FloModel<Anim>>,
tool_model: &InkModel
) -> Box<Stream<Item = ToolAction<InkData>, Error = ()> + Send>
Returns a stream of tool actions that result from changes to the model Read more
ⓘImportant traits for Box<W>fn actions_for_input<'a>(
&'a self,
data: Option<Arc<InkData>>,
input: Box<Iterator<Item = ToolInput<InkData>> + 'a>
) -> Box<Iterator<Item = ToolAction<InkData>> + 'a>
[src]
&'a self,
data: Option<Arc<InkData>>,
input: Box<Iterator<Item = ToolInput<InkData>> + 'a>
) -> Box<Iterator<Item = ToolAction<InkData>> + 'a>
Converts a set of tool inputs into the corresponding actions that should be performed Read more