pub struct FrameOptions { /* private fields */ }Expand description
Whole-scene frame rendering controls.
The default renders frames the way the reference export does: frames are
enabled, their contents are clipped, and their names and outlines are
drawn. Start from FrameOptions::default and turn individual controls
off with the with_* setters:
use excalidraw_render::FrameOptions;
let options = FrameOptions::default().with_show_name(false).with_outline(false);
assert!(options.enabled() && options.clip());
assert!(!options.show_name() && !options.outline());Implementations§
Source§impl FrameOptions
impl FrameOptions
Sourcepub const fn with_enabled(self, enabled: bool) -> Self
pub const fn with_enabled(self, enabled: bool) -> Self
Selects whether frames are rendered at all (default true).
Sourcepub const fn with_clip(self, clip: bool) -> Self
pub const fn with_clip(self, clip: bool) -> Self
Selects whether frame contents are clipped to the frame (default true).
Sourcepub const fn with_show_name(self, show_name: bool) -> Self
pub const fn with_show_name(self, show_name: bool) -> Self
Selects whether frame names are rendered (default true).
Sourcepub const fn with_outline(self, outline: bool) -> Self
pub const fn with_outline(self, outline: bool) -> Self
Selects whether frame outlines are rendered (default true).
Trait Implementations§
Source§impl Clone for FrameOptions
impl Clone for FrameOptions
Source§impl Debug for FrameOptions
impl Debug for FrameOptions
Source§impl Default for FrameOptions
impl Default for FrameOptions
impl Eq for FrameOptions
Source§impl PartialEq for FrameOptions
impl PartialEq for FrameOptions
impl StructuralPartialEq for FrameOptions
Auto Trait Implementations§
impl Freeze for FrameOptions
impl RefUnwindSafe for FrameOptions
impl Send for FrameOptions
impl Sync for FrameOptions
impl Unpin for FrameOptions
impl UnsafeUnpin for FrameOptions
impl UnwindSafe for FrameOptions
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.