|
void | setMouseCursorStyle (Cursor::Type type, const std::uint8_t *pixels, Vector2u size, Vector2u hotspot) override |
| Changes the look of a certain mouse cursor by using a bitmap.
|
|
void | resetMouseCursorStyle (Cursor::Type type) override |
| Changes the look of a certain mouse cursor back to the system theme.
|
|
void | setMouseCursor (BackendGui *gui, Cursor::Type type) override |
| Changes the mouse cursor when the mouse is on top of the window to which the gui is attached.
|
|
bool | isKeyboardModifierPressed (Event::KeyModifier modifierKey) override |
| Checks the state for one of the modifier keys.
|
|
void | setClipboard (const String &contents) override |
| Changes the contents of the clipboard.
|
|
String | getClipboard () const override |
| Returns the contents of the clipboard.
|
|
| Backend ()=default |
| Default constructor.
|
|
| Backend (const Backend &)=delete |
|
Backend & | operator= (const Backend &)=delete |
|
virtual | ~Backend ()=default |
| Virtual destructor.
|
|
void | setDestroyOnLastGuiDetatch (bool destroyOnDetatch) |
| Informs the backend whether it should destroy itself when the last Gui is detached from it.
|
|
virtual void | attachGui (BackendGui *gui) |
| Informs the backend that a new gui object has been created.
|
|
virtual void | detatchGui (BackendGui *gui) |
| Informs the backend that a gui object is being destroyed.
|
|
virtual Font | createDefaultFont () |
| Creates and returns the default font for all widgets.
|
|
std::shared_ptr< BackendFont > | createFont () |
| Creates a new font object.
|
|
std::shared_ptr< BackendText > | createText () |
| Creates a new text object.
|
|
std::shared_ptr< BackendTexture > | createTexture () |
| Creates a new texture object.
|
|
void | setFontScale (float scale) |
| Sets the scale factor to render text at a higher quality, e.g. to scale for DPI awareness.
|
|
float | getFontScale () const |
| Returns the scale factor to render text at a higher quality, e.g. to scale for DPI awareness.
|
|
virtual void | openVirtualKeyboard (const FloatRect &inputRect) |
| Opens the virtual keyboard on Android and iOS.
|
|
virtual void | closeVirtualKeyboard () |
| Closes the virtual keyboard on Android and iOS.
|
|
virtual std::unique_ptr< std::uint8_t[]> | readFileFromAndroidAssets (const String &filename, std::size_t &fileSize) const |
| Uses the AssetManager on Android to read a file and return its contents.
|
|
bool | hasRenderer () const |
| Checks whether a renderer has been attached to the backend.
|
|
std::shared_ptr< BackendRenderer > | getRenderer () const |
| Returns the renderer.
|
|
virtual void | setRenderer (std::shared_ptr< BackendRenderer > renderer) |
| Sets the renderer that the backend should use.
|
|
bool | hasFontBackend () const |
| Checks whether a font factory has been attached to the backend.
|
|
std::shared_ptr< BackendFontFactory > | getFontBackend () const |
| Returns the font factory.
|
|
virtual void | setFontBackend (std::shared_ptr< BackendFontFactory > fontBackend) |
| Sets the font factory that the backend should use.
|
|
void | registerFont (BackendFont *font) |
|
void | unregisterFont (BackendFont *font) |
|
void | registerSvgSprite (Sprite *sprite) |
|
void | unregisterSvgSprite (Sprite *sprite) |
|