#include <int_widget.hpp>
Public Member Functions |
| int | getValue () const override |
| | Gets the widget's value in terms of int.
|
| void | setValue (int const &value) override |
| | Sets the widget's value in terms of int.
|
Protected Member Functions |
| | IntWidget (gphoto2::_CameraWidget *cameraWidget) |
| | ValueWidgetBase (gphoto2::_CameraWidget *cameraWidget) |
| | CameraWidgetWrapper (gphoto2::_CameraWidget *cameraWidget) |
| void | ref () |
| | Adds a reference count to the internal gphoto2::CameraWidget struct.
|
| void | unref () |
| | Subtracts a reference count to the internal gphoto2::CameraWidget struct.
|
| gphoto2::_CameraWidget * | getRootDefault () const |
| | Gets the unwrapped CameraWidget struct pointer of the root.
|
| gphoto2::_CameraWidget * | getParentDefault () const |
| | Gets the unwrapped CameraWidget struct pointer of the parent.
|
Additional Inherited Members |
| gphoto2::_CameraWidget * | m_cameraWidget = nullptr |
Detailed Description
A class representing gphoto2 widgets which have a value that is meaningfully represented by an int
Constructor & Destructor Documentation
| gphoto2pp::IntWidget::IntWidget |
( |
gphoto2::_CameraWidget * |
cameraWidget | ) |
|
|
protected |
Member Function Documentation
| int gphoto2pp::IntWidget::getValue |
( |
| ) |
const |
|
overridevirtual |
Gets the widget's value in terms of int.
- Returns
- the widget's int value
- Note
- Direct wrapper for
gp_widget_get_value(...)
- Exceptions
-
| GPhoto2pp::exceptions::gphoto2_exception | |
Implements gphoto2pp::ValueWidgetBase< int >.
| void gphoto2pp::IntWidget::setValue |
( |
int const & |
value | ) |
|
|
overridevirtual |
Sets the widget's value in terms of int.
- Parameters
-
| [in] | value | to set the widget to |
- Note
- Direct wrapper for
gp_widget_set_value(...)
- Exceptions
-
| GPhoto2pp::exceptions::gphoto2_exception | |
Implements gphoto2pp::ValueWidgetBase< int >.
Friends And Related Function Documentation
The documentation for this class was generated from the following files: