1
0
forked from 0ad/0ad
0ad/source/tools/atlas/wxJS/gui/control/mdichild.h
Ykkrosh 53bcba3368 Atlas: Updated wxJS to latest SVN version. Made the JS runtime have a greater lifetime than all the wx windows, to avoid garbage collection problems.
IGUIObject: Cache the JSObject*, to prevent some frequent allocation
while running GUI scripts.
JSInterface_IGUIObject: Fixed garbage collection issues.
JSInterface_IGUIObject, ScriptGlue: Changed to the JS_THREADSAFE form of
JS_GetClass.
Util: Avoid startup warnings on Linux caused by using unimplemented
cpu_* functions that aren't needed for anything important yet.
sysdep/unix: Changed to native line endings.

This was SVN commit r5154.
2007-06-08 22:56:01 +00:00

51 lines
1.5 KiB
C++

#ifndef _wxjs_gui_mdi_child_h
#define _wxjs_gui_mdi_child_h
namespace wxjs
{
namespace gui
{
class MDIChildFrame : public ApiWrapper<MDIChildFrame, wxMDIChildFrame>
, public wxMDIChildFrame
{
public:
MDIChildFrame() : wxMDIChildFrame()
{
}
virtual ~MDIChildFrame() {}
virtual wxToolBar* OnCreateToolBar(long style,
wxWindowID id,
const wxString& name);
static bool AddProperty(wxMDIChildFrame *p,
JSContext *cx,
JSObject *obj,
const wxString &prop,
jsval *vp);
static bool DeleteProperty(wxMDIChildFrame *p,
JSContext* cx,
JSObject* obj,
const wxString &prop);
static wxMDIChildFrame* Construct(JSContext* cx,
JSObject* obj,
uintN argc,
jsval* argv,
bool constructing);
WXJS_DECLARE_METHOD_MAP()
WXJS_DECLARE_METHOD(create)
WXJS_DECLARE_METHOD(activate)
WXJS_DECLARE_METHOD(maximize)
WXJS_DECLARE_METHOD(restore)
private:
};
}
};
#endif // _wxjs_gui_mdi_child_h