pub struct ContextChanger {
pub changes: Vec<Box<dyn ChangeInterface>>,
/* private fields */
}Expand description
Context.
Fields§
§changes: Vec<Box<dyn ChangeInterface>>Queue of changes.
Implementations§
Source§impl ContextChanger
impl ContextChanger
Sourcepub fn stroke(self) -> StrokeBrushChanger
pub fn stroke(self) -> StrokeBrushChanger
Parameters of stroke.
Sourcepub fn draw(self) -> DrawChanger
pub fn draw(self) -> DrawChanger
Draw.
Trait Implementations§
Source§impl ChangerInterface for ContextChanger
impl ChangerInterface for ContextChanger
Source§type Parent = ContextChanger
type Parent = ContextChanger
Type of parent changer.
Source§type Root = ContextChanger
type Root = ContextChanger
Type of root changer.
Source§fn root(&mut self) -> &mut <ContextChanger as ChangerInterface>::Root
fn root(&mut self) -> &mut <ContextChanger as ChangerInterface>::Root
Get root.
Source§fn context(self) -> <ContextChanger as ChangerInterface>::Root
fn context(self) -> <ContextChanger as ChangerInterface>::Root
Get back to root changer.
Source§fn parent(&mut self) -> &mut <ContextChanger as ChangerInterface>::Parent
fn parent(&mut self) -> &mut <ContextChanger as ChangerInterface>::Parent
Get parent.
Source§fn end(self) -> <ContextChanger as ChangerInterface>::Parent
fn end(self) -> <ContextChanger as ChangerInterface>::Parent
Get back to parent changer.
Source§fn change_add<Change>(&mut self, change: Change) -> &mut ContextChangerwhere
Change: ChangeInterface + 'static,
fn change_add<Change>(&mut self, change: Change) -> &mut ContextChangerwhere
Change: ChangeInterface + 'static,
Add change.
Source§impl Clone for ContextChanger
impl Clone for ContextChanger
Source§fn clone(&self) -> ContextChanger
fn clone(&self) -> ContextChanger
Returns a duplicate of the value. Read more
1.0.0 · 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 ContextChanger
impl Debug for ContextChanger
Source§impl HasIdInterface for ContextChanger
impl HasIdInterface for ContextChanger
Auto Trait Implementations§
impl Freeze for ContextChanger
impl !RefUnwindSafe for ContextChanger
impl !Send for ContextChanger
impl !Sync for ContextChanger
impl Unpin for ContextChanger
impl !UnwindSafe for ContextChanger
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<Target, Original> VectorizedInto<Target> for Originalwhere
Target: VectorizedFrom<Original>,
impl<Target, Original> VectorizedInto<Target> for Originalwhere
Target: VectorizedFrom<Original>,
Source§fn vectorized_into(self) -> Target
fn vectorized_into(self) -> Target
Performs the conversion.