pub struct InlineBorderInfo {
pub top: f32,
pub right: f32,
pub bottom: f32,
pub left: f32,
pub top_color: ColorU,
pub right_color: ColorU,
pub bottom_color: ColorU,
pub left_color: ColorU,
pub radius: Option<f32>,
}Expand description
Border information for inline elements (display: inline, inline-block)
This stores the resolved border properties needed for rendering inline element borders. Unlike block elements which render borders via paint_node_background_and_border(), inline element borders must be rendered per glyph-run to handle line breaks correctly.
Fields§
§top: f32Border widths in pixels for each side
right: f32§bottom: f32§left: f32§top_color: ColorUBorder colors for each side
right_color: ColorU§bottom_color: ColorU§left_color: ColorU§radius: Option<f32>Border radius (if any)
Implementations§
Source§impl InlineBorderInfo
impl InlineBorderInfo
Sourcepub fn has_border(&self) -> bool
pub fn has_border(&self) -> bool
Returns true if any border has a non-zero width
Trait Implementations§
Source§impl Clone for InlineBorderInfo
impl Clone for InlineBorderInfo
Source§fn clone(&self) -> InlineBorderInfo
fn clone(&self) -> InlineBorderInfo
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 InlineBorderInfo
impl Debug for InlineBorderInfo
Source§impl Default for InlineBorderInfo
impl Default for InlineBorderInfo
Source§impl PartialEq for InlineBorderInfo
impl PartialEq for InlineBorderInfo
impl StructuralPartialEq for InlineBorderInfo
Auto Trait Implementations§
impl Freeze for InlineBorderInfo
impl RefUnwindSafe for InlineBorderInfo
impl Send for InlineBorderInfo
impl Sync for InlineBorderInfo
impl Unpin for InlineBorderInfo
impl UnwindSafe for InlineBorderInfo
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 more