#[non_exhaustive]pub struct ShowActionsOptions {
pub duration: Option<f64>,
pub position: Option<ActionPosition>,
pub font_size: Option<i32>,
pub cursor: Option<ActionCursor>,
pub style: Option<ShowActionsStyle>,
}Expand description
Options for Screencast::show_actions, and for
RecordVideo::show_actions
on a context’s recorded video.
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>👎Deprecated since 0.20.0:
use style with a title such as font-size: 16px
Label font size, pixels.
cursor: Option<ActionCursor>Pointer-cursor decoration at action points.
style: Option<ShowActionsStyle>CSS for the marker, the target highlight, and the title.
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 font_size(self, font_size: i32) -> Self
👎Deprecated since 0.20.0: use style with a title such as font-size: 16px
pub fn font_size(self, font_size: i32) -> Self
use style with a title such as font-size: 16px
Label font size in pixels.
Sourcepub fn style(self, style: ShowActionsStyle) -> Self
pub fn style(self, style: ShowActionsStyle) -> Self
CSS for the action decorations.
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§impl Debug for ShowActionsOptions
impl Debug for ShowActionsOptions
Source§impl Default for ShowActionsOptions
impl Default for ShowActionsOptions
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