pub struct EditorConfigSnapshot {
pub settings_file: Option<String>,
pub has_settings_handler: bool,
pub custom_zoom_levels: Vec<f32>,
pub canvas_size_mode: CanvasSizeMode,
pub drag_button: MouseButton,
pub select_button: MouseButton,
pub navigate_button: MouseButton,
pub context_menu_button: MouseButton,
pub enable_smooth_zoom: bool,
pub smooth_zoom_power: f32,
}Expand description
Immutable view of the configuration used to create an editor context.
Callback function pointers and native storage pointers are intentionally not exposed. The snapshot only reports whether a settings handler was installed.
Fields§
§settings_file: Option<String>§has_settings_handler: bool§custom_zoom_levels: Vec<f32>§canvas_size_mode: CanvasSizeMode§enable_smooth_zoom: bool§smooth_zoom_power: f32Trait Implementations§
Source§impl Clone for EditorConfigSnapshot
impl Clone for EditorConfigSnapshot
Source§fn clone(&self) -> EditorConfigSnapshot
fn clone(&self) -> EditorConfigSnapshot
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 EditorConfigSnapshot
impl Debug for EditorConfigSnapshot
Source§impl PartialEq for EditorConfigSnapshot
impl PartialEq for EditorConfigSnapshot
Source§fn eq(&self, other: &EditorConfigSnapshot) -> bool
fn eq(&self, other: &EditorConfigSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EditorConfigSnapshot
Auto Trait Implementations§
impl Freeze for EditorConfigSnapshot
impl RefUnwindSafe for EditorConfigSnapshot
impl Send for EditorConfigSnapshot
impl Sync for EditorConfigSnapshot
impl Unpin for EditorConfigSnapshot
impl UnsafeUnpin for EditorConfigSnapshot
impl UnwindSafe for EditorConfigSnapshot
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