go-thrust icon indicating copy to clipboard operation
go-thrust copied to clipboard

Figure out best way to implement is is_* Getters in thrust

Open miketheprogrammer opened this issue 10 years ago • 0 comments

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());
  }

miketheprogrammer avatar Nov 17 '14 15:11 miketheprogrammer