pub struct PageChromeConfig {Show 13 fields
pub header_enabled: bool,
pub footer_enabled: bool,
pub progress_enabled: bool,
pub header_x: i32,
pub header_baseline_y: i32,
pub header_style: PageChromeTextStyle,
pub footer_x: i32,
pub footer_baseline_from_bottom: i32,
pub footer_style: PageChromeTextStyle,
pub progress_x_inset: i32,
pub progress_y_from_bottom: i32,
pub progress_height: u32,
pub progress_stroke_width: u32,
}Expand description
Shared page-chrome policy and geometry configuration.
Fields§
§header_enabled: boolEmit/draw page header text.
Emit/draw page footer text.
progress_enabled: boolEmit/draw page progress bar.
header_x: i32Header text left x.
header_baseline_y: i32Header text baseline y.
header_style: PageChromeTextStyleHeader text style.
Footer text left x.
Footer text baseline offset from bottom edge.
Footer text style.
progress_x_inset: i32Progress bar left/right inset.
progress_y_from_bottom: i32Progress bar top y offset from bottom edge.
progress_height: u32Progress bar height.
progress_stroke_width: u32Progress bar outline thickness.
Implementations§
Source§impl PageChromeConfig
impl PageChromeConfig
Sourcepub const fn geometry_defaults() -> Self
pub const fn geometry_defaults() -> Self
Default chrome geometry matching historical renderer behavior.
Sourcepub const fn layout_defaults() -> Self
pub const fn layout_defaults() -> Self
Defaults used by layout so chrome markers are opt-in.
Trait Implementations§
Source§impl Clone for PageChromeConfig
impl Clone for PageChromeConfig
Source§fn clone(&self) -> PageChromeConfig
fn clone(&self) -> PageChromeConfig
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 PageChromeConfig
impl Debug for PageChromeConfig
Source§impl Default for PageChromeConfig
impl Default for PageChromeConfig
Source§impl PartialEq for PageChromeConfig
impl PartialEq for PageChromeConfig
impl Copy for PageChromeConfig
impl Eq for PageChromeConfig
impl StructuralPartialEq for PageChromeConfig
Auto Trait Implementations§
impl Freeze for PageChromeConfig
impl RefUnwindSafe for PageChromeConfig
impl Send for PageChromeConfig
impl Sync for PageChromeConfig
impl Unpin for PageChromeConfig
impl UnsafeUnpin for PageChromeConfig
impl UnwindSafe for PageChromeConfig
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