Ejemplo n.º 1
0
void CL_SpanLayout_Impl::layout(CL_GraphicContext &gc, int max_width)
{
	layout_lines(gc, max_width);

	switch (alignment)
	{
	case cl_right: align_right(max_width); break;
	case cl_center: align_center(max_width); break;
	case cl_justify: align_justify(max_width); break;
	case cl_left:
	default: break;
	}
}
Ejemplo n.º 2
0
 inline auto align_center_middle(Subject&& subject)
 {
    return align_center(align_middle(std::forward<Subject>(subject)));
 }
Ejemplo n.º 3
0
 inline auto align_center_bottom(Subject&& subject)
 {
    return align_center(align_bottom(std::forward<Subject>(subject)));
 }
Ejemplo n.º 4
0
 inline auto align_center_top(Subject&& subject)
 {
    return align_center(align_top(std::forward<Subject>(subject)));
 }