A class for handle a control of type button. More...
#include <vidl_v4l2_control.h>
Public Member Functions | |
vidl_v4l2_control_button (const v4l2_queryctrl &ctr, int f) | |
void | push () const |
Push button. | |
virtual vcl_string | description () const |
A 1-line brief description. | |
v4l2_ctrl_type | type () const |
Type of control. | |
vcl_string | name () const |
Name of control. | |
int | id () const |
Id of control. | |
bool | read_only () const |
Control is read only. | |
bool | affect_other_controls () const |
Control can change value of other controls. | |
virtual void | reset () const |
Reset control. | |
Static Public Member Functions | |
static vidl_v4l2_control * | new_control (const v4l2_queryctrl &ctr, int f) |
Factory method to create new controls. | |
Protected Member Functions | |
void | set_value (int v) const |
int | get_value () const |
Protected Attributes | |
int | fd |
struct v4l2_queryctrl | ctrl_ |
A class for handle a control of type button.
Definition at line 149 of file vidl_v4l2_control.h.
vidl_v4l2_control_button::vidl_v4l2_control_button | ( | const v4l2_queryctrl & | ctr, |
int | f | ||
) | [inline] |
Definition at line 152 of file vidl_v4l2_control.h.
bool vidl_v4l2_control::affect_other_controls | ( | ) | const [inline, inherited] |
Control can change value of other controls.
Definition at line 60 of file vidl_v4l2_control.h.
virtual vcl_string vidl_v4l2_control_button::description | ( | ) | const [inline, virtual] |
A 1-line brief description.
Implements vidl_v4l2_control.
Definition at line 156 of file vidl_v4l2_control.h.
int vidl_v4l2_control::get_value | ( | ) | const [protected, inherited] |
Definition at line 64 of file vidl_v4l2_control.cxx.
int vidl_v4l2_control::id | ( | ) | const [inline, inherited] |
Id of control.
Definition at line 49 of file vidl_v4l2_control.h.
vcl_string vidl_v4l2_control::name | ( | ) | const [inline, inherited] |
Name of control.
Definition at line 44 of file vidl_v4l2_control.h.
vidl_v4l2_control * vidl_v4l2_control::new_control | ( | const v4l2_queryctrl & | ctr, |
int | f | ||
) | [static, inherited] |
Factory method to create new controls.
ctr | details from VIDIOC_QUERYCTRL |
f | associated file descriptor |
Definition at line 20 of file vidl_v4l2_control.cxx.
void vidl_v4l2_control_button::push | ( | ) | const [inline] |
Push button.
Definition at line 154 of file vidl_v4l2_control.h.
bool vidl_v4l2_control::read_only | ( | ) | const [inline, inherited] |
Control is read only.
Definition at line 51 of file vidl_v4l2_control.h.
virtual void vidl_v4l2_control::reset | ( | ) | const [inline, virtual, inherited] |
Reset control.
Reimplemented in vidl_v4l2_control_boolean, vidl_v4l2_control_menu, and vidl_v4l2_control_integer.
Definition at line 70 of file vidl_v4l2_control.h.
void vidl_v4l2_control::set_value | ( | int | v | ) | const [protected, inherited] |
Definition at line 55 of file vidl_v4l2_control.cxx.
v4l2_ctrl_type vidl_v4l2_control::type | ( | ) | const [inline, inherited] |
Type of control.
Definition at line 41 of file vidl_v4l2_control.h.
struct v4l2_queryctrl vidl_v4l2_control::ctrl_ [protected, inherited] |
Definition at line 28 of file vidl_v4l2_control.h.
int vidl_v4l2_control::fd [protected, inherited] |
Definition at line 27 of file vidl_v4l2_control.h.