|
Pebble Foundation Classes
0.2.0
C++ for Pebble
|
Layer that is automatically managed. More...
#include <pebble_layer.hpp>


Public Member Functions | |
| SimpleLayer (GRect frame) | |
| virtual | ~SimpleLayer () |
| Destroys the underlying AppLayer. | |
Public Member Functions inherited from Pebble::Layer | |
| Layer (::Layer *layer) | |
| Wraps an existing TextLayer. | |
| operator::Layer * () | |
| Instances of this class can be automatically converted to Pebble Layers. | |
| operator const ::Layer * () const | |
| void | MarkDirty () |
| void | SetFrame (GRect frame) |
| void | SetFrame (int16_t x, int16_t y, int16_t w, int16_t h) |
| void | SetFrame (GPoint origin, GSize size) |
| GRect | GetFrame () |
| void | SetBounds (GRect bounds) |
| GRect | GetBounds () |
| void | RemoveFromParent () |
| void | RemoveChildLayers () |
| void | AddChild (Layer &child) |
| void | InsertBelowSibling (Layer &below_sibling_layer) |
| void | InsertAboveSibling (Layer &above_sibling_layer) |
| void | SetHidden (bool hidden) |
| bool | GetHidden () |
| void | SetClips (bool clips) |
| bool | GetClips () |
Static Protected Member Functions | |
| static SimpleLayer & | GetFromData (::Layer *layer) |
Additional Inherited Members | |
Protected Attributes inherited from Pebble::Layer | |
| ::Layer * | layer_ |
Layer that is automatically managed.
This subclass of layer creates and destroys the underlying Pebble OS layer structure automatically. This type of layer should be used as a container for other layers but does not do any drawing on it's own.
|
inline |
Creates a layer and sets its frame and bounds. Default values:
bounds : origin (0, 0) and a size equal to the frame that is passed in.clips : truehidden : false | frame | The frame at which the layer should be initialized. |
|
inlinestaticprotected |
Given a pebble layer returns reference to the layer class
| layer | Pebble lawyer |