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

useful for both absolute and display (sorted) positions More...

Public Member Functions

 index_pair (size_type cat_pos=0, size_type item_pos=0) noexcept
 
bool empty () const noexcept
 
void set_both (size_type n) noexcept
 
bool is_category () const noexcept
 
bool operator== (const index_pair &r) const noexcept
 
bool operator!= (const index_pair &r) const noexcept
 
bool operator< (const index_pair &r) const noexcept
 
bool operator> (const index_pair &r) const noexcept
 

Public Attributes

size_type cat
 
size_type item
 

Static Public Attributes

static constexpr const size_type npos = ::nana::npos
 

Detailed Description

useful for both absolute and display (sorted) positions

Constructor & Destructor Documentation

nana::drawerbase::listbox::index_pair::index_pair ( size_type  cat_pos = 0,
size_type  item_pos = 0 
)
inlineexplicitnoexcept

Member Function Documentation

bool nana::drawerbase::listbox::index_pair::empty ( ) const
inlinenoexcept
bool nana::drawerbase::listbox::index_pair::is_category ( ) const
inlinenoexcept
bool nana::drawerbase::listbox::index_pair::operator!= ( const index_pair r) const
inlinenoexcept
bool nana::drawerbase::listbox::index_pair::operator< ( const index_pair r) const
inlinenoexcept
bool nana::drawerbase::listbox::index_pair::operator== ( const index_pair r) const
inlinenoexcept
bool nana::drawerbase::listbox::index_pair::operator> ( const index_pair r) const
inlinenoexcept
void nana::drawerbase::listbox::index_pair::set_both ( size_type  n)
inlinenoexcept

Member Data Documentation

size_type nana::drawerbase::listbox::index_pair::cat
size_type nana::drawerbase::listbox::index_pair::item
constexpr const size_type nana::drawerbase::listbox::index_pair::npos = ::nana::npos
static