pub struct FixedLineElement {
pub x1_mm: f64,
pub y1_mm: f64,
pub x2_mm: f64,
pub y2_mm: f64,
pub width_mm: f64,
pub color: RgbColor,
pub style: BorderStyle,
}Expand description
A horizontal or vertical decorative line at a fixed position.
Useful for separators in form templates, certidões, and similar layouts.
Does not participate in PageFlow.
Fields§
§x1_mm: f64§y1_mm: f64§x2_mm: f64§y2_mm: f64§width_mm: f64Stroke width in mm.
color: RgbColor§style: BorderStyleImplementations§
Trait Implementations§
Source§impl Clone for FixedLineElement
impl Clone for FixedLineElement
Source§fn clone(&self) -> FixedLineElement
fn clone(&self) -> FixedLineElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FixedLineElement
impl Debug for FixedLineElement
Source§impl Element for FixedLineElement
impl Element for FixedLineElement
fn layout_mode(&self) -> LayoutMode
fn estimated_height_mm(&self) -> f64
fn render(&self, ctx: &mut RenderContext) -> Result<RenderResult>
fn as_section_info(&self) -> Option<(u8, &str)>
fn inject_toc_entries(&mut self, _entries: &[TocEntry])
Auto Trait Implementations§
impl Freeze for FixedLineElement
impl RefUnwindSafe for FixedLineElement
impl Send for FixedLineElement
impl Sync for FixedLineElement
impl Unpin for FixedLineElement
impl UnsafeUnpin for FixedLineElement
impl UnwindSafe for FixedLineElement
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§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.