|
PebbleOS
|
#include <applib/graphics/text.h>#include <applib/ui/kino/kino_layer.h>#include <apps/system/timeline/text_node.h>#include <resource/resource_ids.auto.h>#include <pbl/services/timeline/attribute.h>#include <pbl/services/timeline/layout_layer.h>#include <pbl/services/timeline/timeline_resources.h>#include <shell/system_theme.h>Data Structures | |
| struct | LayoutNodeConfig |
| Base of every node config. More... | |
| struct | LayoutNodeExtentConfig |
| Node config with an extent, added to the node's own. More... | |
| struct | LayoutNodeTextConfig |
| Text node config. More... | |
| struct | LayoutNodeHeadingsParagraphsConfig |
| Headings and paragraphs node config. More... | |
| struct | LayoutNodeTextAttributeConfig |
| Attribute text node config; no node is created if the attribute is empty. More... | |
| struct | LayoutNodeTextBufferConfig |
| Buffer text node config; no node is created for an empty string. More... | |
| struct | LayoutNodeTextDynamicConfig |
| Dynamic text node config. More... | |
| struct | LayoutNodeContainerConfig |
| Container node config. More... | |
| struct | LayoutNodeHorizontalConfig |
| Horizontal container node config. More... | |
| struct | LayoutNodeVerticalConfig |
| Vertical container node config. More... | |
| struct | LayoutNodeConstructorConfig |
| Constructor node config. More... | |
| struct | LayoutNodeIconConfig |
| Icon node config. More... | |
| struct | LayoutNodeExtentConfig.offset |
| Position delta, not affecting neighboring nodes. More... | |
| struct | LayoutNodeExtentConfig.margin |
| Size delta, not affecting the node's internal positioning. More... | |
Macros | |
| #define | ToLayoutTextAlignment(alignment) (alignment + 1) |
| Convert a GTextAlignment to a LayoutTextAlignment. | |
| #define | ToGTextAlignment(alignment) (alignment - 1) |
| Convert a LayoutTextAlignment other than auto to a GTextAlignment. | |
| #define | ToLayoutVerticalAlignment(alignment) (alignment + 1) |
| Convert a GVerticalAlignment to a LayoutVerticalAlignment. | |
| #define | ToGVerticalAlignment(alignment) (alignment - 1) |
| Convert a LayoutVerticalAlignment other than auto to a GVerticalAlignment. | |
| #define | ToLayoutContentSize(size) ((LayoutContentSize)((size) + 1)) |
| Convert a PreferredContentSize to a LayoutContentSize. | |
| #define | ToPreferredContentSize(size) ((PreferredContentSize)((size) - 1)) |
| Convert a LayoutContentSize other than auto to a PreferredContentSize. | |
Typedefs | |
| typedef void(* | LayoutNodeTextDynamicUpdate) (const LayoutLayer *layout, const LayoutNodeTextDynamicConfig *config, char *buffer, bool render) |
| Fill the buffer of a dynamic text node. | |
| typedef GTextNode *(* | LayoutNodeConstructor) (const LayoutLayer *layout, const LayoutNodeConstructorConfig *config) |
| Build the node of a constructor node config. | |
Functions | |
| GTextNodeVertical * | layout_create_headings_paragraphs_node (const LayoutLayer *layout, const LayoutNodeHeadingsParagraphsConfig *config) |
| Create a vertical node with the layout's headings and paragraphs. | |
| GTextNode * | layout_create_text_node_from_config (const LayoutLayer *layout, const LayoutNodeConfig *config) |
| Create a tree of text nodes from a config. | |
| GTextNodeCustom * | layout_node_create_kino_layer_wrapper (KinoLayer *kino_layer) |
| Wrap a KinoLayer in a custom text node that positions the layer during layout. | |