mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
1459cd6d76
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@50 0fc631ac-6414-0410-93d0-97cfa31319b6
37 lines
1.2 KiB
C++
37 lines
1.2 KiB
C++
//+----------------------------------------------------------------------------+
|
|
//| Description: Magic Set Editor - Program to make Magic (tm) cards |
|
|
//| Copyright: (C) 2001 - 2006 Twan van Laarhoven |
|
|
//| License: GNU General Public License 2 or later (see file COPYING) |
|
|
//+----------------------------------------------------------------------------+
|
|
|
|
#ifndef HEADER_GUI_CONTROL_CARD_VIEWER
|
|
#define HEADER_GUI_CONTROL_CARD_VIEWER
|
|
|
|
// ----------------------------------------------------------------------------- : Includes
|
|
|
|
#include <util/prec.hpp>
|
|
#include <render/card/viewer.hpp>
|
|
|
|
// ----------------------------------------------------------------------------- : CardViewer
|
|
|
|
/// A control to view a single card
|
|
class CardViewer : public wxControl, public DataViewer {
|
|
public:
|
|
CardViewer(Window* parent, int id, long style = 0);
|
|
|
|
protected:
|
|
/// Return the desired size of control
|
|
virtual wxSize DoGetBestSize() const;
|
|
|
|
private:
|
|
DECLARE_EVENT_TABLE();
|
|
|
|
void onPaint(wxPaintEvent&);
|
|
void onSize(wxSizeEvent&);
|
|
|
|
Bitmap buffer; /// < Off-screen buffer we draw to
|
|
};
|
|
|
|
// ----------------------------------------------------------------------------- : EOF
|
|
#endif
|