| 906 | } |
| 907 | |
| 908 | sp<Control> Control::getAncestor(sp<Control> Parent) |
| 909 | { |
| 910 | sp<Control> ancestor = shared_from_this(); |
| 911 | while (ancestor != nullptr) |
| 912 | { |
| 913 | if (ancestor->getParent() == Parent) |
| 914 | { |
| 915 | break; |
| 916 | } |
| 917 | else |
| 918 | { |
| 919 | ancestor = ancestor->getParent(); |
| 920 | } |
| 921 | } |
| 922 | return ancestor; |
| 923 | } |
| 924 | |
| 925 | void Control::setRelativeWidth(float widthFactor) |
| 926 | { |
no test coverage detected