|
Maps SDK for C++ 1.0.0
|


Public Member Functions | |
| ERenderRule | setRenderingRule (ERenderRule rule) noexcept |
| Change the screen rendering rule, see TRenderRule. | |
| ERenderRule | getRenderingRule () const noexcept |
| Get the current rendering rule. | |
| Screen & | resize (const Size &size) noexcept |
| Resize the screen to the given size in pixels. | |
| Screen & | handleTouchEvent (ETouchEvent ev, LargeInteger touchId, const Xy &pt) noexcept |
| Handle a screen touch event with the given id, see TTouchEvent for types. | |
| Screen & | scrollEvent (int delta, const Xy &pt) noexcept |
| Handle a scroll event from a pointing device. | |
| Rect | getViewport () const noexcept |
| Get screen viewport in pixels. | |
| Screen & | render () noexcept |
| Render the screen by subsequently render all contained views. | |
| void | needsRender () noexcept |
| Mark screen with pending render request. | |
| template<typename T> | |
| StrongPointer< Canvas > | hitTest (const XyType< T > &pt) const noexcept |
| Get the view under the given coordinates. | |
| Screen & | resetContext (bool contextLost=false) noexcept |
| Reset screen context. | |
| OpenGLContext | getOpenGLContext () const noexcept |
| Get OpenGL context. | |
| void | iterateCanvases (std::function< bool(StrongPointer< Canvas >)> collector) const noexcept |
| Iterate all screen canvases. | |
| void | iterateViews (std::function< bool(StrongPointer< MapView >)> collector) const noexcept |
| Iterate all screen views. | |
| void | iterateViews (std::function< bool(StrongPointer< MapView >, StrongPointer< MapViewV2 >)> collector) const noexcept |
| Iterate all screen views * views v2. | |
Static Public Member Functions | |
| static StrongPointer< Screen > | produce (OpenGLContext context, ERenderRule renderRule=RR_OnDemand) noexcept |
| Create a Screen object using an OpenGL context and an optional render rule. | |
Screen object.
It supports rendering in an OpenGL context. It is possible to use the rendering in two ways:
Implements share-read / write Api object over IScreen.
|
inlinenoexcept |
Get OpenGL context.
|
inlinenoexcept |
Get the current rendering rule.
|
inlinenoexcept |
Get screen viewport in pixels.
origin is always 0, 0
|
inlinenoexcept |
Handle a screen touch event with the given id, see TTouchEvent for types.
| [in] | ev | The touch event type |
| [in] | touchId | The touch id |
| [in] | pt | The touch point |
|
inlinenoexcept |
Get the view under the given coordinates.
With int type: coordinates are screen.
With float type: coordinates are screen fraction ( 0 - 1.f )
| [in] | pt | The coordinates |
|
noexcept |
Iterate all screen canvases.
collector must return true if the iteration should continue, false if it must stop
| [in] | collector | The collector function |
|
inlinenoexcept |
Iterate all screen views.
collector must return true if the iteration should continue, false if it must stop
| [in] | collector | The collector function |
|
noexcept |
Iterate all screen views * views v2.
collector must return true if the iteration should continue, false if it must stop
| [in] | collector | The collector function |
|
inlinestaticnoexcept |
|
inlinenoexcept |
Render the screen by subsequently render all contained views.
TRenderRule must be ERR_OnDemand
|
inlinenoexcept |
Reset screen context.
Notifies screen that the attached OpenGLContext has changed. This will trigger updates in the SDK textures, font etc.
| [in] | contextLost | If true, the context was lost and the screen should reset all its resources |
Resize the screen to the given size in pixels.
| [in] | size | The new size |
Handle a scroll event from a pointing device.
| [in] | delta | The scroll delta |
| [in] | pt | The scroll point |
|
inlinenoexcept |
Change the screen rendering rule, see TRenderRule.
Default value if RR_OnDemand
| [in] | rule | The new rendering rule |