pub struct TextboxPresentation {
pub font: u32,
pub size: i32,
pub line_height: i32,
pub baseline: i32,
pub color: u32,
pub background: u32,
pub underline: bool,
}Expand description
Opt-in presentation for a multiline editor embedded in document content. Geometry is in physical pixels; callers scale it with the document zoom and DPI. Editing, clipboard, selection, accessibility and IME behavior remain the ordinary textbox implementation.
Fields§
§font: u32Font identifier registered in the UI text engine.
size: i32Font size in 24.8 physical pixels, clamped to 1..512 pixels.
line_height: i32Line advance in physical pixels, clamped to 1..2048.
baseline: i32Baseline offset from a line’s top, clamped to the line height.
color: u32Text and caret color, straight ARGB.
background: u32Solid editor background, straight ARGB.
underline: boolDraw an underline beneath every text run.
Trait Implementations§
Source§impl Clone for TextboxPresentation
impl Clone for TextboxPresentation
impl Copy for TextboxPresentation
Auto Trait Implementations§
impl Forget for TextboxPresentation
impl Freeze for TextboxPresentation
impl RefUnwindSafe for TextboxPresentation
impl Send for TextboxPresentation
impl Sync for TextboxPresentation
impl Unpin for TextboxPresentation
impl UnsafeUnpin for TextboxPresentation
impl UnwindSafe for TextboxPresentation
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