PebbleOS
Loading...
Searching...
No Matches
Macros | Enumerations | Functions
weather_types.h File Reference
#include <applib/graphics/gtypes.h>
#include <resource/timeline_resource_ids.auto.h>
#include "weather_type_tuples.def"

Macros

#define WEATHER_TYPE_TUPLE(id, numeric_id, bg_color, text_color, timeline_resource_id)    WeatherType_##id = numeric_id,
 

Enumerations

enum  WeatherType
 Weather condition, as sent by the phone. More...
 

Functions

const char * weather_type_get_name (WeatherType weather_type)
 Get the name of a weather type.
 
GColor weather_type_get_bg_color (WeatherType weather_type)
 Get the background color for a weather type.
 
GColor weather_type_get_text_color (WeatherType weather_type)
 Get the text color to use over the weather type's background.
 
TimelineResourceId weather_type_get_timeline_resource_id (WeatherType weather_type)
 Get the timeline icon for a weather type.
 

Macro Definition Documentation

◆ WEATHER_TYPE_TUPLE

#define WEATHER_TYPE_TUPLE (   id,
  numeric_id,
  bg_color,
  text_color,
  timeline_resource_id 
)     WeatherType_##id = numeric_id,