Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::radio_group Class Reference

for managing checkboxs in radio mode More...

Public Member Functions

 ~radio_group ()
 
void add (checkbox &)
 Retrieves the index of checked option. It returns radio_group::npos if no checkbox is checked. More...
 
std::size_t checked () const
 
std::size_t size () const
 
template<typename Function >
void on_clicked (Function &&click_fn)
 
template<typename Function >
void on_checked (Function &&check_fn)
 

Static Public Attributes

static constexpr const std::size_t npos = static_cast<std::size_t>(-1)
 

Detailed Description

for managing checkboxs in radio mode

Examples:
widget_show.cpp, and widget_show2.cpp.

Constructor & Destructor Documentation

nana::radio_group::~radio_group ( )

Member Function Documentation

void nana::radio_group::add ( checkbox uiobj)

Retrieves the index of checked option. It returns radio_group::npos if no checkbox is checked.

std::size_t nana::radio_group::checked ( ) const
template<typename Function >
void nana::radio_group::on_checked ( Function &&  check_fn)
inline
template<typename Function >
void nana::radio_group::on_clicked ( Function &&  click_fn)
inline
std::size_t nana::radio_group::size ( ) const

Member Data Documentation

constexpr const std::size_t nana::radio_group::npos = static_cast<std::size_t>(-1)
static