Loading...
Searching...
No Matches
zone.h File Reference

Layout primitives. Defines paintable areas and their text alignments. More...

#include <pebble.h>
#include "ui/fonts.h"

Go to the source code of this file.

Data Structures

struct  Zone
 Everything needed to present one text slot. Where it sits, and which registered font, alignment, and colour to use, plus up to three smaller font and rect tiers to step down to when the text would overflow. More...

Functions

TextLayer * zone_make_layer (Layer *parent, const Zone *zone)
 Creates a transparent text layer for a zone and attaches it to the parent layer.
void zone_set_text_fit (TextLayer *layer, const Zone *zone, const char *text)
 Sets a text layer's text, stepping down through the zone's font tiers to find one the text fits in.

Detailed Description

Layout primitives. Defines paintable areas and their text alignments.