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

Layout of sports pins (LayoutIdSports). More...

Data Structures

struct  SportsLayout
 Sports pin layout. More...
 

Enumerations

enum  GameState { GameStatePreGame = 0 , GameStateInGame , GameStatePostGame }
 State of a game, the value of AttributeIdSportsGameState. More...
 

Functions

LayoutLayer * sports_layout_create (const LayoutLayerConfig *config)
 Create a sports layout.
 
bool sports_layout_verify (bool existing_attributes[])
 Check the attributes of a sports pin.
 

Detailed Description

Layout of sports pins (LayoutIdSports).


Data Structure Documentation

◆ SportsLayout

struct SportsLayout

Sports pin layout.

Data Fields
GameState state Game state, from AttributeIdSportsGameState.
TimelineLayout timeline_layout Base timeline layout.

Enumeration Type Documentation

◆ GameState

enum GameState

State of a game, the value of AttributeIdSportsGameState.

Enumerator
GameStatePreGame 

Before the game; the card shows the start time.

GameStateInGame 

The game is being played; the card shows the scores.

GameStatePostGame 

The game is over.

Function Documentation

◆ sports_layout_create()

LayoutLayer * sports_layout_create ( const LayoutLayerConfig *  config)

Create a sports layout.

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

◆ sports_layout_verify()

bool sports_layout_verify ( bool  existing_attributes[])

Check the attributes of a sports pin.

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