Debian Codegraph @

wxcrafter/xrc_handlers/myxh_glcanvas.cpp

raw
1 #include "OpenGLCanvas.h"
2 #include "wx/wxprec.h"
3
4 #ifdef __BORLANDC__
5 #pragma hdrstop
6 #endif
7
8 #include "myxh_glcanvas.h"
9 #include <wx/panel.h>
10
11 MyWxGLCanvasXmlHandler::MyWxGLCanvasXmlHandler()
12 : wxXmlResourceHandler()
13 {
14 AddWindowStyles();
15 }
16
17 wxObject* MyWxGLCanvasXmlHandler::DoCreateResource()
18 {
19 OpenGLCanvas* panel = new OpenGLCanvas(m_parentAsWindow);
20 panel->SetName(GetName());
21 panel->Bitmap()->SetName(GetName());
22 SetupWindow(panel);
23 return panel;
24 }
25
26 bool MyWxGLCanvasXmlHandler::CanHandle(wxXmlNode* node) { return IsOfClass(node, wxT("wxGLCanvas")); }