OLD | NEW |
(Empty) | |
| 1 #include <emscripten/bind.h> |
| 2 |
| 3 #include "ActiveFilter.h" |
| 4 |
| 5 ActiveFilter::ActiveFilter(const std::wstring& text) |
| 6 : Filter(text), disabled(false), hitCount(0), lastHit(0) |
| 7 { |
| 8 } |
| 9 |
| 10 EMSCRIPTEN_BINDINGS(activefilter) |
| 11 { |
| 12 using namespace emscripten; |
| 13 class_<ActiveFilter,base<Filter>>("ActiveFilter") |
| 14 .property("disabled", &ActiveFilter::GetDisabled, |
| 15 &ActiveFilter::SetDisabled) |
| 16 .property("hitCount", &ActiveFilter::GetHitCount, |
| 17 &ActiveFilter::SetHitCount) |
| 18 .property("lastHit", &ActiveFilter::GetLastHit, &ActiveFilter::SetLastHit); |
| 19 } |
OLD | NEW |