pub struct OfdGraphicsDocument {
pub width: f64,
pub height: f64,
pub title: Option<String>,
pub author: Option<String>,
pub page_count: u32,
}Expand description
OFD 图形文档。
对应 Java: org.ofdrw.graphics2d.OFDGraphicsDocument
表示一个可通过图形 API 绘制的 OFD 文档容器。 Java 版依赖 AWT;Rust 版保留文档级元数据。
Fields§
§width: f64文档宽度(mm)。
height: f64文档高度(mm)。
title: Option<String>文档标题。
作者。
page_count: u32已创建的页面数。
Implementations§
Source§impl OfdGraphicsDocument
impl OfdGraphicsDocument
设置作者。
Sourcepub fn page_count(&self) -> u32
pub fn page_count(&self) -> u32
获取已创建的页面数。
Trait Implementations§
Source§impl Clone for OfdGraphicsDocument
impl Clone for OfdGraphicsDocument
Source§fn clone(&self) -> OfdGraphicsDocument
fn clone(&self) -> OfdGraphicsDocument
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 OfdGraphicsDocument
impl Debug for OfdGraphicsDocument
Auto Trait Implementations§
impl Freeze for OfdGraphicsDocument
impl RefUnwindSafe for OfdGraphicsDocument
impl Send for OfdGraphicsDocument
impl Sync for OfdGraphicsDocument
impl Unpin for OfdGraphicsDocument
impl UnsafeUnpin for OfdGraphicsDocument
impl UnwindSafe for OfdGraphicsDocument
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