#[non_exhaustive]pub struct ShowActionsOptions {
pub duration: Option<f64>,
pub position: Option<ActionPosition>,
pub font_size: Option<i32>,
pub cursor: Option<ActionCursor>,
}Expand description
Options for Screencast::show_actions.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.duration: Option<f64>How long each action label stays on screen (milliseconds).
position: Option<ActionPosition>Where the label appears.
font_size: Option<i32>Label font size, pixels.
cursor: Option<ActionCursor>Pointer-cursor decoration at action points.
Implementations§
Source§impl ShowActionsOptions
impl ShowActionsOptions
Sourcepub fn position(self, position: ActionPosition) -> Self
pub fn position(self, position: ActionPosition) -> Self
Where to render the action labels.
Sourcepub fn cursor(self, cursor: ActionCursor) -> Self
pub fn cursor(self, cursor: ActionCursor) -> Self
Pointer-cursor decoration at action points.
Trait Implementations§
Source§impl Clone for ShowActionsOptions
impl Clone for ShowActionsOptions
Source§fn clone(&self) -> ShowActionsOptions
fn clone(&self) -> ShowActionsOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ShowActionsOptions
impl Debug for ShowActionsOptions
Source§impl Default for ShowActionsOptions
impl Default for ShowActionsOptions
Source§fn default() -> ShowActionsOptions
fn default() -> ShowActionsOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ShowActionsOptions
impl RefUnwindSafe for ShowActionsOptions
impl Send for ShowActionsOptions
impl Sync for ShowActionsOptions
impl Unpin for ShowActionsOptions
impl UnsafeUnpin for ShowActionsOptions
impl UnwindSafe for ShowActionsOptions
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