#include <InspectorRow.h>
|
| | InspectorRow (const QString &lbl, QWidget *parent=nullptr) |
| |
| | InspectorRow (const QString &lbl, QWidget *customEditor, std::function< void()> updateLogic) |
| |
| InspectorRow & | addVec3 (const std::function< glm::vec3()> &get, const std::function< void(glm::vec3)> &set, const QString &unit="", const std::function< void(Vector3Widget *)> &onInit=nullptr) |
| |
| InspectorRow & | addScalar (const std::function< double()> &get, const std::function< void(double)> &set, const QString &unit="", const std::function< void(ScalarWidget *)> &onInit=nullptr) |
| |
| InspectorRow & | addCheckbox (const std::function< bool()> &get, const std::function< void(bool)> &set, const std::function< void(QCheckBox *)> &onInit=nullptr) |
| |
| InspectorRow & | addButton (const QString &text, const std::function< void()> &onClick, const std::function< void(QPushButton *)> &onInit=nullptr) |
| |
| QString | getLabel () const |
| |
| QWidget * | getEditor () const |
| |
| void | refresh () |
| |
| void | setEnabled (bool enabled) |
| |
Definition at line 14 of file InspectorRow.h.
◆ InspectorRow() [1/2]
| InspectorRow::InspectorRow |
( |
const QString & |
lbl, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ InspectorRow() [2/2]
| InspectorRow::InspectorRow |
( |
const QString & |
lbl, |
|
|
QWidget * |
customEditor, |
|
|
std::function< void()> |
updateLogic |
|
) |
| |
◆ addButton()
| InspectorRow & InspectorRow::addButton |
( |
const QString & |
text, |
|
|
const std::function< void()> & |
onClick, |
|
|
const std::function< void(QPushButton *)> & |
onInit = nullptr |
|
) |
| |
◆ addCheckbox()
| InspectorRow & InspectorRow::addCheckbox |
( |
const std::function< bool()> & |
get, |
|
|
const std::function< void(bool)> & |
set, |
|
|
const std::function< void(QCheckBox *)> & |
onInit = nullptr |
|
) |
| |
◆ addScalar()
| InspectorRow & InspectorRow::addScalar |
( |
const std::function< double()> & |
get, |
|
|
const std::function< void(double)> & |
set, |
|
|
const QString & |
unit = "", |
|
|
const std::function< void(ScalarWidget *)> & |
onInit = nullptr |
|
) |
| |
◆ addVec3()
| InspectorRow & InspectorRow::addVec3 |
( |
const std::function< glm::vec3()> & |
get, |
|
|
const std::function< void(glm::vec3)> & |
set, |
|
|
const QString & |
unit = "", |
|
|
const std::function< void(Vector3Widget *)> & |
onInit = nullptr |
|
) |
| |
◆ getEditor()
| QWidget * InspectorRow::getEditor |
( |
| ) |
const |
|
inline |
◆ getLabel()
| QString InspectorRow::getLabel |
( |
| ) |
const |
|
inline |
◆ refresh()
| void InspectorRow::refresh |
( |
| ) |
|
|
inline |
◆ setEnabled()
| void InspectorRow::setEnabled |
( |
bool |
enabled | ) |
|
|
inline |
The documentation for this class was generated from the following files: