TermOx
|
Wraps a Widget_t object with a label. More...
#include <label.hpp>
Classes | |
struct | Parameters |
Public Member Functions | |
Label_wrapper (Glyph_string text=U"", Align alignment=Align::Left, int extra_left=0, int extra_right=0, Growth growth_strategy=Growth::Static) | |
Construct a new Label and wrapped Widget_t. More... | |
template<typename... Args> | |
Label_wrapper (Parameters p, Args &&... args) | |
Constructs Label with given parameters, and Widget_t with args... | |
Public Attributes | |
Label_t & | label |
Widget & | padding = this->template make_child() | padding_policy() |
Widget_t & | wrapped |
Wraps a Widget_t object with a label.
Wrapper_layout is the layout of *this, if label_last is true, the Label is after the wrapped Widget_t.
|
inlineexplicit |
Construct a new Label and wrapped Widget_t.
Only takes Label constructor args, if you need to pass in args to the wrapped Widget_t, then use the Label::Parameters overload.