Pebble Foundation Classes
0.2.0
C++ for Pebble
|
Public Member Functions | |
GTextAttributes () | |
Creates an instance of GTextAttributes for advanced control when rendering text. | |
operator::GTextAttributes * () | |
Instances of this class can be automatically converted to Pebble GTextAttributes pointer. | |
operator::GTextAttributes * () const | |
virtual | ~GTextAttributes () |
Destroys the underlying pebble GTextAttributes. | |
void | RestoreDefaultTextFlow () |
void | EnableScreenTextFlow (uint8_t inset) |
void | RestoreDefaultPaging () |
void | EnablePaging (GPoint content_origin_on_screen, GRect paging_on_screen) |
Protected Attributes | |
::GTextAttributes * | text_attributes_ |
Underlying GTextAttributes. | |
|
inline |
Enables paging and locks the text flow calculation to a fixed point on the screen.
content_origin_on_screen | Absolute coordinate on the screen where the text content starts before an animation or scrolling takes place. Usually the frame's origin of a layer in screen coordinates. |
paging_on_screen | Rectangle in absolute coordinates on the screen that describes where text content pages. Usually the container's absolute frame in screen coordinates. |
|
inline |
Enables text flow that follows the boundaries of the screen.
inset | Additional amount of pixels to inset to the inside of the screen for text flow calculation. Can be zero. |
|
inline |
Restores paging and locked content origin to the defaults.
|
inline |
Restores text flow to the rectangular default.