The base class for a page in the UI system. More...
The base class for a page in the UI system.
#include <UI.h>
Friends | |
class | UI |
|
inline |
|
inlinevirtual |
void daisy::UiPage::Close | ( | ) |
Closes the current page. This calls the parent UI and asks it to Remove this page from the page stack.
|
pure virtual |
Called to make the UIPage repaint everything on a canvas. Check the ID to determine which display this corresponds to. Cast the handle to the corresponding type and do your draw operations on it.
Implemented in daisy::FullScreenItemMenu.
|
inline |
|
inline |
Returns true if the page is currently active on a UI - it may not be visible, though.
|
inlinevirtual |
Returns true, if the page fills the entire canvas. A canvas can be individual leds, text displays, alphanumeric displays, graphics displays, etc. The UI class will use this to determine if underlying pages must be drawn before this page.
|
inlinevirtual |
Called when an arrow button is pressed or released.
arrowType | The arrow button affected. |
numberOfPresses | Holds the number of successive button presses. It will be 1 on the first call and increasing by 1 with each successive call. A button down event is signaled by numberOfButtonPresses == 0. |
isRetriggering | True if the button is auto-retriggering (due to being held down) |
Reimplemented in daisy::AbstractMenu.
|
inlinevirtual |
Called when any button is pressed or released that is not an arrow button, the function button or the okay / cancel buttons.
buttonID | The ID of the affected button. |
numberOfPresses | Holds the number of successive button presses. It will be 1 on the first call and increasing by 1 with each successive call. A button down event is signaled by numberOfButtonPresses == 0. |
isRetriggering | True if the button is auto-retriggering (due to being held down) |
|
inlinevirtual |
Called when the cancel button is pressed or released.
numberOfPresses | Holds the number of successive button presses. It will be 1 on the first call and increasing by 1 with each successive call. A button down event is signaled by numberOfButtonPresses == 0. |
isRetriggering | True if the button is auto-retriggering (due to being held down) |
Reimplemented in daisy::AbstractMenu.
|
inlinevirtual |
Called when the user starts or stops turning an encoder that is not the menu encoder or the value encoder.
encoderID | The ID of the affected encoder. |
isCurrentlyActive | True, if the user currently moves this encoder. |
|
inlinevirtual |
Called when an encoder is turned that is not the menu encoder or the value encoder.
encoderID | The ID of the affected encoder. |
turns | The number of increments, positive is clockwise. |
stepsPerRevolution | The total number of increments per revolution on this encoder. |
Called when the page becomes the topmost page in the page stack.
Called when the page is no longer the topmost page in the page stack.
|
inlinevirtual |
Called when the function button is pressed or released.
numberOfPresses | Holds the number of successive button presses. It will be 1 on the first call and increasing by 1 with each successive call. A button down event is signaled by numberOfButtonPresses == 0. |
isRetriggering | True if the button is auto-retriggering (due to being held down) |
Reimplemented in daisy::AbstractMenu.
Called when the user starts or stops turning the menu encoder.
isCurrentlyActive | True, if the user currently moves this encoder. |
|
inlinevirtual |
Called when the menu encoder is turned.
turns | The number of increments, positive is clockwise. |
stepsPerRevolution | The total number of increments per revolution on this encoder. |
Reimplemented in daisy::AbstractMenu.
|
inlinevirtual |
Called when the okay button is pressed or released.
numberOfPresses | Holds the number of successive button presses. It will be 1 on the first call and increasing by 1 with each successive call. A button down event is signaled by numberOfButtonPresses == 0. |
isRetriggering | True if the button is auto-retriggering (due to being held down) |
Reimplemented in daisy::AbstractMenu.
|
inlinevirtual |
Called when the user starts or stops turning a potentiometer that's not the value potentiometer.
potID | The ID of the affected potentiometer. |
isCurrentlyActive | True, if the user currently moves this potentiometer. |
Called when a potentiometer is turned that's not the value potentiometer.
potID | The ID of the affected potentiometer. |
newPosition | The new position in the range 0 .. 1 |
Called when the page is added to the UI.
Reimplemented in daisy::AbstractMenu.
Called on any user input event, after the respective callback has completed. OnUserInteraction will be invoked for all pages in the page stack and can be used to track general user activity.
Called when the user starts or stops turning the value encoder.
isCurrentlyActive | True, if the user currently moves this encoder. |
|
inlinevirtual |
Called when the menu encoder is turned.
turns | The number of increments, positive is clockwise. |
stepsPerRevolution | The total number of increments per revolution on this encoder. |
Reimplemented in daisy::AbstractMenu.
Called when the user starts or stops turning the value potentiometer.
isCurrentlyActive | True, if the user currently moves this potentiometer. |
Called when the value potentiometer is turned.
newPosition | The new position in the range 0 .. 1 |
Reimplemented in daisy::AbstractMenu.