pub struct Floated {
pub node: NodeId,
pub side: Float,
pub asset: u32,
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
pub outer: f32,
pub blend: BlendMode,
}Expand description
An image floated to one side of its column. The fragment’s x is
the leading edge of its margin box and its height is the height of
that box, which is what the prose beside it keeps clear of.
Fields§
§node: NodeIdThe image’s own node.
side: FloatThe side of the column it stands at.
asset: u32Index into the asset table.
x: f32Leading edge of the image, from the margin box’s own.
y: f32Top of the image, from the margin box’s own.
width: f32Width of the image in points, after any scaling.
height: f32Height of the image in points, after any scaling.
outer: f32Width of the margin box.
blend: BlendModeHow the image mixes with what is behind it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Floated
impl RefUnwindSafe for Floated
impl Send for Floated
impl Sync for Floated
impl Unpin for Floated
impl UnsafeUnpin for Floated
impl UnwindSafe for Floated
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.