aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/render/LayoutHelper.h
blob: c2377066649fe57bb966f65a3b1db8067190e078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once
#include "Base.h"

#include "MeasureRequirement.h"

namespace cru::ui::render {
float CalculateAnchorByAlignment(Alignment alignment, float start_point,
                                 float content_length, float child_length);

MeasureLength StackLayoutCalculateChildMaxLength(
    MeasureLength parent_preferred_size, MeasureLength parent_max_size,
    MeasureLength child_min_size, std::u16string_view log_tag,
    std::u16string_view exceeds_message);
}  // namespace cru::ui::render