pub struct EditorSettings {
pub ignore_non_modifier_keys: bool,
pub always_redraw: bool,
}Fields§
§ignore_non_modifier_keys: boolIgnore key inputs, except for modifier keys such as SHIFT and ALT
always_redraw: boolAlways redraw whenever the baseview window updates instead of only when iced wants to update the window. This works around a current baseview limitation where it does not support trigger a redraw on window visibility change (which may cause blank windows when opening or reopening the editor) and an iced limitation where it’s not possible to have animations without using an asynchronous timer stream to send redraw messages to the application.
Trait Implementations§
Source§impl Clone for EditorSettings
impl Clone for EditorSettings
Source§fn clone(&self) -> EditorSettings
fn clone(&self) -> EditorSettings
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 moreimpl Copy for EditorSettings
Source§impl Debug for EditorSettings
impl Debug for EditorSettings
Source§impl Default for EditorSettings
impl Default for EditorSettings
Source§fn default() -> EditorSettings
fn default() -> EditorSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EditorSettings
impl<'de> Deserialize<'de> for EditorSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EditorSettings
impl PartialEq for EditorSettings
Source§fn eq(&self, other: &EditorSettings) -> bool
fn eq(&self, other: &EditorSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EditorSettings
impl Serialize for EditorSettings
impl StructuralPartialEq for EditorSettings
Auto Trait Implementations§
impl Freeze for EditorSettings
impl RefUnwindSafe for EditorSettings
impl Send for EditorSettings
impl Sync for EditorSettings
impl Unpin for EditorSettings
impl UnsafeUnpin for EditorSettings
impl UnwindSafe for EditorSettings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
Source§fn into_boot(self) -> (State, Task<Message>)
fn into_boot(self) -> (State, Task<Message>)
Turns some type into the initial state of some
Application.