rmp::ui::Image
A picture with a style — a frame, a shadow — that can be clicked. With a sprite that has a sheet, it plays the sprite's animation: sprite.play("idle").
picture
What it shows, unless sprite has something
sprite
An animated picture, advanced every show()
grow
As ImageOptions
width
> 0 = fixed, in design units
height
> 0 = fixed, in design units
enabled
False = drawn disabled; no press, no change, no focus
id
As ButtonOptions::id: for a shared label
style
Tint, skin behind it, shadow, border
on_click
Clicked: released on it, or Enter or A with the focus
on_hover
The pointer arrived on it
on_unhover
...and left
on_press
The pointer went down on it
on_release
...and came up
show
Lays it out here; true on the frame it was clicked
shake
Shakes it, as Button::shake() does
hovered
The pointer is on it
pressed
Held down on it
ours
What it remembers; read it with the methods above