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

Public Member Functions

 content_measurer (implement *impl)
 
std::optional< sizemeasure (graph_reference, 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::picture::content_measurer::content_measurer ( implement impl)
inline

Member Function Documentation

size nana::drawerbase::picture::content_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::picture::content_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.