pub struct TextBox {
pub text: String,
pub width_emu: i64,
pub height_emu: i64,
}Expand description
A text box embedded in a drawing.
Produces <wps:wsp> inside a <wp:inline> drawing element.
ECMA-376 Part 1 §20.4; WPS namespace §§ (Word Processing Shapes).
Fields§
§text: StringText content of the box.
width_emu: i64Width in EMUs (914400 = 1 inch). Defaults to 1 inch.
height_emu: i64Height in EMUs. Defaults to 0.5 inch.
Implementations§
Source§impl TextBox
impl TextBox
Sourcepub fn set_width_emu(&mut self, emu: i64) -> &mut Self
pub fn set_width_emu(&mut self, emu: i64) -> &mut Self
Set the width in EMUs.
Sourcepub fn set_height_emu(&mut self, emu: i64) -> &mut Self
pub fn set_height_emu(&mut self, emu: i64) -> &mut Self
Set the height in EMUs.
Sourcepub fn set_width_inches(&mut self, inches: f64) -> &mut Self
pub fn set_width_inches(&mut self, inches: f64) -> &mut Self
Set the width in inches.
Sourcepub fn set_height_inches(&mut self, inches: f64) -> &mut Self
pub fn set_height_inches(&mut self, inches: f64) -> &mut Self
Set the height in inches.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextBox
impl RefUnwindSafe for TextBox
impl Send for TextBox
impl Sync for TextBox
impl Unpin for TextBox
impl UnsafeUnpin for TextBox
impl UnwindSafe for TextBox
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