pub struct EditorConfig {
pub style: EditorStyle,
pub wrap_mode: EditorWrapMode,
}Expand description
Engine configuration shared by layout, input, and paint model generation.
§Examples
use ailloli_ui_editor::{EditorConfig, EditorWrapMode};
let config = EditorConfig::default();
assert_eq!(config.wrap_mode, EditorWrapMode::SoftWrap);
assert_eq!(config.style.line_height, 18.0);Fields§
§style: EditorStyleLogical-pixel metrics and semantic colors.
wrap_mode: EditorWrapModeSoft-wrap or horizontal-scroll layout policy.
Trait Implementations§
Source§impl Clone for EditorConfig
impl Clone for EditorConfig
Source§fn clone(&self) -> EditorConfig
fn clone(&self) -> EditorConfig
Returns a copy of the value. Read more
1.0.0 · 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 EditorConfig
impl Debug for EditorConfig
Source§impl Default for EditorConfig
impl Default for EditorConfig
Source§fn default() -> EditorConfig
fn default() -> EditorConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for EditorConfig
impl PartialEq for EditorConfig
impl Copy for EditorConfig
impl StructuralPartialEq for EditorConfig
Auto Trait Implementations§
impl Freeze for EditorConfig
impl RefUnwindSafe for EditorConfig
impl Send for EditorConfig
impl Sync for EditorConfig
impl Unpin for EditorConfig
impl UnwindSafe 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