Figure out best way to implement is is_* Getters in thrust
Opened this issue · 0 comments
miketheprogrammer commented
Getters like is_maximized dont fit nicely into our asynchronous library. What is the best way to handle this.
The following C code shows the commands.
else if(method.compare("is_maximized") == 0) {
res->SetBoolean("maximized", window_->IsMaximized());
}
else if(method.compare("is_minimized") == 0) {
res->SetBoolean("minimized", window_->IsMinimized());
}
else if(method.compare("is_fullscreen") == 0) {
res->SetBoolean("fullscreen", window_->IsFullscreen());
}
else if(method.compare("is_kiosk") == 0) {
res->SetBoolean("kiosk", window_->IsKiosk());
}
else if(method.compare("is_devtools_opened") == 0) {
res->SetBoolean("opened", window_->IsDevToolsOpened());
}