#include <ProxyPlatform.h>
◆ ProxyPlatform()
ProxyPlatform::ProxyPlatform |
( |
Platform * |
base = nullptr | ) |
|
|
explicit |
◆ ~ProxyPlatform()
virtual ProxyPlatform::~ProxyPlatform |
( |
| ) |
|
|
virtualdefault |
◆ createEventLoop()
Creates a new event loop.
- Returns
- Newly created event loop, or
nullptr
on error.
Implements Platform.
Reimplemented in ApplicationProxy.
◆ createWindow()
Creates a new platform window.
- Returns
- Newly created window, or
nullptr
on error.
Implements Platform.
Reimplemented in ApplicationProxy.
◆ displayGeometries()
std::vector< Recti > ProxyPlatform::displayGeometries |
( |
| ) |
const |
|
overridevirtual |
- Returns
- Geometries of all monitors on current system, or an empty vector in case of an error.
Implements Platform.
◆ gamepads()
This function lists the gamepads currently connected to the system. The gamepad objects themselves are owned by the platform and are destroyed automatically when disconnected. If you're caching them in your code, then make sure to subscribe to EVENT_GAMEPAD_DISCONNECTED
, it is guaranteed to fire before the gamepad object is destroyed.
- Returns
- All gamepads connected to the system.
Implements Platform.
◆ isCursorShown()
bool ProxyPlatform::isCursorShown |
( |
| ) |
const |
|
overridevirtual |
Getter for setCursorShown
.
- Returns
- Whether the system cursor is currently shown on top of windows created by this platform.
Implements Platform.
◆ setCursorShown()
void ProxyPlatform::setCursorShown |
( |
bool |
cursorShown | ) |
|
|
overridevirtual |
Shows / hides system cursor (on top of all windows created by this platform).
- Parameters
-
cursorShown | Whether to show the system cursor. |
Implements Platform.
◆ showMessageBox()
void ProxyPlatform::showMessageBox |
( |
const std::string & |
title, |
|
|
const std::string & |
message |
|
) |
| const |
|
overridevirtual |
Shows a modal message box.
- Parameters
-
title | Title of the message box window. |
message | Message to display. |
Implements Platform.
◆ tickCount()
int64_t ProxyPlatform::tickCount |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: