pub struct TextBox {Show 17 fields
pub children: Vec<TextBoxContentChild>,
pub size: (u32, u32),
pub position_type: DrawingPositionType,
pub simple_pos: bool,
pub simple_pos_x: i32,
pub simple_pos_y: i32,
pub layout_in_cell: bool,
pub relative_height: u32,
pub allow_overlap: bool,
pub position_h: DrawingPosition,
pub position_v: DrawingPosition,
pub relative_from_h: RelativeFromHType,
pub relative_from_v: RelativeFromVType,
pub dist_t: i32,
pub dist_b: i32,
pub dist_l: i32,
pub dist_r: i32,
}
Fields
children: Vec<TextBoxContentChild>
size: (u32, u32)
position_type: DrawingPositionType
simple_pos: bool
Specifies that this object shall be positioned using the positioning information in the simplePos child element (§20.4.2.13). This positioning, when specified, positions the object on the page by placing its top left point at the x-y coordinates specified by that element.
simple_pos_x: i32
simple_pos_y: i32
layout_in_cell: bool
Specifies how this DrawingML object behaves when its anchor is located in a table cell; and its specified position would cause it to intersect with a table cell displayed in the document. That behavior shall be as follows:
relative_height: u32
Specifies the relative Z-ordering of all DrawingML objects in this document. Each floating DrawingML object shall have a Z-ordering value, which determines which object is displayed when any two objects intersect. Higher values shall indicate higher Z-order; lower values shall indicate lower Z-order.
allow_overlap: bool
position_h: DrawingPosition
position_v: DrawingPosition
relative_from_h: RelativeFromHType
relative_from_v: RelativeFromVType
dist_t: i32
Specifies the minimum distance which shall be maintained between the top edge of this drawing object and any subsequent text within the document when this graphical object is displayed within the document’s contents., The distance shall be measured in EMUs (English Metric Units).,
dist_b: i32
dist_l: i32
dist_r: i32
Implementations
sourceimpl TextBox
impl TextBox
pub fn new() -> Self
pub fn size(self, w_emu: u32, h_emu: u32) -> Self
pub fn floating(self) -> Self
pub fn offset_x(self, x: i32) -> Self
pub fn offset_y(self, y: i32) -> Self
pub fn position_h(self, pos: DrawingPosition) -> Self
pub fn position_v(self, pos: DrawingPosition) -> Self
pub fn relative_from_h(self, t: RelativeFromHType) -> Self
pub fn relative_from_v(self, t: RelativeFromVType) -> Self
pub fn dist_t(self, v: i32) -> Self
pub fn dist_b(self, v: i32) -> Self
pub fn dist_l(self, v: i32) -> Self
pub fn dist_r(self, v: i32) -> Self
pub fn simple_pos(self, v: bool) -> Self
pub fn relative_height(self, v: u32) -> Self
Trait Implementations
sourceimpl PartialEq<TextBox> for TextBox
impl PartialEq<TextBox> for TextBox
impl StructuralPartialEq for TextBox
Auto Trait Implementations
impl RefUnwindSafe for TextBox
impl Send for TextBox
impl Sync for TextBox
impl Unpin for TextBox
impl UnwindSafe for TextBox
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more