PebbleOS
Loading...
Searching...
No Matches
Data Structures | Macros | Variables
Calendar layout icons

Vector icons next to the start and end times on calendar cards. More...

Data Structures

struct  CalendarIconImage
 Image header of a single path icon, laid out as a GDrawCommandImage. More...
 
struct  CalendarIconPath
 Path command header of a single path icon, laid out as a GDrawCommand. More...
 
struct  CalendarStartIcon
 Draw command image of the start icon with its single path inline. More...
 
struct  CalendarEndIcon
 Draw command image of the end icon with its single path inline. More...
 
union  CalendarIconPath.__unnamed81__
 Path parameters. More...
 

Macros

#define START_ICON_POINTS   {{0, -2}, {9, 4}, {0, 10}}
 Points of the start icon, a triangle.
 
#define END_ICON_POINTS   {{0, 0}, {10, 0}, {10, 8}, {0, 8}}
 Points of the end icon, a rectangle.
 

Variables

CalendarStartIcon g_calendar_start_icon
 Icon next to the start time.
 
CalendarEndIcon g_calendar_end_icon
 Icon next to the end time.
 

Detailed Description

Vector icons next to the start and end times on calendar cards.


Data Structure Documentation

◆ CalendarIconImage

struct CalendarIconImage

Image header of a single path icon, laid out as a GDrawCommandImage.

Data Fields
uint16_t num_commands Number of commands.
uint8_t reserved Reserved.
GSize size Size.
uint8_t version Version.

◆ CalendarIconPath

struct CalendarIconPath

Path command header of a single path icon, laid out as a GDrawCommand.

Data Fields
union CalendarIconPath.__unnamed81__ __unnamed__ Path parameters.
GColor fill_color Fill color.
uint8_t flags Flags.
uint16_t num_points Number of points.
GColor stroke_color Stroke color.
uint8_t stroke_width Stroke width.
GDrawCommandType type: 8 Command type.

◆ CalendarStartIcon

struct CalendarStartIcon

Draw command image of the start icon with its single path inline.

Data Fields
CalendarIconPath command Path command.
CalendarIconImage image Image header.
GPoint points[STATIC_ARRAY_LENGTH(GPoint, START_ICON_POINTS)] Path points.

◆ CalendarEndIcon

struct CalendarEndIcon

Draw command image of the end icon with its single path inline.

Data Fields
CalendarIconPath command Path command.
CalendarIconImage image Image header.
GPoint points[STATIC_ARRAY_LENGTH(GPoint, END_ICON_POINTS)] Path points.

◆ CalendarIconPath.__unnamed81__

union CalendarIconPath.__unnamed81__

Path parameters.

Data Fields
bool path_open Whether the path is open.
uint16_t radius Circle radius.

Macro Definition Documentation

◆ END_ICON_POINTS

#define END_ICON_POINTS   {{0, 0}, {10, 0}, {10, 8}, {0, 8}}

Points of the end icon, a rectangle.

◆ START_ICON_POINTS

#define START_ICON_POINTS   {{0, -2}, {9, 4}, {0, 10}}

Points of the start icon, a triangle.

Variable Documentation

◆ g_calendar_end_icon

CalendarEndIcon g_calendar_end_icon
extern

Icon next to the end time.

◆ g_calendar_start_icon

CalendarStartIcon g_calendar_start_icon
extern

Icon next to the start time.