Inviwo 0.9.12-pre
Inviwo documentation
|
Observes progress bar changes and notifies supplied javascript functions on change. More...
#include <progressbarobservercef.h>
Public Member Functions | |
ProgressBarObserverCEF (CefRefPtr< CefFrame > frame=nullptr, std::string onProgressChange="", std::string onVisibleChange="") | |
virtual void | progressChanged (float progress) override |
virtual void | progressBarVisibilityChanged (bool visible) override |
void | setOnProgressChange (std::string onChange) |
const std::string & | getOnProgressChange () const |
void | setOnProgressVisibleChange (std::string onChange) |
const std::string & | getOnProgressVisibleChange () const |
void | setFrame (CefRefPtr< CefFrame > frame) |
Public Member Functions inherited from inviwo::ProgressBarObserver | |
Public Member Functions inherited from inviwo::Observer | |
Observer (const Observer &other) | |
Observer (Observer &&other) | |
Observer & | operator= (Observer &&other) |
Observer & | operator= (const Observer &other) |
virtual | ~Observer () |
void | removeObservation (ObservableInterface *observable) |
void | removeObservations () |
Additional Inherited Members | |
Protected Member Functions inherited from inviwo::Observer | |
void | addObservation (ObservableInterface *observable) |
Protected Attributes inherited from inviwo::Observer | |
std::unordered_set< ObservableInterface * > | observables_ |
Observes progress bar changes and notifies supplied javascript functions on change.
|
overridevirtual |
Execute currently set OnProgressVisibleChange javascript function
visible | state that ProgressBar changed into |
Reimplemented from inviwo::ProgressBarObserver.
|
overridevirtual |
Execute currently set onProgressChange javascript function
progress | New progress between [0 1] |
Reimplemented from inviwo::ProgressBarObserver.