pub struct LayoutConfig {
pub page_width: f32,
pub page_height: f32,
pub line_height: f32,
pub left_margin: f32,
pub top_margin: f32,
pub font_metrics: FontMetrics,
}Expand description
Layout configuration for the engine
Fields§
§page_width: f32Page width in pixels
page_height: f32Page height in pixels
line_height: f32Line height in pixels
left_margin: f32Left margin in pixels
top_margin: f32Top margin in pixels
font_metrics: FontMetricsFont metrics
Implementations§
Source§impl LayoutConfig
impl LayoutConfig
Sourcepub fn create_engine(&self) -> LayoutEngine
pub fn create_engine(&self) -> LayoutEngine
Create layout engine from this configuration
Trait Implementations§
Source§impl Clone for LayoutConfig
impl Clone for LayoutConfig
Source§fn clone(&self) -> LayoutConfig
fn clone(&self) -> LayoutConfig
Returns a duplicate 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 moreSource§impl Debug for LayoutConfig
impl Debug for LayoutConfig
Auto Trait Implementations§
impl Freeze for LayoutConfig
impl RefUnwindSafe for LayoutConfig
impl Send for LayoutConfig
impl Sync for LayoutConfig
impl Unpin for LayoutConfig
impl UnsafeUnpin for LayoutConfig
impl UnwindSafe for LayoutConfig
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