Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::MinMaxPropertyWidgetCEF< T > Class Template Reference

#include <minmaxpropertywidgetcef.h>

+ Inheritance diagram for inviwo::MinMaxPropertyWidgetCEF< T >:

Public Member Functions

 MinMaxPropertyWidgetCEF (MinMaxProperty< T > *property, CefRefPtr< CefFrame > frame=nullptr, std::string htmlId="")
 
virtual ~MinMaxPropertyWidgetCEF ()=default
 
virtual void updateFromProperty () override
 
virtual bool onQuery (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, int64, const CefString &request, bool, CefRefPtr< CefMessageRouterBrowserSide::Handler::Callback > callback) override
 
- Public Member Functions inherited from inviwo::PropertyWidgetCEF
 PropertyWidgetCEF (Property *prop, std::unique_ptr< PropertyJSONConverter > converter, CefRefPtr< CefFrame > frame=nullptr, std::string onChange="")
 
void setFrame (CefRefPtr< CefFrame > frame)
 
void setOnChange (std::string_view onChange)
 
const std::string & getOnChange () const
 
void setPropertyObserverCallback (std::string_view propertyObserverCallback)
 
const std::string & getPropertyObserverCallback () const
 
virtual bool onQuery (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, int64_t query_id, const CefString &request, bool persistent, CefRefPtr< CefMessageRouterBrowserSide::Handler::Callback > callback)
 
- Public Member Functions inherited from inviwo::PropertyWidget
 PropertyWidget (Property *property)
 
 PropertyWidget (const PropertyWidget &)
 
 PropertyWidget (PropertyWidget &&)
 
PropertyWidgetoperator= (const PropertyWidget &)
 
PropertyWidgetoperator= (PropertyWidget &&)
 
virtual ~PropertyWidget ()
 
virtual PropertyEditorWidgetgetEditorWidget () const
 
virtual bool hasEditorWidget () const
 
virtual PropertygetProperty ()
 
- Public Member Functions inherited from inviwo::PropertyObserver
- 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::PropertyWidgetCEF
virtual void onSetIdentifier (Property *property, const std::string &identifier) override
 
virtual void onSetDisplayName (Property *property, const std::string &displayName) override
 
virtual void onSetSemantics (Property *property, const PropertySemantics &semantics) override
 
virtual void onSetReadOnly (Property *property, bool readonly) override
 
virtual void onSetVisible (Property *property, bool visible) override
 
- Protected Member Functions inherited from inviwo::Observer
void addObservation (ObservableInterface *observable)
 
- Protected Attributes inherited from inviwo::PropertyWidgetCEF
std::unique_ptr< PropertyJSONConverterconverter_
 
std::string onChange_
 
std::string propertyObserverCallback_
 Callback to execute in javascript when property changes.
 
CefRefPtr< CefFrame > frame_
 Execute on any PropertyObserver notifications.
 
- Protected Attributes inherited from inviwo::PropertyWidget
Propertyproperty_ = nullptr
 
- Protected Attributes inherited from inviwo::Observer
std::unordered_set< ObservableInterface * > observables_
 

Detailed Description

template<typename T>
class inviwo::MinMaxPropertyWidgetCEF< T >

Widget for synchronizing HTML elements:

<input type="range">
<input type="number">

where there are min and max attributes. The min and max attributes correspond to MinMaxProperty<T>::value Optionally, there may also be start, end, step and minSeparation attributes.

See also
MinMaxProperty<T>

Constructor & Destructor Documentation

◆ MinMaxPropertyWidgetCEF()

template<typename T >
inviwo::MinMaxPropertyWidgetCEF< T >::MinMaxPropertyWidgetCEF ( MinMaxProperty< T > * property,
CefRefPtr< CefFrame > frame = nullptr,
std::string htmlId = "" )

The PropertyWidget will register it self with the property.

◆ ~MinMaxPropertyWidgetCEF()

template<typename T >
virtual inviwo::MinMaxPropertyWidgetCEF< T >::~MinMaxPropertyWidgetCEF ( )
virtualdefault

The PropertyWidget will deregister it self with the property.

Member Function Documentation

◆ updateFromProperty()

template<typename T >
void inviwo::MinMaxPropertyWidgetCEF< T >::updateFromProperty ( )
overridevirtual

Update HTML widget using calls javascript oninput() function on element. Assumes that widget is HTML input attribute.

Reimplemented from inviwo::PropertyWidgetCEF.


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