touchgfx::Screen is only used within TouchGFX.
 
Symbols
loading...
Files
loading...

touchgfx::Screen class

@class Screen Screen.hpp touchgfx/Screen.hpp A Screen represents a full-screen drawable area. Applications create specific screens by subclassing this class. A Screen represents a full-screen drawable area. Applications create specific screens by subclassing this class. Each screen has a root container to which drawables can be added. This class makes sure to delegate draw requests and various events to the appropriate drawables in correct order.

Syntax

class Screen;
Implemented in Screen.hpp:46

Fields

container

No summary provided. Read more...

focus

No summary provided. Read more...

fingerAdjustmentX

No summary provided. Read more...

fingerAdjustmentY

No summary provided. Read more...

useSMOC

No summary provided. Read more...

Methods

draw()

@fn void Screen::draw(); Tells the screen to draw its entire area. Tells the screen to draw its entire area. Read more...

startSMOC()

@fn void Screen::startSMOC(Rect& invalidatedArea); Starts a JSMOC run, analyzing what parts of what widgets should be redrawn. Starts a JSMOC run, analyzing what parts of what widgets should be redrawn. Read more...

JSMOC()

@fn void Screen::JSMOC(const Rect& invalidatedArea, Drawable* widgetToDraw); Recursive JSMOC function. This is the actual occlusion culling implementation. Recursive JSMOC function. This is the actual occlusion culling implementation. Read more...

draw()

@fn void Screen::draw(); Tells the screen to draw its entire area. Tells the screen to draw its entire area. Read more...

setupScreen()

@fn virtual void Screen::setupScreen() Called by Application::switchScreen() when this screen is going to be displayed. Called by Application::switchScreen() when this screen is going to be displayed. Base version does nothing, but place any screen specific initialization code in an overridden version. @see touchgfx::Application::switchScreen(). Read more...

afterTransition()

@fn virtual void Screen::afterTransition() Called by Application::handleTick() when the transition to the screen is done. Called by Application::handleTick() when the transition to the screen is done. Base version does nothing, but override to do screen specific initialization code that has to be done after the transition to the screen. @see touchgfx::Application::handleTick(). Read more...

tearDownScreen()

@fn virtual void Screen::tearDownScreen() Called by Application::switchScreen() when this screen will no longer be displayed. Called by Application::switchScreen() when this screen will no longer be displayed. Base version does nothing, but place any screen specific cleanup code in an overridden version. @see touchgfx::Application::switchScreen(). Read more...

handleClickEvent()

@fn virtual void Screen::handleClickEvent(const ClickEvent& evt); Traverse the drawables in reverse z-order and notify them of a click event. Traverse the drawables in reverse z-order and notify them of a click event. Read more...

handleDragEvent()

@fn virtual void Screen::handleDragEvent(const DragEvent& evt); Traverse the drawables in reverse z-order and notify them of a drag event. Traverse the drawables in reverse z-order and notify them of a drag event. Read more...

handleGestureEvent()

@fn virtual void Screen::handleGestureEvent(const GestureEvent& evt); Handle gestures. Traverses drawables in reverse-z and notifies them of the gesture. Handle gestures. Traverses drawables in reverse-z and notifies them of the gesture. Read more...

handleTickEvent()

@fn virtual void Screen::handleTickEvent() Called by the Application on the current screen with a frequency of Application::TICK_INTERVAL_MS. Called by the Application on the current screen with a frequency of Application::TICK_INTERVAL_MS. Read more...

handleKeyEvent()

@fn virtual void Screen::handleKeyEvent(uint8_t key) Called by the Application on the reception of a "key", the meaning of which is platform/application specific. Called by the Application on the reception of a "key", the meaning of which is platform/application specific. Default implementation does nothing. Read more...

usingSMOC() const

@fn bool Screen::usingSMOC() const Determines if using JSMOC. Read more...

bindTransition()

@fn void Screen::bindTransition(Transition& trans); Enables the transition to access the containers. Enables the transition to access the containers. Read more...

getRootContainer()

@fn Container& Screen::getRootContainer() Obtain a reference to the root container of this screen. Obtain a reference to the root container of this screen. Read more...

useSMOCDrawing()

@fn void Screen::useSMOCDrawing(bool enabled); Determines whether to use JSMOC or painter's algorithm for drawing. Determines whether to use JSMOC or painter's algorithm for drawing. Read more...

add()

@fn void Screen::add(Drawable& d) Add a drawable to the content container. Add a drawable to the content container. Read more...

remove()

@fn void Screen::remove(Drawable& d) Removes a drawable from the content container. Removes a drawable from the content container. Safe to call even if the drawable was never added (in which case nothing happens). Read more...