Pebble Foundation Classes
0.2.0
C++ for Pebble
|
#include <pebble.h>
Public Attributes | |
WindowHandler | load |
WindowHandler | appear |
WindowHandler | disappear |
WindowHandler | unload |
WindowHandlers These handlers are called by the Window Stack as windows get pushed on / popped. All these handlers use WindowHandler as their function signature.
WindowHandler WindowHandlers::appear |
Called when the window comes on the screen (again). E.g. when second-top-most window gets revealed (again) after popping the top-most window, but also when the window is pushed for the first time. This is a good moment to start timers related to the window, or reset the UI, etc.
WindowHandler WindowHandlers::disappear |
Called when the window leaves the screen, e.g. when another window is pushed, or this window is popped. Good moment to stop timers related to the window.
WindowHandler WindowHandlers::load |
Called when the window is pushed to the screen when it's not loaded. This is a good moment to do the layout of the window.
WindowHandler WindowHandlers::unload |
Called when the window is deinited, but could be used in the future to free resources bound to windows that are not on screen.