#include <WindowListener.hpp>
Definition at line 12 of file WindowListener.hpp.
◆ ~WindowListener()
virtual iv::WindowListener::~WindowListener |
( |
| ) |
|
|
inlinevirtual |
◆ input()
virtual bool iv::WindowListener::input |
( |
const Input * |
input | ) |
|
|
pure virtual |
Called when input to a Window occured.
- Returns
- True when input was processed by someone.
Implemented in iv::Game.
◆ focus_lost()
virtual void iv::WindowListener::focus_lost |
( |
| ) |
|
|
pure virtual |
◆ update()
virtual void iv::WindowListener::update |
( |
uint64_t |
delta_ms | ) |
|
|
pure virtual |
Called with frequency specified in class Window.
Implemented in iv::Game.
◆ extra_update()
virtual bool iv::WindowListener::extra_update |
( |
| ) |
|
|
pure virtual |
When there is some extra time remaining in the frame, this will be called. Returns true if someting was done so that window will consider calling it again in the same frame.
Implemented in iv::Game.
◆ draw()
virtual void iv::WindowListener::draw |
( |
| ) |
|
|
pure virtual |
◆ gpu()
virtual void iv::WindowListener::gpu |
( |
bool |
enabled, |
|
|
bool |
dropped |
|
) |
| |
|
pure virtual |
Called when gpu state changed - it got released or attached again.
Implemented in iv::Game.
◆ resized()
Called when window size is changed. Not called on app init (only when window size is changed). Physical resolution is winsize * pixel_density. Uusal values for pixel_density are: LDPI: 0.75 MDPI: 1.0 HDPI: 1.5 XHDPI: 2.0 XXHDPI: 3.0 XXXHDPI: 4.0
Implemented in iv::Game.
The documentation for this class was generated from the following file: