Pebble App Framework
v4.6.0
How It Works
CLI
Device API
Phone API
C Coverage
TS Coverage
GitHub
Theme
Pebble App Framework: Device API
Toggle main menu visibility
Loading...
Searching...
No Matches
settings_catalog.h
Go to the documentation of this file.
1
13
#pragma once
14
#include "
system/settings/settings.h
"
15
20
30
#define KNOWN_TEMPERATURE_UNIT(off) \
31
{ .id = SETTING_TEMPERATURE_UNIT, .message_key = &MESSAGE_KEY_WEATHER_TEMPERATURE_UNIT, \
32
.type = SETTING_ENUM_U8, .offset = (off), .enum_count = 2, .default_num = 0, \
33
.affects_weather = true }
34
40
#define KNOWN_DATE_FORMAT(off, dflt) \
41
{ .id = SETTING_DATE_FORMAT, .message_key = &MESSAGE_KEY_CLOCK_DATE_FORMAT, \
42
.type = SETTING_CSTRING, .offset = (off), .size = 16, .default_str = (dflt), \
43
.affects_layout = true }
44
50
#define KNOWN_THEME(off, count) \
51
{ .id = SETTING_THEME, .message_key = &MESSAGE_KEY_APPEARANCE_THEME, \
52
.type = SETTING_ENUM_U8, .offset = (off), .enum_count = (count) }
53
59
#define KNOWN_HEADER_FONT(off, count) \
60
{ .id = SETTING_HEADER_FONT, .message_key = &MESSAGE_KEY_APPEARANCE_HEADER_FONT, \
61
.type = SETTING_ENUM_U8, .offset = (off), .enum_count = (count) }
62
68
#define KNOWN_STEPS_MODE(off, count) \
69
{ .id = SETTING_STEPS_MODE, .message_key = &MESSAGE_KEY_HEALTH_STEPS_MODE, \
70
.type = SETTING_ENUM_U8, .offset = (off), .enum_count = (count) }
71
77
#define KNOWN_DISTANCE_UNIT(off, count) \
78
{ .id = SETTING_DISTANCE_UNIT, .message_key = &MESSAGE_KEY_HEALTH_DISTANCE_UNIT, \
79
.type = SETTING_ENUM_U8, .offset = (off), .enum_count = (count) }
80
86
#define KNOWN_TIME_FORMAT(off, count) \
87
{ .id = SETTING_TIME_FORMAT, .message_key = &MESSAGE_KEY_CLOCK_TIME_FORMAT, \
88
.type = SETTING_ENUM_U8, .offset = (off), .enum_count = (count), \
89
.affects_layout = true }
90
95
#define KNOWN_BLUETOOTH_ICON(off) \
96
{ .id = SETTING_BLUETOOTH_ICON, .message_key = &MESSAGE_KEY_CONNECTION_BLUETOOTH_ICON, \
97
.type = SETTING_BOOL, .offset = (off), .default_num = 1 }
98
103
#define KNOWN_QUIET_TIME_ICON(off) \
104
{ .id = SETTING_QUIET_TIME_ICON, .message_key = &MESSAGE_KEY_APPEARANCE_QUIET_TIME_ICON, \
105
.type = SETTING_BOOL, .offset = (off), .default_num = 0 }
106
112
#define KNOWN_BLUETOOTH_VIBE_CONNECT(off, count) \
113
{ .id = SETTING_BLUETOOTH_VIBE_CONNECT, .message_key = &MESSAGE_KEY_CONNECTION_VIBE_CONNECT, \
114
.type = SETTING_ENUM_U8, .offset = (off), .enum_count = (count) }
115
121
#define KNOWN_BLUETOOTH_VIBE_DISCONNECT(off, count) \
122
{ .id = SETTING_BLUETOOTH_VIBE_DISCONNECT, .message_key = &MESSAGE_KEY_CONNECTION_VIBE_DISCONNECT, \
123
.type = SETTING_ENUM_U8, .offset = (off), .enum_count = (count) }
124
130
#define KNOWN_HOURLY_VIBE(off, count) \
131
{ .id = SETTING_HOURLY_VIBE, .message_key = &MESSAGE_KEY_CLOCK_HOURLY_VIBE, \
132
.type = SETTING_ENUM_U8, .offset = (off), .enum_count = (count) }
133
139
#define KNOWN_BATTERY_DISPLAY(off, count) \
140
{ .id = SETTING_BATTERY_DISPLAY, .message_key = &MESSAGE_KEY_BATTERY_DISPLAY, \
141
.type = SETTING_ENUM_U8, .offset = (off), .enum_count = (count) }
142
settings.h
The persist API. A per-face SettingField table drives versioned load and save, sanitizing,...
src
c
pebble
system
settings
settings_catalog.h
Generated by
1.18.0