pub struct EditorConfig { /* private fields */ }Expand description
Configuration used when creating an editor context.
Implementations§
Source§impl EditorConfig
impl EditorConfig
pub fn new() -> Self
pub fn settings_file(self, path: impl AsRef<str>) -> Result<Self, NulError>
pub fn no_settings_file(self) -> Self
pub fn settings_handler(self, handler: impl SettingsHandler + 'static) -> Self
pub fn canvas_size_mode(self, mode: CanvasSizeMode) -> Self
pub fn custom_zoom_levels(self, levels: impl Into<Vec<f32>>) -> Self
pub fn smooth_zoom(self, enabled: bool, power: f32) -> Self
pub fn snapshot(&self) -> EditorConfigSnapshot
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EditorConfig
impl !Send for EditorConfig
impl !Sync for EditorConfig
impl !UnwindSafe for EditorConfig
impl Freeze for EditorConfig
impl Unpin for EditorConfig
impl UnsafeUnpin for EditorConfig
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