Wraps and existing Pebble window but does not take ownership of it.
More...
#include <pebble_window.hpp>
Wraps and existing Pebble window but does not take ownership of it.
◆ Window()
Pebble::Window::Window |
( |
::Window * |
window | ) |
|
|
inline |
Constructs a Window instance
- Parameters
-
Existing | Pebble window to wrap |
◆ IsLoaded()
bool Pebble::Window::IsLoaded |
( |
| ) |
const |
|
inline |
Gets whether the window has been loaded. If a window is loaded, its .load
handler has been called (and the .unload
handler has not been called since).
- Returns
- true if the window is currently loaded or false if not.
- See also
- WindowHandlers
◆ SetBackgroundColor()
void Pebble::Window::SetBackgroundColor |
( |
GColor |
background_color | ) |
|
|
inline |
Sets the background color of the window, which is drawn automatically by the root layer of the window.
- Parameters
-
background_color | The new background color |
- See also
- window_get_root_layer()
◆ StackContainsWindow()
bool Pebble::Window::StackContainsWindow |
( |
| ) |
const |
|
inline |
Checks if the window is on the window stack
- Returns
- true if the window is currently on the window stack.
◆ StackPush()
void Pebble::Window::StackPush |
( |
bool |
animated | ) |
|
|
inline |
Pushes this window onto the window navigation stack, on top of the current topmost window of the app.
- Parameters
-
animated | Pass in true to animate the push using a sliding animation, or false to skip the animation. |
◆ StackRemove()
bool Pebble::Window::StackRemove |
( |
bool |
animated | ) |
|
|
inline |
Removes a given window from the window stack that belongs to the app task.
- Note
- If there are no windows for the app left on the stack, the app will be killed by the system, shortly. To avoid this, make sure to push another window shortly after or before removing the last window.
- Parameters
-
animated | Pass in true to animate the removal of the window using a side-to-side sliding animation to reveal the next window. This is only used in case the window happens to be on top of the window stack (thus visible). |
- Returns
- True if window was successfully removed, false otherwise.
◆ WindowIsTop()
bool Pebble::Window::WindowIsTop |
( |
| ) |
|
|
inline |
Returns whether or not this Window is on the top of the app's window stack.
- Returns
- True if the topmost window on the stack that belongs to the app is this window.
The documentation for this class was generated from the following file: