Struct flo::standard_tools::Ink
[−]
[src]
pub struct Ink {}
The Ink tool (Inks control points of existing objects)
Methods
impl Ink
[src]
Trait Implementations
impl<Anim: Animation + 'static> Tool<Anim> for Ink
[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
fn image_name(&self) -> String
[src]
Retrieves the name of the image that is associated with this tool
fn create_model(&self, _flo_model: Arc<FloModel<Anim>>) -> InkModel
[src]
Creates a new instance of the UI model for this tool
[src]
Creates the menu controller for this tool (or None if this tool has no menu controller)
ⓘ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]
ⓘImportant traits for Box<W>
&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
ⓘ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]
ⓘImportant traits for Box<W>
&'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