A ready-made Window prompting the user to pick a number.
Creates a new NumberWindow on the heap and initalizes it with the default values.
The number window is not pushed to the window stack. Use window_stack_push() to do this.
The title or prompt to display in the NumberWindow. Must be long-lived and cannot be stack-allocated.
The callbacks
Pointer to application specific data that is passed
A pointer to the NumberWindow. NULL
if the NumberWindow could not be created
Destroys a NumberWindow previously created by number_window_create.
Sets the text of the title or prompt label.
Pointer to the NumberWindow for which to set the label text
The new label text. Must be long-lived and cannot be stack-allocated.
Sets the maximum value this field can hold.
Pointer to the NumberWindow for which to set the maximum value
The maximum value
Sets the minimum value this field can hold.
Pointer to the NumberWindow for which to set the minimum value
The minimum value
Sets the current value of the field.
Pointer to the NumberWindow for which to set the current value
The new current value
Sets the amount by which to increment/decrement by on a button click.
Pointer to the NumberWindow for which to set the step increment
The new step increment
Gets the current value.
Pointer to the NumberWindow for which to get the current value
The current value
Gets the "root" Window of the number window.
Pointer to the NumberWindow for which to get the "root" Window
The "root" Window of the number window.
Data structure containing all the callbacks for a NumberWindow.
Callback that gets called as the value is incremented. Optional, leave NULL
if unused.
Callback that gets called as the value is decremented. Optional, leave NULL
if unused.
Callback that gets called as the value is confirmed, in other words the SELECT button is clicked. Optional, leave NULL
if unused.
Function signature for NumberWindow callbacks.
Do you have questions about the Pebble SDK?
Do you need some help understanding something on this page?
You can either take advantage of our awesome developer community and check out the SDK Help forums, or you can send us a message through the website!