PebbleOS
Loading...
Searching...
No Matches
Data Structures | Enumerations | Functions
Calendar layout

Layout of calendar pins (LayoutIdCalendar). More...

Data Structures

struct  CalendarLayout
 Calendar pin layout. More...
 

Enumerations

enum  CalendarRecurringType { CalendarRecurringTypeNone = 0 , CalendarRecurringTypeRecurring }
 Recurrence of a calendar event, the value of AttributeIdDisplayRecurring. More...
 

Functions

LayoutLayer * calendar_layout_create (const LayoutLayerConfig *config)
 Create a calendar layout.
 
bool calendar_layout_verify (bool existing_attributes[])
 Check the attributes of a calendar pin.
 

Detailed Description

Layout of calendar pins (LayoutIdCalendar).


Data Structure Documentation

◆ CalendarLayout

struct CalendarLayout

Calendar pin layout.

Data Fields
TextLayer date_layer Date text layer.
char day_date_buffer[TIME_STRING_DAY_DATE_LENGTH] Buffer of the day and date text.
TimelineLayout timeline_layout Base timeline layout.

Enumeration Type Documentation

◆ CalendarRecurringType

Recurrence of a calendar event, the value of AttributeIdDisplayRecurring.

Enumerator
CalendarRecurringTypeNone 

Not recurring.

CalendarRecurringTypeRecurring 

Recurring; the card says so.

Function Documentation

◆ calendar_layout_create()

LayoutLayer * calendar_layout_create ( const LayoutLayerConfig *  config)

Create a calendar layout.

Parameters
configConfiguration; its context must be a TimelineLayoutInfo.
Returns
New layout, allocated on the calling task's heap.

◆ calendar_layout_verify()

bool calendar_layout_verify ( bool  existing_attributes[])

Check the attributes of a calendar pin.

Parameters
existing_attributesArray of NumAttributeIds flags, indexed by AttributeId.
Returns
true if a title is present.