/
wxPropertyGridPage.cpp
65 lines (46 loc) · 1.41 KB
/
wxPropertyGridPage.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
* wxPropertyGrid.cpp
*
* Created on: 09.05.2012
* Author: hanmac
*/
#include "wxPropertyGridPage.hpp"
#include "wxPropertyGridInterface.hpp"
#include "wxEvtHandler.hpp"
VALUE rb_cWXPropertyGridPage;
#if wxUSE_PROPGRID
#define _self unwrap<wxPropertyGridPage*>(self)
namespace RubyWX {
namespace PropertyGridPage {
APP_PROTECT(wxPropertyGridPage)
singlereturn(GetRoot)
}
}
#endif
/* Document-method: root
* call-seq:
* root -> WX::Property
*
* returns the root property of this WX::PropertyGridPage
* ===Return value
* WX::Property
*/
DLL_LOCAL void Init_WXPropertyGridPage(VALUE rb_mWX)
{
#if 0
rb_mWXPropertyGridInterface = rb_define_module_under(rb_mWX,"PropertyGridInterface");
rb_mWXEvtHandler = rb_define_module_under(rb_mWX,"EvtHandler");
#endif
#if wxUSE_PROPGRID
using namespace RubyWX::PropertyGridPage;
rb_cWXPropertyGridPage = rb_define_class_under(rb_mWX,"PropertyGridPage",rb_cObject);
rb_define_alloc_func(rb_cWXPropertyGridPage,_alloc);
rb_undef_method(rb_cWXPropertyGridPage,"initialize_copy");
rb_undef_method(rb_cWXPropertyGridPage,"_load");
rb_undef_method(rb_cWXPropertyGridPage,"_dump");
rb_include_module(rb_cWXPropertyGridPage,rb_mWXPropertyGridInterface);
rb_include_module(rb_cWXPropertyGridPage,rb_mWXEvtHandler);
rb_define_method(rb_cWXPropertyGridPage,"root",RUBY_METHOD_FUNC(_GetRoot),0);
registerInfo<wxPropertyGridPage>(rb_cWXPropertyGridPage);
#endif
}