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_placer< Component, ItemAttribute, WidgetScheme > Class Template Referenceabstract

A component set placer used for specifying component position and size. More...

Inheritance diagram for nana::widgets::detail::compset_placer< Component, ItemAttribute, WidgetScheme >:
nana::drawerbase::treebox::internal_placer

Public Types

typedef ::nana::paint::graphicsgraph_reference
 
typedef Component component_t
 A type of widget-defined components. More...
 
typedef ItemAttribute item_attribute_t
 A type of widget-defined item attribute. More...
 
typedef WidgetScheme widget_scheme_t
 Widget scheme. More...
 

Public Member Functions

virtual ~compset_placer ()
 The destructor. More...
 
virtual void enable (component_t, bool)=0
 Enable/Disable the specified component. More...
 
virtual bool enabled (component_t) const =0
 
virtual unsigned item_height (graph_reference) const =0
 Height of an item, in pixels. More...
 
virtual unsigned item_width (graph_reference, const item_attribute_t &) const =0
 Width of an item, in pixels. More...
 
virtual bool locate (component_t comp, const item_attribute_t &attr, rectangle *r) const =0
 

Detailed Description

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

A component set placer used for specifying component position and size.

Member Typedef Documentation

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

A type of widget-defined components.

template<typename Component , typename ItemAttribute , typename WidgetScheme >
typedef ::nana::paint::graphics& nana::widgets::detail::compset_placer< Component, ItemAttribute, WidgetScheme >::graph_reference
template<typename Component , typename ItemAttribute , typename WidgetScheme >
typedef ItemAttribute nana::widgets::detail::compset_placer< Component, ItemAttribute, WidgetScheme >::item_attribute_t

A type of widget-defined item attribute.

template<typename Component , typename ItemAttribute , typename WidgetScheme >
typedef WidgetScheme nana::widgets::detail::compset_placer< Component, ItemAttribute, WidgetScheme >::widget_scheme_t

Widget scheme.

Constructor & Destructor Documentation

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

The destructor.

Member Function Documentation

template<typename Component , typename ItemAttribute , typename WidgetScheme >
virtual void nana::widgets::detail::compset_placer< Component, ItemAttribute, WidgetScheme >::enable ( component_t  ,
bool   
)
pure virtual

Enable/Disable the specified component.

template<typename Component , typename ItemAttribute , typename WidgetScheme >
virtual bool nana::widgets::detail::compset_placer< Component, ItemAttribute, WidgetScheme >::enabled ( component_t  ) const
pure virtual
template<typename Component , typename ItemAttribute , typename WidgetScheme >
virtual unsigned nana::widgets::detail::compset_placer< Component, ItemAttribute, WidgetScheme >::item_height ( graph_reference  ) const
pure virtual

Height of an item, in pixels.

template<typename Component , typename ItemAttribute , typename WidgetScheme >
virtual unsigned nana::widgets::detail::compset_placer< Component, ItemAttribute, WidgetScheme >::item_width ( graph_reference  ,
const item_attribute_t  
) const
pure virtual

Width of an item, in pixels.

template<typename Component , typename ItemAttribute , typename WidgetScheme >
virtual bool nana::widgets::detail::compset_placer< Component, ItemAttribute, WidgetScheme >::locate ( component_t  comp,
const item_attribute_t attr,
rectangle r 
) const
pure virtual

Locate a component through the specified coordinate.

Parameters
compthe component of the item.
attrthe attribute of the item.
rthe pointer refers to a rectangle for receiving the position and size of the component.
Returns
the true when the component is located by the locator.