pub struct Backdrop {
pub anchor: Option<Point3d>,
pub floor: bool,
pub wall: bool,
pub left: bool,
pub right: bool,
pub top: bool,
pub bottom: bool,
}Expand description
三维场景背景(<a:backdrop>,OOXML CT_Backdrop,TODO-050)。
定义 3D 场景中的 6 个背景平面,每个平面可独立启用/禁用。 启用的平面会渲染为可见的背景面(如地板/墙壁),用于营造空间感。
§OOXML 元素顺序
<a:backdrop>
<a:anchor x="..." y="..." z="..."/> ← 可选:锚点位置
<a:floor/> ← 可选:地板平面
<a:wall/> ← 可选:后墙平面
<a:l/> ← 可选:左平面
<a:r/> ← 可选:右平面
<a:t/> ← 可选:顶平面
<a:b/> ← 可选:底平面
</a:backdrop>§与 python-pptx 的对应
python-pptx 不支持 backdrop 编辑;本结构是 pptx-rs 的扩展能力。
Fields§
§anchor: Option<Point3d>锚点位置(<a:anchor>)。
定义背景平面集合的参考原点(EMU 单位)。None 表示不写出 <a:anchor>。
floor: bool是否启用地板平面(<a:floor/>)。
wall: bool是否启用后墙平面(<a:wall/>)。
left: bool是否启用左平面(<a:l/>)。
right: bool是否启用右平面(<a:r/>)。
top: bool是否启用顶平面(<a:t/>)。
bottom: bool是否启用底平面(<a:b/>)。
Implementations§
Trait Implementations§
impl Eq for Backdrop
impl StructuralPartialEq for Backdrop
Auto Trait Implementations§
impl Freeze for Backdrop
impl RefUnwindSafe for Backdrop
impl Send for Backdrop
impl Sync for Backdrop
impl Unpin for Backdrop
impl UnsafeUnpin for Backdrop
impl UnwindSafe for Backdrop
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.