|
| | SpriteStrip ()=default |
| void | load (const uint8_t *data, size_t data_size, int total_width, int total_height, int frame_count, Orientation orientation=Orientation::vertical) |
| | Load from raw pixel data (RGBA8, row-major).
|
| void | load_from_file (std::string file_path, int total_width, int total_height, int frame_count, Orientation orientation=Orientation::vertical) |
| | Load from an encoded image file (PNG/JPEG/etc.).
|
| int | frame_for_value (float value) const |
| | Get the frame index for a normalized value [0.0–1.0].
|
| void | frame_offset (int frame, int &x, int &y) const |
| | Get the pixel offset (x, y) for a given frame index.
|
| bool | loaded () const |
| Source | source () const |
| const std::string & | path () const |
| int | frame_count () const |
| int | frame_width () const |
| int | frame_height () const |
| int | total_width () const |
| int | total_height () const |
| Orientation | orientation () const |
| const uint8_t * | data () const |
| size_t | data_size () const |
| const std::string & | data_key () const |
| | Lowercase hex SHA-256 of data(), computed when the strip loads; empty for an image_file strip.
|
| void | set_decoded_size (int width, int height) |
| | Pixel size a canvas decoder reported for data(), recorded by the painting widget on the first successful measure.
|
| bool | decoded_size_known () const |
| int | decoded_width () const |
| int | decoded_height () const |
| void | set_interpolate (bool v) |
| | Whether to interpolate between adjacent frames for smooth sub-frame animation.
|
| bool | interpolate () const |
A filmstrip image containing N frames of a control at different values.
Used for designer-created knob/fader skins. The control's current value (0.0–1.0) selects which frame to display.
Typical usage: a 128x128px knob rendered at 128 rotation angles produces a 128x16384 vertical filmstrip. The widget renders the frame corresponding to its current parameter value.