pub struct Pic {Show 19 fields
pub id: String,
pub image: Vec<u8>,
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,
pub rot: u16,
}
Fields§
§id: String
§image: Vec<u8>
§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
§rot: u16