pub struct OfdPageGraphicsConfiguration {
pub dpi_x: u32,
pub dpi_y: u32,
pub color_depth: u32,
}Expand description
OFD 页面图形配置。
对应 Java: org.ofdrw.graphics2d.OFDPageGraphicsConfiguration
描述 OFD 页面的渲染配置:DPI、色彩模式等。 Java 版依赖 AWT GraphicsConfiguration;Rust 版保留核心配置字段。
Fields§
§dpi_x: u32水平 DPI(默认 96)。
dpi_y: u32垂直 DPI(默认 96)。
color_depth: u32颜色位深度(默认 24)。
Implementations§
Trait Implementations§
Source§impl Clone for OfdPageGraphicsConfiguration
impl Clone for OfdPageGraphicsConfiguration
Source§fn clone(&self) -> OfdPageGraphicsConfiguration
fn clone(&self) -> OfdPageGraphicsConfiguration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OfdPageGraphicsConfiguration
impl Debug for OfdPageGraphicsConfiguration
Auto Trait Implementations§
impl Freeze for OfdPageGraphicsConfiguration
impl RefUnwindSafe for OfdPageGraphicsConfiguration
impl Send for OfdPageGraphicsConfiguration
impl Sync for OfdPageGraphicsConfiguration
impl Unpin for OfdPageGraphicsConfiguration
impl UnsafeUnpin for OfdPageGraphicsConfiguration
impl UnwindSafe for OfdPageGraphicsConfiguration
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