pub struct SolvedLayout {
pub layout_results: Vec<LayoutResult>,
}Fields§
§layout_results: Vec<LayoutResult>Implementations§
Source§impl SolvedLayout
impl SolvedLayout
Sourcepub fn new(
styled_dom: StyledDom,
epoch: Epoch,
document_id: &DocumentId,
full_window_state: &FullWindowState,
all_resource_updates: &mut Vec<ResourceUpdate>,
id_namespace: IdNamespace,
image_cache: &ImageCache,
system_fonts: &FcFontCache,
callbacks: &RenderCallbacks,
renderer_resources: &mut RendererResources,
current_window_dpi: DpiScaleFactor,
) -> Self
pub fn new( styled_dom: StyledDom, epoch: Epoch, document_id: &DocumentId, full_window_state: &FullWindowState, all_resource_updates: &mut Vec<ResourceUpdate>, id_namespace: IdNamespace, image_cache: &ImageCache, system_fonts: &FcFontCache, callbacks: &RenderCallbacks, renderer_resources: &mut RendererResources, current_window_dpi: DpiScaleFactor, ) -> Self
Does the layout, updates the image + font resources for the RenderAPI
Trait Implementations§
Source§impl Debug for SolvedLayout
impl Debug for SolvedLayout
Source§impl Default for SolvedLayout
impl Default for SolvedLayout
Source§fn default() -> SolvedLayout
fn default() -> SolvedLayout
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SolvedLayout
impl RefUnwindSafe for SolvedLayout
impl Send for SolvedLayout
impl Sync for SolvedLayout
impl Unpin for SolvedLayout
impl UnwindSafe for SolvedLayout
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