pub struct EditorFrame {
pub viewport: EditorViewport,
pub content_size: Size,
pub runs: Vec<EditorTextRun>,
pub paint_items: Vec<EditorPaintItem>,
pub painted_paragraphs: Vec<usize>,
pub debug_metrics: EditorFrameDebugMetrics,
}Expand description
Complete editor frame generated by the engine for one viewport.
§Examples
use ailloli_ui_editor::EditorFrame;
fn inspect(frame: &EditorFrame) {
assert_eq!(frame.debug_metrics.paint_item_count, frame.paint_items.len());
}Fields§
§viewport: EditorViewportResolved widget/content/text/gutter geometry.
content_size: SizeFull logical-pixel content size before viewport clipping.
runs: Vec<EditorTextRun>Visible shaped paragraph runs.
paint_items: Vec<EditorPaintItem>Adapter-neutral ordered paint commands.
painted_paragraphs: Vec<usize>Source paragraph indices represented in runs.
debug_metrics: EditorFrameDebugMetricsWork and timing counters for this frame.
Trait Implementations§
Source§impl Clone for EditorFrame
impl Clone for EditorFrame
Source§fn clone(&self) -> EditorFrame
fn clone(&self) -> EditorFrame
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 moreAuto Trait Implementations§
impl Freeze for EditorFrame
impl !RefUnwindSafe for EditorFrame
impl Send for EditorFrame
impl Sync for EditorFrame
impl Unpin for EditorFrame
impl !UnwindSafe for EditorFrame
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