blob: 34b6dad5c98157193c7608da9404bdee0e27a65a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef __BACKEND_HPP__
#define __BACKEND_HPP__
#include <functional>
#include <stdint.h>
#include "WindowPosition.hpp"
class RunQueue;
class Backend
{
public:
Backend( const char* title, std::function<void()> redraw, RunQueue* mainThreadTasks );
~Backend();
void Show();
void Run();
void Attention();
void NewFrame( int& w, int& h );
void EndFrame();
void SetIcon( uint8_t* data, int w, int h );
void SetTitle( const char* title );
float GetDpiScale();
private:
WindowPosition m_winPos;
int m_w, m_h;
};
#endif
|