| 949 | } |
| 950 | |
| 951 | Vec2<int> Control::getParentSize() const |
| 952 | { |
| 953 | auto parent = getParent(); |
| 954 | if (parent != nullptr) |
| 955 | { |
| 956 | return parent->Size; |
| 957 | } |
| 958 | else |
| 959 | { |
| 960 | return Vec2<int>{fw().displayGetWidth(), fw().displayGetHeight()}; |
| 961 | } |
| 962 | } |
| 963 | |
| 964 | int Control::align(HorizontalAlignment HAlign, int ParentWidth, int ChildWidth) |
| 965 | { |
nothing calls this directly
no test coverage detected