radiobuttons.h
static std::shared_ptr< RadioButtons > create(Layout &layoutVal, std::vector< std::string > buttonNames, int defaultSelection=-1, Widget::CBUserSelection cbUserSelection=Widget::CBUserSelection(), const cv::Point &pos=cv::Point(0, 0))
create a radio buttons widget
virtual const char * getType() const
getType is always implemented by derived to return the same static pointer per widget.
std::function< void(Widget *, int)> CBUserSelection
signature of a callback which gets a user selection
Definition: widget.h:48
void setUserCB(Widget::CBUserSelection cbUserSelection)
cbUserSelection will be invoked per user selection
Generated by
