pub struct RenderOutput {
pub caret: Rect,
pub selection: Vec<Rect>,
pub placeholders: Vec<Rect>,
pub metrics: Metrics,
pub menu: Option<Rect>,
pub host_objects: Vec<HostObject>,
}Expand description
Everything the host paints on top of the typeset fragment.
Fields§
§caret: RectThe caret, a zero width rectangle.
selection: Vec<Rect>Selection highlight rectangles.
placeholders: Vec<Rect>Empty slot placeholder rectangles.
metrics: MetricsThe fragment’s size.
Where the open swap or delete menu anchors, see Editor::menu for its rows.
host_objects: Vec<HostObject>Placements of host boxes so the host can overlay their content.
Trait Implementations§
Source§impl Clone for RenderOutput
impl Clone for RenderOutput
Source§impl Debug for RenderOutput
impl Debug for RenderOutput
Source§impl PartialEq for RenderOutput
impl PartialEq for RenderOutput
impl StructuralPartialEq for RenderOutput
Auto Trait Implementations§
impl Freeze for RenderOutput
impl RefUnwindSafe for RenderOutput
impl Send for RenderOutput
impl Sync for RenderOutput
impl Unpin for RenderOutput
impl UnsafeUnpin for RenderOutput
impl UnwindSafe for RenderOutput
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