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

Layout of weather pins (LayoutIdWeather). More...

Data Structures

struct  WeatherLayout
 Weather pin layout. More...
 

Enumerations

enum  WeatherTimeType { WeatherTimeType_None = 0 , WeatherTimeType_Pin }
 Time shown by a weather pin, the value of AttributeIdDisplayTime. More...
 
enum  WeatherPinKind { WeatherPinKind_None = 0 , WeatherPinKind_Sunrise , WeatherPinKind_Sunset }
 Kind of weather pin, the value of AttributeIdWeatherPinKind. More...
 

Functions

LayoutLayer * weather_layout_create (const LayoutLayerConfig *config)
 Create a weather layout.
 
bool weather_layout_verify (bool existing_attributes[])
 Check the attributes of a weather pin.
 

Detailed Description

Layout of weather pins (LayoutIdWeather).


Data Structure Documentation

◆ WeatherLayout

struct WeatherLayout

Weather pin layout.

Data Fields
TimelineLayout timeline_layout Base timeline layout.

Enumeration Type Documentation

◆ WeatherPinKind

Kind of weather pin, the value of AttributeIdWeatherPinKind.

Enumerator
WeatherPinKind_None 

Regular forecast (default).

WeatherPinKind_Sunrise 

Sunrise.

WeatherPinKind_Sunset 

Sunset.

◆ WeatherTimeType

Time shown by a weather pin, the value of AttributeIdDisplayTime.

Enumerator
WeatherTimeType_None 

No time.

WeatherTimeType_Pin 

The pin time (default).

Function Documentation

◆ weather_layout_create()

LayoutLayer * weather_layout_create ( const LayoutLayerConfig *  config)

Create a weather layout.

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

◆ weather_layout_verify()

bool weather_layout_verify ( bool  existing_attributes[])

Check the attributes of a weather pin.

Parameters
existing_attributesArray of NumAttributeIds flags, indexed by AttributeId.
Returns
true if a title and a location name are present.