Merge branch 'develop' of https://github.com/JamesBremner/nana into JamesBremner-develop
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
* Nana C++ Library(http://www.nanaro.org)
|
||||
* Copyright(C) 2015-2018 Jinhao(cnjinhao@hotmail.com)
|
||||
*
|
||||
* Distributed under the Boost Software License, Version 1.0.
|
||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||
* Distributed under the Boost Software License, Version 1.0.
|
||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||
* http://www.boost.org/LICENSE_1_0.txt)
|
||||
*
|
||||
* @file: nana/gui/widgets/group.hpp
|
||||
@@ -71,9 +71,16 @@ namespace nana{
|
||||
/// Enables/disables the radio mode which is single selection
|
||||
group& radio_mode(bool);
|
||||
|
||||
/// Returns the index of option in radio_mode, it throws a logic_error if radio_mode is false.
|
||||
/// Returns the index of selected option in radio_mode, it throws a logic_error if radio_mode is false.
|
||||
std::size_t option() const;
|
||||
|
||||
/** Set check/unchecked status of specified option
|
||||
@param[in] pos zero-based index of option to set
|
||||
@param[in] check status required, defaults to checked
|
||||
throws an out_of_range if !(pos < number of options)
|
||||
*/
|
||||
void option_check( std::size_t pos, bool check = true );
|
||||
|
||||
/// Determines whether a specified option is checked, it throws an out_of_range if !(pos < number of options)
|
||||
bool option_checked(std::size_t pos) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user