#include <NullPlatform.h>
◆ NullPlatform()
◆ ~NullPlatform()
NullPlatform::~NullPlatform |
( |
| ) |
|
|
virtualdefault |
◆ createEventLoop()
Creates a new event loop.
- Returns
- Newly created event loop, or
nullptr
on error.
Implements Platform.
◆ createWindow()
Creates a new platform window.
- Returns
- Newly created window, or
nullptr
on error.
Implements Platform.
◆ displayGeometries()
std::vector< Recti > NullPlatform::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 NullPlatform::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 NullPlatform::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 NullPlatform::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 NullPlatform::tickCount |
( |
| ) |
const |
|
overridevirtual |
- Returns
- Current value of a monotonic clock in milliseconds.
Implements Platform.
◆ _cursorShown
bool NullPlatform::_cursorShown = true |
|
private |
◆ _state
The documentation for this class was generated from the following files: