pub struct Area {
pub draw_param: Option<u32>,
pub ctm: Option<ST_Array>,
pub clip: Option<String>,
}Expand description
元素区域(ofd:Area),定义绘制参数、变换矩阵与裁剪。
对应 Java: ofdrw Area。
Fields§
§draw_param: Option<u32>绘制参数引用(ST_RefID,可选)。
ctm: Option<ST_Array>变换矩阵(ST_Array,6 元素 a b c d e f,可选)。
clip: Option<String>裁剪区域(原始 XML 内容,可选)。
Implementations§
Trait Implementations§
impl StructuralPartialEq for Area
Source§impl XmlElement for Area
impl XmlElement for Area
Source§fn element_name(&self) -> &'static str
fn element_name(&self) -> &'static str
对应 Java: Area 元素名 “Area”。
Source§fn child_nodes(&self) -> Vec<XmlNode>
fn child_nodes(&self) -> Vec<XmlNode>
子元素(作为
XmlNode 提供,便于嵌套序列化)。Source§fn from_xml(node: &XmlNode) -> Result<Self, XmlElementError>
fn from_xml(node: &XmlNode) -> Result<Self, XmlElementError>
从节点树解析(对应 ofdrw 解析侧;quick-xml 产物)。 Read more
Source§fn text_content(&self) -> Option<&str>
fn text_content(&self) -> Option<&str>
文本内容(简单文本元素)。
Auto Trait Implementations§
impl Freeze for Area
impl RefUnwindSafe for Area
impl Send for Area
impl Sync for Area
impl Unpin for Area
impl UnsafeUnpin for Area
impl UnwindSafe for Area
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