Nana C++ Library. Reference for users.
What we need to use nana
|
An interface for measuring content of the widget. More...
Public Types | |
using | graph_reference = paint::graphics & |
Public Member Functions | |
virtual | ~widget_content_measurer_interface ()=default |
virtual ::std::optional< size > | measure (graph_reference graph, unsigned limit_pixels, bool limit_width) const =0 |
Measures content. More... | |
virtual size | extension () const =0 |
Returns the extension to the size of widget from content extent. More... | |
An interface for measuring content of the widget.
|
virtualdefault |
|
pure virtual |
Returns the extension to the size of widget from content extent.
Implemented in nana::drawerbase::label::trigger::implement::measurer, nana::drawerbase::picture::content_measurer, and nana::drawerbase::button::trigger::measurer.
|
pure virtual |
Measures content.
graph | The graphics for the operation. |
limit_pixels | The number of pixels of the limited edge. If this parameter is zero, it is ignored. |
limit_width | True if limits the width, false if limits the height. |
Implemented in nana::drawerbase::label::trigger::implement::measurer, nana::drawerbase::picture::content_measurer, and nana::drawerbase::button::trigger::measurer.