pub struct Connector {
pub id: u32,
pub name: String,
pub properties: ShapeProperties,
pub begin: Option<(Emu, Emu)>,
pub end: Option<(Emu, Emu)>,
pub st_cxn: Option<(u32, u32)>,
pub end_cxn: Option<(u32, u32)>,
pub connector_type: Option<MsoConnectorType>,
pub style: Option<ShapeStyle>,
pub ext_lst: Option<ExtensionList>,
}Expand description
<p:cxnSp> 连接器。
Fields§
§id: u32§name: String§properties: ShapeProperties§begin: Option<(Emu, Emu)>起点几何坐标(EMU,绝对值,相对于 slide 原点)。
仅在 begin_type == None 时由 OOXML 渲染。
end: Option<(Emu, Emu)>终点几何坐标(EMU)。
st_cxn: Option<(u32, u32)>起点挂接(stCxn)——Some((shape_id, idx)) 表示挂接到某 shape 的连接点。
end_cxn: Option<(u32, u32)>终点挂接(endCxn)。
connector_type: Option<MsoConnectorType>显式几何类型(直线 / 折线 / 曲线)。None 则用 properties.xfrm.prst_geom。
style: Option<ShapeStyle>主题样式引用(p:style,可选)。
ext_lst: Option<ExtensionList>扩展列表。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Connector
impl RefUnwindSafe for Connector
impl Send for Connector
impl Sync for Connector
impl Unpin for Connector
impl UnsafeUnpin for Connector
impl UnwindSafe for Connector
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