Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Wasabi/api/wnd/wndclass/backbufferwnd.h

54 lines
990 B
C
Raw Normal View History

2024-09-24 12:54:57 +00:00
#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