pub struct RichTextEditorStyleConfig {
pub viewport: WidgetId,
pub is_focused: Signal<bool>,
pub is_read_only: bool,
pub content_padding: Option<(f32, f32, f32, f32)>,
pub background: Option<ColorProp>,
}Fields§
§viewport: WidgetIdPre-built editor viewport (the leaf widget that paints text).
is_focused: Signal<bool>Reactive focus signal — drives the focus-ring colour.
is_read_only: booltrue when the editor is in read-only / viewer mode.
content_padding: Option<(f32, f32, f32, f32)>Per-edge (top, right, bottom, left) padding between the text
content and the chrome border. None means the style picks its
own default (TextInput-style insets for editable, no padding for
read-only). Set via RichTextEditor::content_padding.
background: Option<ColorProp>App-supplied background fill (RichTextEditor::background). When Some,
the style should paint this instead of its default surface — so the
common “give the editor a surface” case needs no custom style. None
keeps the style’s own default.
Auto Trait Implementations§
impl !RefUnwindSafe for RichTextEditorStyleConfig
impl !Send for RichTextEditorStyleConfig
impl !Sync for RichTextEditorStyleConfig
impl !UnwindSafe for RichTextEditorStyleConfig
impl Freeze for RichTextEditorStyleConfig
impl Unpin for RichTextEditorStyleConfig
impl UnsafeUnpin for RichTextEditorStyleConfig
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