Struct TooltipComponentDrawEvent
pub struct TooltipComponentDrawEvent<'a> {
pub stack: &'a ItemStack,
pub draw: &'a mut dyn DrawContext,
pub origin: [f32; 2],
pub size: [f32; 2],
}Expand description
What ItemPart::tooltip_component_draw is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§stack: &'a ItemStack§draw: &'a mut dyn DrawContext§origin: [f32; 2]§size: [f32; 2]Auto Trait Implementations§
impl<'a> !RefUnwindSafe for TooltipComponentDrawEvent<'a>
impl<'a> !Send for TooltipComponentDrawEvent<'a>
impl<'a> !Sync for TooltipComponentDrawEvent<'a>
impl<'a> !UnwindSafe for TooltipComponentDrawEvent<'a>
impl<'a> Freeze for TooltipComponentDrawEvent<'a>
impl<'a> Unpin for TooltipComponentDrawEvent<'a>
impl<'a> UnsafeUnpin for TooltipComponentDrawEvent<'a>
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