|
Maps SDK for C++ 1.0.0
|
Drawing surface used by MapView for rendering. More...


Classes | |
| struct | __allow_private_constructor |
Public Member Functions | |
| StrongPointer< Screen > | getScreen () const noexcept |
| Get the parent screen. | |
| Rect | getViewport () const noexcept |
| Get view viewport in parent screen coordinates. | |
| RectF | getViewportF () const noexcept |
| Get screen viewport in parent screen ratio. | |
| bool | handleKeyboardEvent (EKey key, EKeyAction action) noexcept |
| Handles a keyboard event. | |
| Canvas & | resize (const RectF &screenRatio) noexcept |
| Resize the view. | |
| int | captureAsImage (const String &filePath, Rect const &rect=Rect(), EImageFileFormat format=IFF_Jpeg) const noexcept |
| Make a screen region capture of the current map in JPEG format. | |
| int | captureAsImage (DataBuffer &buffer, Rect const &rect=Rect(), EImageFileFormat format=IFF_Jpeg) const noexcept |
| Make a screen region capture of the current map in JPEG format. | |
| Image | captureAsImage (Rect const &rect=Rect()) const noexcept |
| Make a screen region capture of the current map in JPEG format. | |
| bool | isView () const noexcept |
| Deprecated. | |
| bool | isMapView () const noexcept |
| Check if canvas is a MapView object. | |
| void | detach () noexcept |
| Detach canvas from rendering process. | |
Static Public Member Functions | |
| static StrongPointer< Canvas > | produce (StrongPointer< Screen > screen, const RectF &screenRatio, CanvasListener listener) noexcept |
| Create a canvas object on the given screen. | |
Protected Types | |
| using | Base = ApiObject<ICanvas, false> |
| Base. | |
Drawing surface used by MapView for rendering.
Represents the surface where shapes, overlays, and custom graphics can be drawn.Acts as the foundation for rendering in a MapView.
|
inlinenoexcept |
Make a screen region capture of the current map in JPEG format.
No cursor/on-screen info is included.
| [in] | filePath | File path. |
| [in] | rect | The screen rectangle to capture. If ( 0, 0, 0, 0) is provided then the entire map screen is captured. |
| [in] | format | The image format, default Jpeg |
|
inlinenoexcept |
Make a screen region capture of the current map in JPEG format.
No cursor/on-screen info is included.
| [in] | buffer | The buffer in which the capture is made. |
| [in] | rect | The screen rectangle to capture. If ( 0, 0, 0, 0) is provided then the entire map screen is captured. |
| [in] | format | The image format, default Jpeg |
Make a screen region capture of the current map in JPEG format.
No cursor/on-screen info is included.
| [in] | rect | The screen rectangle to capture. If ( 0, 0, 0, 0) is provided then the entire map screen is captured. |
|
inlinenoexcept |
Detach canvas from rendering process.
If OpenGL context is not available anymore during canvas destruction, this method should be called when the context is still valid in order to do all needed cleanups
|
inlinenoexcept |
Get the parent screen.
|
inlinenoexcept |
Get view viewport in parent screen coordinates.
origin is always 0, 0
|
inlinenoexcept |
Get screen viewport in parent screen ratio.
origin is always 0, 0
|
inlinenoexcept |
Handles a keyboard event.
| key | Type of key that was interacted with. |
| action | Type of action that was performed on key. |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinestaticnoexcept |
Create a canvas object on the given screen.
| [in] | screen | The view's parent screen (reference to it held internally) |
| [in] | screenRatio | The viewport expressed in parent screen ratio |
| [in] | listener | The canvas listener |