Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::ProgressBarObserverCEF Class Reference

Observes progress bar changes and notifies supplied javascript functions on change. More...

#include <progressbarobservercef.h>

+ Inheritance diagram for inviwo::ProgressBarObserverCEF:

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)
 
Observeroperator= (Observer &&other)
 
Observeroperator= (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_
 

Detailed Description

Observes progress bar changes and notifies supplied javascript functions on change.

Member Function Documentation

◆ progressBarVisibilityChanged()

virtual void inviwo::ProgressBarObserverCEF::progressBarVisibilityChanged ( bool visible)
overridevirtual

Execute currently set OnProgressVisibleChange javascript function

Parameters
visiblestate that ProgressBar changed into

Reimplemented from inviwo::ProgressBarObserver.

◆ progressChanged()

virtual void inviwo::ProgressBarObserverCEF::progressChanged ( float progress)
overridevirtual

Execute currently set onProgressChange javascript function

Parameters
progressNew progress between [0 1]

Reimplemented from inviwo::ProgressBarObserver.


The documentation for this class was generated from the following file: