#include <non_value_widget.hpp>
Protected Member Functions |
| NonValueWidget (gphoto2::_CameraWidget *cameraWidget) |
gphoto2::_CameraWidget * | getChildByNameWrapper (std::string const &name) const |
| Gets the child widget by the name passed in and returns the widget type that the user expects.
|
gphoto2::_CameraWidget * | getChildByLabelWrapper (std::string const &label) const |
| Gets the child widget by the label passed in and returns the widget type that the user expects.
|
gphoto2::_CameraWidget * | getChildWrapper (int index) const |
| Gets the child widget at the specified index and returns the widget type that the user expects.
|
gphoto2::_CameraWidget * | getChildByIdWrapper (int id) const |
| Gets the child widget that matches the unique id.
|
| 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 are not leaf nodes (have children), which is a Window or Section widget
Constructor & Destructor Documentation
gphoto2pp::NonValueWidget::NonValueWidget |
( |
gphoto2::_CameraWidget * |
cameraWidget | ) |
|
|
protected |
Member Function Documentation
int gphoto2pp::NonValueWidget::countChildren |
( |
| ) |
const |
Gets the number of children to this current widget.
- Returns
- the number of children
- Note
- Direct wrapper for
gp_widget_count_children(...)
- Exceptions
-
GPhoto2pp::exceptions::gphoto2_exception | |
template<typename T >
T gphoto2pp::NonValueWidget::getChild |
( |
int |
index | ) |
const |
|
inline |
Gets the child widget at the specified index.
- Template Parameters
-
- Parameters
-
[in] | index | of the child widget to get |
- Returns
- the widget
- Exceptions
-
GPhoto2pp::exceptions::gphoto2_exception | |
template<typename T >
T gphoto2pp::NonValueWidget::getChildById |
( |
int |
id | ) |
const |
|
inline |
Gets the child widget that matches the unique id.
- Template Parameters
-
- Parameters
-
[in] | id | of the child widget to get |
- Returns
- the widget
- Exceptions
-
GPhoto2pp::exceptions::gphoto2_exception | |
gphoto2::_CameraWidget* gphoto2pp::NonValueWidget::getChildByIdWrapper |
( |
int |
id | ) |
const |
|
protected |
Gets the child widget that matches the unique id.
- Template Parameters
-
- Parameters
-
[in] | id | of the child widget to get |
- Returns
- the widget
- Note
- Direct wrapper for
gp_widget_get_child_by_id(...)
- Exceptions
-
GPhoto2pp::exceptions::gphoto2_exception | |
template<typename T >
T gphoto2pp::NonValueWidget::getChildByLabel |
( |
std::string const & |
label | ) |
const |
|
inline |
Gets the child widget that matches the label.
- Template Parameters
-
- Parameters
-
[in] | label | of the child widget to get |
- Returns
- the widget
- Exceptions
-
GPhoto2pp::exceptions::gphoto2_exception | |
gphoto2::_CameraWidget* gphoto2pp::NonValueWidget::getChildByLabelWrapper |
( |
std::string const & |
label | ) |
const |
|
protected |
Gets the child widget by the label passed in and returns the widget type that the user expects.
- Template Parameters
-
- Parameters
-
[in] | label | of the child widget to get |
- Returns
- the widget
- Note
- Direct wrapper for
gp_widget_get_child_by_label(...)
- Exceptions
-
GPhoto2pp::exceptions::gphoto2_exception | |
template<typename T >
T gphoto2pp::NonValueWidget::getChildByName |
( |
std::string const & |
name | ) |
const |
|
inline |
Gets the child widget that matches the name.
- Template Parameters
-
- Parameters
-
[in] | name | of the child widget to get |
- Returns
- the widget
- Exceptions
-
GPhoto2pp::exceptions::gphoto2_exception | |
gphoto2::_CameraWidget* gphoto2pp::NonValueWidget::getChildByNameWrapper |
( |
std::string const & |
name | ) |
const |
|
protected |
Gets the child widget by the name passed in and returns the widget type that the user expects.
- Template Parameters
-
- Parameters
-
[in] | name | of the child widget to get |
- Returns
- the widget
- Note
- Direct wrapper for
gp_widget_get_child_by_name(...)
- Exceptions
-
GPhoto2pp::exceptions::gphoto2_exception | |
gphoto2::_CameraWidget* gphoto2pp::NonValueWidget::getChildWrapper |
( |
int |
index | ) |
const |
|
protected |
Gets the child widget at the specified index and returns the widget type that the user expects.
- Template Parameters
-
- Parameters
-
[in] | index | of the child widget to get |
- Returns
- the widget
- Note
- Direct wrapper for
gp_widget_get_child(...)
- Exceptions
-
GPhoto2pp::exceptions::IndexOutOfRange | |
GPhoto2pp::exceptions::gphoto2_exception | |
The documentation for this class was generated from the following files: