mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-01 04:29:59 -07:00
* Original pointer can be const * Back to const icons * Missed this one * Simpler string alloc * Single allocation and header struct for static icons * Shared allocation and meta struct for animated icons * Only try to load if dir exists * Restructure momentum lib * Use some internal headers * Swap icons at draw * Properly init and free, no more original in icon struct
18 lines
271 B
C
18 lines
271 B
C
/**
|
|
* @file icon_i.h
|
|
* GUI: internal Icon API
|
|
*/
|
|
|
|
#pragma once
|
|
#include <stdint.h>
|
|
|
|
#include "icon.h"
|
|
|
|
struct Icon {
|
|
const uint16_t width;
|
|
const uint16_t height;
|
|
const uint8_t frame_count;
|
|
const uint8_t frame_rate;
|
|
const uint8_t* const* frames;
|
|
};
|