View
This is a generic touchgfx::Screen specialization for normal applications. It provides a link to the Presenter class.
Template Parameters:
- T The type of Presenter associated with this view.
See: Screen
Note: All views in the application must be a subclass of this type.
Inherits from: Screen
Public Functions
void | bind(T & presenter) |
Binds an instance of a specific Presenter type (subclass) to the View instance. | |
View() | |
Protected Attributes
Additional inherited members
Public Functions inherited from Screen
virtual void | afterTransition() |
Called by Application::handleTickEvent() when the transition to the screen is done. | |
void | bindTransition(Transition & trans) |
Enables the transition to access the containers. | |
void | draw() |
Tells the screen to draw its entire area. | |
virtual void | draw(Rect & rect) |
Tell the screen to draw the specified area. | |
Container & | getRootContainer() |
Obtain a reference to the root container of this screen. | |
int16_t | getScreenHeight() const |
Gets height of the current screen. | |
int16_t | getScreenWidth() const |
Gets width of the current screen. | |
virtual void | handleClickEvent(const ClickEvent & event) |
Traverse the drawables in reverse z-order and notify them of a click event. | |
virtual void | handleDragEvent(const DragEvent & event) |
Traverse the drawables in reverse z-order and notify them of a drag event. | |
virtual void | handleGestureEvent(const GestureEvent & event) |
Handle gestures. | |
virtual void | handleKeyEvent(uint8_t key) |
Called by the Application on the reception of a "key", the meaning of which is platform/application specific. | |
virtual void | handleTickEvent() |
Called by the Application on the current screen with a frequency of Application::TICK_INTERVAL_MS. | |
void | JSMOC(const Rect & invalidatedArea, Drawable * widgetToDraw) |
Recursive JSMOC function. | |
Screen() | |
Initializes a new instance of the Screen class. | |
virtual void | setupScreen() |
Called by Application::switchScreen() when this screen is going to be displayed. | |
void | startSMOC(const Rect & invalidatedArea) |
Starts a JSMOC run, analyzing what parts of what widgets should be redrawn. | |
virtual void | tearDownScreen() |
Called by Application::switchScreen() when this screen will no longer be displayed. | |
bool | usingSMOC() const |
Determines if using JSMOC. | |
virtual | ~Screen() |
Finalizes an instance of the Screen class. | |
Protected Functions inherited from Screen
void | add(Drawable & d) |
Add a drawable to the content container. | |
void | insert(Drawable * previous, Drawable & d) |
Inserts a Drawable after a specific child node. | |
void | invalidate() const |
Tell the framework that this entire Screen needs to be redrawn. | |
void | invalidateRect(Rect & invalidatedArea) const |
Request that a region of this root container on the screen is redrawn. | |
void | remove(Drawable & d) |
Removes a drawable from the content container. | |
void | useSMOCDrawing(bool enabled) |
Determines whether to use JSMOC or painter's algorithm for drawing. | |
Protected Attributes inherited from Screen
Container | container |
The container contains the contents of the screen. | |
Drawable * | focus |
The drawable currently in focus (set when DOWN_PRESSED is received). | |
Public Functions Documentation
bind
void bind | ( | T & | presenter | ) | |
View
View | ( | ) |
Protected Attributes Documentation
presenter
T * presenter
Pointer to the Presenter associated with this view.