# rmp::ui::Image

> A picture with a style -- a frame, a shadow -- that can be clicked.

Source: https://omardev29.github.io/rmp-docs/reference/classes/rmp-ui-Image.html

struct `#include <rmp/ui.h>` [include/rmp/ui.h:1794](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1794-L1815)

struct 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`

Picture picture{}

field [include/rmp/ui.h:1795](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1795)

What it shows, unless `sprite` has something

### `sprite`

rmp::Sprite sprite{}

field [include/rmp/ui.h:1796](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1796)

An animated picture, advanced every `show()`

### `grow`

bool grow = false

field [include/rmp/ui.h:1797](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1797)

As ImageOptions

### `width`

float width = 0

field [include/rmp/ui.h:1798](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1798)

> 0 = fixed, in design units

### `height`

float height = 0

field [include/rmp/ui.h:1799](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1799)

> 0 = fixed, in design units

### `enabled`

bool enabled = true

field [include/rmp/ui.h:1800](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1800)

False = drawn disabled; no press, no change, no focus

### `id`

std::string id{}

field [include/rmp/ui.h:1801](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1801)

As `ButtonOptions::id:` for a shared label

### `style`

Style style{}

field [include/rmp/ui.h:1802](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1802)

Tint, skin behind it, shadow, border

### `on_click`

rmp::Callback<> on_click

field [include/rmp/ui.h:1803](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1803)

Clicked: released on it, or Enter or A with the focus

### `on_hover`

rmp::Callback<> on_hover

field [include/rmp/ui.h:1804](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1804)

The pointer arrived on it

### `on_unhover`

rmp::Callback<> on_unhover

field [include/rmp/ui.h:1805](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1805)

...and left

### `on_press`

rmp::Callback<> on_press

field [include/rmp/ui.h:1806](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1806)

The pointer went down on it

### `on_release`

rmp::Callback<> on_release

field [include/rmp/ui.h:1807](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1807)

...and came up

### `show`

bool show()

function [include/rmp/ui.h:1809](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1809)

Lays it out here; true on the frame it was clicked

### `shake`

void shake()

function [include/rmp/ui.h:1810](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1810)

Shakes it, as `Button::shake()` does

### `hovered`

bool hovered() const

function [include/rmp/ui.h:1811](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1811)

The pointer is on it

### `pressed`

bool pressed() const

function [include/rmp/ui.h:1812](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1812)

Held down on it

### `ours`

KeptState ours

field [include/rmp/ui.h:1814](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L1814)

What it remembers; read it with the methods above
