iv::WindowListener Class Referenceabstract

#include <WindowListener.hpp>

Public Member Functions

virtual ~WindowListener ()
 
virtual bool input (const Input *input)=0
 
virtual void focus_lost ()=0
 
virtual void update (uint64_t delta_ms)=0
 
virtual bool extra_update ()=0
 
virtual void draw ()=0
 
virtual void gpu (bool enabled, bool dropped)=0
 
virtual void resized (RenderTarget::Geometry)=0
 

Detailed Description

Definition at line 12 of file WindowListener.hpp.

Constructor & Destructor Documentation

◆ ~WindowListener()

virtual iv::WindowListener::~WindowListener ( )
inlinevirtual

Definition at line 16 of file WindowListener.hpp.

Member Function Documentation

◆ 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

Implemented in iv::Game.

◆ 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

Implemented in iv::Game.

◆ 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()

virtual void iv::WindowListener::resized ( RenderTarget::Geometry  )
pure virtual

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: