Struct TooltipImage
pub struct TooltipImage {
pub stack: ItemStack,
pub size: [f32; 2],
}Expand description
An image component of a tooltip: size GUI pixels, drawn by the
tooltip_component_draw part of stack’s item, with stack’s data.
An item’s own tooltip_component part answers the one it starts with.
Fields§
§stack: ItemStackThe stack.
size: [f32; 2]This component’s measurement in GUI pixels. The draw callback receives the whole tooltip content box size, not this measurement.
Trait Implementations§
§impl Clone for TooltipImage
impl Clone for TooltipImage
§fn clone(&self) -> TooltipImage
fn clone(&self) -> TooltipImage
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 more§impl PartialEq for TooltipImage
impl PartialEq for TooltipImage
impl StructuralPartialEq for TooltipImage
Auto Trait Implementations§
impl Freeze for TooltipImage
impl RefUnwindSafe for TooltipImage
impl Send for TooltipImage
impl Sync for TooltipImage
impl Unpin for TooltipImage
impl UnsafeUnpin for TooltipImage
impl UnwindSafe for TooltipImage
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