Struct dotrix_egui::ImageButton [−][src]
pub struct ImageButton { /* fields omitted */ }
Expand description
A clickable image within a frame.
Implementations
Select UV range. Default is (0,0) in top-left, (1,1) bottom right.
Multiply image color with this. Default is WHITE (no tint).
If true
, mark this button as “selected”.
Turn off the frame
By default, buttons senses clicks.
Change this to a drag-button with Sense::drag()
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ImageButton
impl Send for ImageButton
impl Sync for ImageButton
impl Unpin for ImageButton
impl UnwindSafe for ImageButton
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more