Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::drawerbase::button::trigger::measurer Class Reference
Inheritance diagram for nana::drawerbase::button::trigger::measurer:
nana::dev::widget_content_measurer_interface

Public Member Functions

 measurer (trigger *t)
 
std::optional< sizemeasure (graph_reference graph, unsigned limit_pixels, bool) const override
 Measures content. More...
 
size extension () const override
 Returns the extension to the size of widget from content extent. More...
 
- Public Member Functions inherited from nana::dev::widget_content_measurer_interface
virtual ~widget_content_measurer_interface ()=default
 

Additional Inherited Members

- Public Types inherited from nana::dev::widget_content_measurer_interface
using graph_reference = paint::graphics &
 

Constructor & Destructor Documentation

nana::drawerbase::button::trigger::measurer::measurer ( trigger t)
inline

Member Function Documentation

size nana::drawerbase::button::trigger::measurer::extension ( ) const
inlineoverridevirtual

Returns the extension to the size of widget from content extent.

Returns
the width and height of extension to the widget size.

Implements nana::dev::widget_content_measurer_interface.

std::optional<size> nana::drawerbase::button::trigger::measurer::measure ( graph_reference  graph,
unsigned  limit_pixels,
bool  limit_width 
) const
inlineoverridevirtual

Measures content.

Parameters
graphThe graphics for the operation.
limit_pixelsThe number of pixels of the limited edge. If this parameter is zero, it is ignored.
limit_widthTrue if limits the width, false if limits the height.
Returns
the size of content.

Implements nana::dev::widget_content_measurer_interface.