pub struct ImagePlacement {
pub text_wrap: ImageTextWrap,
pub text_flow: ImageTextFlow,
pub treat_as_char: bool,
pub flow_with_text: bool,
pub allow_overlap: bool,
pub vert_rel_to: ImageRelativeTo,
pub horz_rel_to: ImageRelativeTo,
pub vert_offset: HwpUnit,
pub horz_offset: HwpUnit,
}Expand description
Optional object-placement metadata for images.
Fields§
§text_wrap: ImageTextWrapText wrapping mode around the image object.
text_flow: ImageTextFlowSide flow policy around the wrapped object.
treat_as_char: boolWhether the object behaves like an inline character.
flow_with_text: boolWhether surrounding text should flow with the object.
allow_overlap: boolWhether overlapping other objects is allowed.
vert_rel_to: ImageRelativeToVertical anchor reference for vert_offset.
horz_rel_to: ImageRelativeToHorizontal anchor reference for horz_offset.
vert_offset: HwpUnitVertical offset from vert_rel_to.
horz_offset: HwpUnitHorizontal offset from horz_rel_to.
Implementations§
Source§impl ImagePlacement
impl ImagePlacement
Sourcepub fn legacy_inline_defaults() -> Self
pub fn legacy_inline_defaults() -> Self
Legacy inline defaults used by the pre-placement HWPX image path.
Trait Implementations§
Source§impl Clone for ImagePlacement
impl Clone for ImagePlacement
Source§fn clone(&self) -> ImagePlacement
fn clone(&self) -> ImagePlacement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImagePlacement
impl Debug for ImagePlacement
Source§impl<'de> Deserialize<'de> for ImagePlacement
impl<'de> Deserialize<'de> for ImagePlacement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ImagePlacement
impl JsonSchema for ImagePlacement
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ImagePlacement
impl PartialEq for ImagePlacement
Source§impl Serialize for ImagePlacement
impl Serialize for ImagePlacement
impl Eq for ImagePlacement
impl StructuralPartialEq for ImagePlacement
Auto Trait Implementations§
impl Freeze for ImagePlacement
impl RefUnwindSafe for ImagePlacement
impl Send for ImagePlacement
impl Sync for ImagePlacement
impl Unpin for ImagePlacement
impl UnsafeUnpin for ImagePlacement
impl UnwindSafe for ImagePlacement
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
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.