|
PebbleOS
|
#include <applib/ui/layer.h>#include <applib/ui/click.h>#include <applib/ui/property_animation.h>#include <pbl/services/timeline/layout_layer.h>Data Structures | |
| struct | SwapLayerCallbacks |
| Callbacks of a SwapLayer. More... | |
| struct | ArrowLayer |
| Layer drawing the arrow hinting at more content. More... | |
| struct | SwapLayer |
| Data structure of a SwapLayer. More... | |
Typedefs | |
| typedef LayoutLayer *(* | SwapLayerGetLayoutHandler) (struct SwapLayer *swap_layer, int8_t rel_position, void *context) |
| Get a layout relative to the current one. | |
| typedef void(* | SwapLayerLayoutRemovedHandler) (struct SwapLayer *swap_layer, LayoutLayer *layer, void *context) |
| Called when the swap layer no longer uses a layout; the client may destroy it. | |
| typedef void(* | SwapLayerLayoutDidAppearHandler) (struct SwapLayer *swap_layer, LayoutLayer *layer, int8_t rel_change, void *context) |
| Called when a layout has become the current one. | |
| typedef void(* | SwapLayerLayoutWillAppearHandler) (struct SwapLayer *swap_layer, LayoutLayer *layer, void *context) |
| Called when a layout is about to become the current one. | |
| typedef void(* | SwapLayerUpdateColorsHandler) (struct SwapLayer *swap_layer, GColor bg_color, bool status_bar_filled, void *context) |
| Called when the window colors should change to match the visible layout. | |
| typedef void(* | SwapLayerInteractionHandler) (struct SwapLayer *swap_layer, void *context) |
| Called on every user interaction, e.g. | |
Functions | |
| void | swap_layer_init (SwapLayer *swap_layer, const GRect *frame) |
| Initialize a swap layer, without layouts. | |
| void | swap_layer_deinit (SwapLayer *swap_layer) |
| Deinitialize a swap layer. | |
| void | swap_layer_reload_data (SwapLayer *swap_layer) |
| Reload the layouts. | |
| LayoutLayer * | swap_layer_get_current_layout (const SwapLayer *swap_layer) |
| Get the current layout. | |
| Layer * | swap_layer_get_layer (const SwapLayer *swap_layer) |
| Get the root layer. | |
| void | swap_layer_set_callbacks (SwapLayer *swap_layer, void *callback_context, SwapLayerCallbacks callbacks) |
| Set the callbacks. | |
| void | swap_layer_set_click_config_onto_window (SwapLayer *swap_layer, struct Window *window) |
| Install the swap layer's click handling on a window. | |
| bool | swap_layer_attempt_layer_swap (SwapLayer *swap_layer, ScrollDirection direction) |
| Try to swap to the layout in a direction. | |
| void | swap_layer_touch_scroll_by (SwapLayer *swap_layer, int16_t dy) |
| Scroll the current layout by a pixel delta without animation. | |
| void | swap_layer_touch_release (SwapLayer *swap_layer) |
| Release touch input while the swap layer is covered by a higher modal. | |