gphoto2pp
A C++ Wrapper for libgphoto2
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
gphoto2pp::MenuWidget Class Reference

#include <menu_widget.hpp>

Inheritance diagram for gphoto2pp::MenuWidget:
Collaboration diagram for gphoto2pp::MenuWidget:

Protected Member Functions

 MenuWidget (gphoto2::_CameraWidget *cameraWidget)
- Protected Member Functions inherited from gphoto2pp::ChoicesWidget
 ChoicesWidget (gphoto2::_CameraWidget *cameraWidget)
- Protected Member Functions inherited from gphoto2pp::StringWidget
 StringWidget (gphoto2::_CameraWidget *cameraWidget)
- Protected Member Functions inherited from gphoto2pp::ValueWidgetBase< std::string >
 ValueWidgetBase (gphoto2::_CameraWidget *cameraWidget)
- Protected Member Functions inherited from gphoto2pp::CameraWidgetWrapper
 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.

Friends

class NonValueWidget

Additional Inherited Members

- Public Member Functions inherited from gphoto2pp::ChoicesWidget
int countChoices () const
 Counts the number of choices/options to set for this widget.
int getChoice () const
 Gets the currently set choice at the specified index.
void setChoice (int index)
 Sets the choice at the specified index.
std::vector< std::string > getChoices () const
 Gets all the possible choices.
std::string choiceToString (int index) const
 Gets the string representation of the choice at the specified index.
std::string choicesToString (std::string &&separator=" ") const
 Formats the choices into a string with optional separator.
- Protected Attributes inherited from gphoto2pp::CameraWidgetWrapper
gphoto2::_CameraWidget * m_cameraWidget = nullptr

Detailed Description

A class representing gphoto2 widgets which are of the widget type GPhoto2pp::CameraWidgetTypeWrapper::Menu

Constructor & Destructor Documentation

gphoto2pp::MenuWidget::MenuWidget ( gphoto2::_CameraWidget *  cameraWidget)
protected

Friends And Related Function Documentation

friend class NonValueWidget
friend

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