pub struct ColorScheme {
pub text_color: RgbaColor,
pub background_color: RgbaColor,
}Expand description
Forced color scheme for accessibility rendering (high-contrast mode). Corresponds to CPDF_RenderOptions::ColorScheme.
Note: Upstream uses 4 forced colors (path_fill, path_stroke, text_fill, text_stroke). rpdfium simplifies to 2 colors: text_color (all foreground elements) and background_color. Stroke-specific coloring is intentionally unified with fill coloring. This simplification covers all practical forced-color use cases.
Fields§
§text_color: RgbaColorColor used for all foreground (text, strokes, fills) content.
background_color: RgbaColorColor used for page backgrounds.
Implementations§
Source§impl ColorScheme
impl ColorScheme
Sourcepub fn high_contrast() -> Self
pub fn high_contrast() -> Self
Standard high-contrast: black text on white background.
Trait Implementations§
Source§impl Clone for ColorScheme
impl Clone for ColorScheme
Source§fn clone(&self) -> ColorScheme
fn clone(&self) -> ColorScheme
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 ColorScheme
impl Debug for ColorScheme
Source§impl PartialEq for ColorScheme
impl PartialEq for ColorScheme
impl StructuralPartialEq for ColorScheme
Auto Trait Implementations§
impl Freeze for ColorScheme
impl RefUnwindSafe for ColorScheme
impl Send for ColorScheme
impl Sync for ColorScheme
impl Unpin for ColorScheme
impl UnsafeUnpin for ColorScheme
impl UnwindSafe for ColorScheme
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