pub struct LayoutResult {Show 23 fields
pub dom_id: DomId,
pub parent_dom_id: Option<DomId>,
pub styled_dom: StyledDom,
pub root_size: LayoutSize,
pub root_position: LayoutPoint,
pub preferred_widths: NodeDataContainer<Option<f32>>,
pub preferred_heights: NodeDataContainer<Option<f32>>,
pub width_calculated_rects: NodeDataContainer<WidthCalculatedRect>,
pub height_calculated_rects: NodeDataContainer<HeightCalculatedRect>,
pub solved_pos_x: NodeDataContainer<HorizontalSolvedPosition>,
pub solved_pos_y: NodeDataContainer<VerticalSolvedPosition>,
pub layout_flex_grows: NodeDataContainer<f32>,
pub layout_displays: NodeDataContainer<CssPropertyValue<LayoutDisplay>>,
pub layout_positions: NodeDataContainer<LayoutPosition>,
pub layout_flex_directions: NodeDataContainer<LayoutFlexDirection>,
pub layout_justify_contents: NodeDataContainer<LayoutJustifyContent>,
pub rects: NodeDataContainer<PositionedRectangle>,
pub words_cache: BTreeMap<NodeId, Words>,
pub shaped_words_cache: BTreeMap<NodeId, ShapedWords>,
pub positioned_words_cache: BTreeMap<NodeId, (WordPositions, FontInstanceKey)>,
pub scrollable_nodes: ScrolledNodes,
pub iframe_mapping: BTreeMap<NodeId, DomId>,
pub gpu_value_cache: GpuValueCache,
}Fields§
§dom_id: DomId§parent_dom_id: Option<DomId>§styled_dom: StyledDom§root_size: LayoutSize§root_position: LayoutPoint§preferred_widths: NodeDataContainer<Option<f32>>§preferred_heights: NodeDataContainer<Option<f32>>§width_calculated_rects: NodeDataContainer<WidthCalculatedRect>§height_calculated_rects: NodeDataContainer<HeightCalculatedRect>§solved_pos_x: NodeDataContainer<HorizontalSolvedPosition>§solved_pos_y: NodeDataContainer<VerticalSolvedPosition>§layout_flex_grows: NodeDataContainer<f32>§layout_displays: NodeDataContainer<CssPropertyValue<LayoutDisplay>>§layout_positions: NodeDataContainer<LayoutPosition>§layout_flex_directions: NodeDataContainer<LayoutFlexDirection>§layout_justify_contents: NodeDataContainer<LayoutJustifyContent>§rects: NodeDataContainer<PositionedRectangle>§words_cache: BTreeMap<NodeId, Words>§shaped_words_cache: BTreeMap<NodeId, ShapedWords>§positioned_words_cache: BTreeMap<NodeId, (WordPositions, FontInstanceKey)>§scrollable_nodes: ScrolledNodes§iframe_mapping: BTreeMap<NodeId, DomId>§gpu_value_cache: GpuValueCacheImplementations§
Source§impl LayoutResult
impl LayoutResult
pub fn get_bounds(&self) -> LayoutRect
pub fn get_cached_display_list( document_id: &DocumentId, dom_id: DomId, epoch: Epoch, layout_results: &[LayoutResult], full_window_state: &FullWindowState, gl_texture_cache: &GlTextureCache, renderer_resources: &RendererResources, image_cache: &ImageCache, ) -> CachedDisplayList
pub fn do_quick_resize( id_namespace: IdNamespace, document_id: DocumentId, epoch: Epoch, dom_id: DomId, image_cache: &ImageCache, gl_context: &OptionGlContextPtr, layout_results: &mut [LayoutResult], gl_texture_cache: &mut GlTextureCache, renderer_resources: &mut RendererResources, callbacks: &RenderCallbacks, relayout_fn: RelayoutFn, fc_cache: &FcFontCache, window_size: &WindowSize, window_theme: WindowTheme, ) -> QuickResizeResult
pub fn resize_images( id_namespace: IdNamespace, document_id: DocumentId, epoch: Epoch, dom_id: DomId, image_cache: &ImageCache, gl_context: &OptionGlContextPtr, layout_results: &mut [LayoutResult], gl_texture_cache: &mut GlTextureCache, renderer_resources: &mut RendererResources, callbacks: &RenderCallbacks, relayout_fn: RelayoutFn, fc_cache: &FcFontCache, window_size: &WindowSize, window_theme: WindowTheme, rsn: &BTreeMap<DomId, Vec<NodeId>>, ) -> Vec<UpdateImageResult>
pub fn scroll_iframes( document_id: &DocumentId, dom_id: DomId, epoch: Epoch, layout_results: &[LayoutResult], full_window_state: &FullWindowState, gl_texture_cache: &GlTextureCache, renderer_resources: &RendererResources, image_cache: &ImageCache, )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayoutResult
impl RefUnwindSafe for LayoutResult
impl Send for LayoutResult
impl Sync for LayoutResult
impl Unpin for LayoutResult
impl UnwindSafe for LayoutResult
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more