pub struct InlineItem {
pub width: f32,
pub height: f32,
pub painter: Rc<dyn Fn(&mut PaintList, Rect)>,
}Expand description
内联项:固定尺寸、底部对齐到文本基线,绘制由调用方回调完成(绘制型,无命中/状态)。
Fields§
§width: f32§height: f32§painter: Rc<dyn Fn(&mut PaintList, Rect)>Implementations§
Trait Implementations§
Source§impl Clone for InlineItem
impl Clone for InlineItem
Source§fn clone(&self) -> InlineItem
fn clone(&self) -> InlineItem
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 InlineItem
impl Debug for InlineItem
Auto Trait Implementations§
impl !RefUnwindSafe for InlineItem
impl !Send for InlineItem
impl !Sync for InlineItem
impl !UnwindSafe for InlineItem
impl Freeze for InlineItem
impl Unpin for InlineItem
impl UnsafeUnpin for InlineItem
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