pub struct ToolsState {
pub tool: Tool,
pub fill: [u8; 4],
pub stroke: [u8; 4],
pub stroke_width: f32,
pub sides: u32,
pub corner: f32,
pub brush: [u8; 4],
pub brush_width: f32,
pub draw_rate: f32,
pub page: [u8; 4],
pub recording: bool,
}Fields§
§tool: Tool§fill: [u8; 4]Style applied to the next shape drawn.
stroke: [u8; 4]§stroke_width: f32§sides: u32§corner: f32§brush: [u8; 4]Draw tool: brush and recording rate.
brush_width: f32§draw_rate: f32§page: [u8; 4]§recording: boolDraw tool: a take is running — the app plays the video and drops every stroke into one drawing
until this goes back off (see App::toggle_draw_recording).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolsState
impl RefUnwindSafe for ToolsState
impl Send for ToolsState
impl Sync for ToolsState
impl Unpin for ToolsState
impl UnwindSafe for ToolsState
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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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