Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
53
Src/Wasabi/api/wnd/wndclass/backbufferwnd.h
Normal file
53
Src/Wasabi/api/wnd/wndclass/backbufferwnd.h
Normal file
|
@ -0,0 +1,53 @@
|
|||
#ifndef __BBWND_H
|
||||
#define __BBWND_H
|
||||
|
||||
#include <api/wnd/wndclass/abstractwndhold.h>
|
||||
|
||||
#ifdef WASABI_COMPILE_SKIN
|
||||
#define BBWND_PARENT AbstractWndHolder
|
||||
#else
|
||||
#define BBWND_PARENT ServiceWndHolder
|
||||
#endif
|
||||
|
||||
/**
|
||||
class BackBufferWnd
|
||||
@short
|
||||
@author Nullsoft
|
||||
@ver 1.0
|
||||
@see
|
||||
*/
|
||||
class BackBufferWnd : public BBWND_PARENT {
|
||||
|
||||
public:
|
||||
|
||||
BackBufferWnd();
|
||||
virtual ~BackBufferWnd();
|
||||
|
||||
virtual int onPaint(Canvas *c);
|
||||
|
||||
/**
|
||||
BackBufferWnd method wantBackBuffer .
|
||||
|
||||
@ret 0
|
||||
@param None
|
||||
*/
|
||||
virtual int wantBackBuffer() { return 0; }
|
||||
virtual BltCanvas *getBackBuffer();
|
||||
virtual int onSiblingInvalidateRgn(api_region *r, ifc_window *who, int who_idx, int my_idx);
|
||||
|
||||
/**
|
||||
BackBufferWnd method wantSiblingInvalidations .
|
||||
|
||||
@ret 0
|
||||
@param None
|
||||
*/
|
||||
virtual int wantSiblingInvalidations() { return wantBackBuffer(); }
|
||||
|
||||
private:
|
||||
|
||||
int backbuffer;
|
||||
BltCanvas *back_buffer;
|
||||
int canvas_w, canvas_h;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue