pub struct CodeEditorOptions {
pub show_line_numbers: bool,
pub show_fold_gutter: bool,
pub show_minimap: bool,
pub show_status_bar: bool,
pub read_only: bool,
pub font_size: f32,
pub line_height: f32,
pub viewport_height: f32,
pub minimap: MinimapConfig,
pub theme: Option<EditorTheme>,
pub class: String,
pub on_change: Option<Rc<dyn Fn(String)>>,
}Expand description
Visual and behavioral configuration for interactive <CodeEditorWidget> rendering.
Fields§
§show_line_numbers: bool§show_fold_gutter: bool§show_minimap: bool§show_status_bar: bool§read_only: bool§font_size: f32§line_height: f32§viewport_height: f32§minimap: MinimapConfig§theme: Option<EditorTheme>§class: String§on_change: Option<Rc<dyn Fn(String)>>Trait Implementations§
Source§impl Clone for CodeEditorOptions
impl Clone for CodeEditorOptions
Source§impl Debug for CodeEditorOptions
impl Debug for CodeEditorOptions
Auto Trait Implementations§
impl !RefUnwindSafe for CodeEditorOptions
impl !Send for CodeEditorOptions
impl !Sync for CodeEditorOptions
impl !UnwindSafe for CodeEditorOptions
impl Forget for CodeEditorOptions
impl Freeze for CodeEditorOptions
impl Move for CodeEditorOptions
impl Unpin for CodeEditorOptions
impl UnsafeUnpin for CodeEditorOptions
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