Pebble App Framework
main
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
distance.h
Go to the documentation of this file.
1
7
#pragma once
8
#include <stddef.h>
9
#include <stdbool.h>
10
15
22
const
char
*
distance_unit
(
bool
miles);
23
32
void
distance_format_value
(
char
*buffer,
size_t
size,
int
meters,
bool
miles);
33
42
void
distance_format
(
char
*buffer,
size_t
size,
int
meters,
bool
miles);
43
distance_format_value
void distance_format_value(char *buffer, size_t size, int meters, bool miles)
Format meters as "N.N" (rounded to tenth), no unit suffix.
Definition
distance.c:16
distance_unit
const char * distance_unit(bool miles)
Unit label for the current distance mode ("MI" or "KM").
Definition
distance.c:11
distance_format
void distance_format(char *buffer, size_t size, int meters, bool miles)
Format meters as "N.N MI" or "N.N KM" (rounded to tenth).
Definition
distance.c:31
src
c
core
units
distance.h
Generated by
1.18.0