Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::widgets::detail::compset< Component, ItemAttribute > Class Template Referenceabstract

A component set used for accessing the components of items of a widget. More...

Inheritance diagram for nana::widgets::detail::compset< Component, ItemAttribute >:
nana::drawerbase::treebox::tlwnd_drawer

Classes

struct  comp_attribute_t
 A type of a componenet state for rendering. More...
 

Public Types

typedef Component component_t
 A type of widget-defined components. More...
 
typedef ItemAttribute item_attribute_t
 A type of widget-defined item attribute. More...
 

Public Member Functions

virtual ~compset ()
 The destrcutor. More...
 
virtual const item_attribute_titem_attribute () const =0
 Access the widget-defined item attribute. More...
 
virtual bool comp_attribute (component_t, comp_attribute_t &) const =0
 Access a specified component of the item. More...
 

Detailed Description

template<typename Component, typename ItemAttribute>
class nana::widgets::detail::compset< Component, ItemAttribute >

A component set used for accessing the components of items of a widget.

Member Typedef Documentation

template<typename Component , typename ItemAttribute >
typedef Component nana::widgets::detail::compset< Component, ItemAttribute >::component_t

A type of widget-defined components.

template<typename Component , typename ItemAttribute >
typedef ItemAttribute nana::widgets::detail::compset< Component, ItemAttribute >::item_attribute_t

A type of widget-defined item attribute.

Constructor & Destructor Documentation

template<typename Component , typename ItemAttribute >
virtual nana::widgets::detail::compset< Component, ItemAttribute >::~compset ( )
inlinevirtual

The destrcutor.

Member Function Documentation

template<typename Component , typename ItemAttribute >
virtual bool nana::widgets::detail::compset< Component, ItemAttribute >::comp_attribute ( component_t  ,
comp_attribute_t  
) const
pure virtual

Access a specified component of the item.

template<typename Component , typename ItemAttribute >
virtual const item_attribute_t& nana::widgets::detail::compset< Component, ItemAttribute >::item_attribute ( ) const
pure virtual

Access the widget-defined item attribute.