Pebble Foundation Classes  0.2.0
C++ for Pebble
WindowHandlers Struct Reference

#include <pebble.h>

Public Attributes

WindowHandler load
 
WindowHandler appear
 
WindowHandler disappear
 
WindowHandler unload
 

Detailed Description

WindowHandlers These handlers are called by the Window Stack as windows get pushed on / popped. All these handlers use WindowHandler as their function signature.

See also
window_set_window_handlers()
Window Stack

Member Data Documentation

◆ appear

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.

◆ disappear

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.

◆ load

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.

◆ unload

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.


The documentation for this struct was generated from the following file: