-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAwesomiumPanel.h
More file actions
46 lines (32 loc) · 764 Bytes
/
Copy pathAwesomiumPanel.h
File metadata and controls
46 lines (32 loc) · 764 Bytes
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
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef AWESOMIUMPANEL_H
#define AWESOMIUMPANEL_H
#include <iostream>
#include <string>
#include <Awesomium/WebCore.h>
/**
* \class AwesomiumPanel
*
* \brief Just a simple/quick wrapper class for awesomium - more can be added later i.e. keyboard/mouse input etc
*
* \author Matthew Vlietstra
* \date 07/07/2012
*/
class AwesomiumPanel
{
public:
AwesomiumPanel(int width, int height);
~AwesomiumPanel();
void LoadURL(const std::string &url);
void Update();
bool IsDirty();
const unsigned char *GetBuffer();
int GetWidth();
int GetHeight();
void Resize(int width, int height);
private:
Awesomium::WebCore *m_webCore;
Awesomium::WebView *m_webView;
int m_width;
int m_height;
};
#endif