pub struct OfdPageGraphicsDevice {
pub device_type: GraphicsDeviceType,
pub name: Option<String>,
pub configuration: OfdPageGraphicsConfiguration,
}Expand description
OFD 页面图形设备。
对应 Java: org.ofdrw.graphics2d.OFDPageGraphicsDevice
描述 OFD 输出的目标设备。Java 版依赖 AWT GraphicsDevice; Rust 版保留设备类型和默认配置。
Fields§
§device_type: GraphicsDeviceType设备类型。
name: Option<String>设备名称。
configuration: OfdPageGraphicsConfiguration默认图形配置。
Implementations§
Source§impl OfdPageGraphicsDevice
impl OfdPageGraphicsDevice
Sourcepub fn with_type(device_type: GraphicsDeviceType) -> Self
pub fn with_type(device_type: GraphicsDeviceType) -> Self
创建指定类型的设备。
Sourcepub fn configuration(self, config: OfdPageGraphicsConfiguration) -> Self
pub fn configuration(self, config: OfdPageGraphicsConfiguration) -> Self
设置图形配置。
Sourcepub fn device_type(&self) -> GraphicsDeviceType
pub fn device_type(&self) -> GraphicsDeviceType
获取设备类型。
Trait Implementations§
Source§impl Clone for OfdPageGraphicsDevice
impl Clone for OfdPageGraphicsDevice
Source§fn clone(&self) -> OfdPageGraphicsDevice
fn clone(&self) -> OfdPageGraphicsDevice
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 OfdPageGraphicsDevice
impl Debug for OfdPageGraphicsDevice
Auto Trait Implementations§
impl Freeze for OfdPageGraphicsDevice
impl RefUnwindSafe for OfdPageGraphicsDevice
impl Send for OfdPageGraphicsDevice
impl Sync for OfdPageGraphicsDevice
impl Unpin for OfdPageGraphicsDevice
impl UnsafeUnpin for OfdPageGraphicsDevice
impl UnwindSafe for OfdPageGraphicsDevice
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