MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / getParentSize

Method getParentSize

forms/control.cpp:951–962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

949}
950
951Vec2<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
964int Control::align(HorizontalAlignment HAlign, int ParentWidth, int ChildWidth)
965{

Callers

nothing calls this directly

Calls 2

displayGetWidthMethod · 0.80
displayGetHeightMethod · 0.80

Tested by

no test coverage detected