Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
miketheprogrammer opened this issue Nov 17, 2014 · 0 comments
Open

Comments

@miketheprogrammer
Copy link
Owner

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());
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant