|
PebbleOS
|
#include <applib/graphics/gtypes.h>#include <applib/graphics/gdraw_command_image.h>#include <pbl/util/uuid.h>#include <resource/timeline_resource_ids.auto.h>Data Structures | |
| struct | TimelineResourceInfo |
| Timeline resource to resolve. More... | |
| struct | AppResourceInfo |
| Resolved image resource. More... | |
| struct | AppResourceId |
| Resource in a resource bank. More... | |
| struct | TimelineLutEntry |
| Row of an app's timeline resource lookup table. More... | |
Macros | |
| #define | SYSTEM_RESOURCE_FLAG 0x80000000 |
| Flag marking a TimelineResourceId as a system resource. | |
| #define | TIMELINE_RESOURCE_PBW_SUPPORT_FIRST_SDK_VERSION_MAJOR (0x5) |
| Major version of the first SDK supporting timeline icons in PBWs. | |
| #define | TIMELINE_RESOURCE_PBW_SUPPORT_FIRST_SDK_VERSION_MINOR (0x3d) |
| Minor version of the first SDK supporting timeline icons in PBWs. | |
| #define | TLUT_SIGNATURE PBL_FOURCC('T', 'L', 'U', 'T') |
| Signature at the start of an app's timeline resource lookup table. | |
| #define | TLUT_DATA_OFFSET sizeof(TLUT_SIGNATURE) |
| Offset of the first TimelineLutEntry in the lookup table. | |
| #define | TLUT_RESOURCE_ID 1 |
| Resource id of the lookup table in an app's resource pack. | |
| #define | TIMELINE_TINY_RESOURCE_SIZE (GSize(25, 25)) |
| Size of tiny timeline icons. | |
| #define | TIMELINE_SMALL_RESOURCE_SIZE (GSize(50, 50)) |
| Size of small timeline icons. | |
| #define | TIMELINE_LARGE_RESOURCE_SIZE (GSize(80, 80)) |
| Size of large timeline icons. | |
Enumerations | |
| enum | TimelineResourceSize { TimelineResourceSizeTiny , TimelineResourceSizeSmall , TimelineResourceSizeLarge , TimelineResourceSizeCount } |
| Sizes of timeline icons. More... | |
Functions | |
| static GSize | timeline_resources_get_gsize (TimelineResourceSize size) |
| Get the dimensions of an icon size. | |
| bool | timeline_resources_is_system (TimelineResourceId timeline_id) |
| Check whether a timeline resource id is a system resource. | |
| bool | timeline_resources_get_id_system (TimelineResourceId timeline_id, TimelineResourceSize size, ResAppNum res_app_num, AppResourceInfo *res_info_out) |
| Resolve a timeline resource id in a given app resource bank. | |
| void | timeline_resources_get_id (const TimelineResourceInfo *timeline_res, TimelineResourceSize size, AppResourceInfo *res_info_out) |
| Resolve a timeline resource, falling back to its fallback system resource. | |
| void | sys_timeline_resources_get_id (const TimelineResourceInfo *timeline_res, TimelineResourceSize size, AppResourceInfo *res_info_out) |
| Syscall version of timeline_resources_get_id(). | |