| 72 | } |
| 73 | |
| 74 | void CUIRect::VSplitMid(CUIRect *pLeft, CUIRect *pRight, float Spacing) const |
| 75 | { |
| 76 | CUIRect r = *this; |
| 77 | const float Cut = r.w / 2; |
| 78 | const float HalfSpacing = Spacing / 2; |
| 79 | |
| 80 | if(pLeft) |
| 81 | { |
| 82 | pLeft->x = r.x; |
| 83 | pLeft->y = r.y; |
| 84 | pLeft->w = Cut - HalfSpacing; |
| 85 | pLeft->h = r.h; |
| 86 | } |
| 87 | |
| 88 | if(pRight) |
| 89 | { |
| 90 | pRight->x = r.x + Cut + HalfSpacing; |
| 91 | pRight->y = r.y; |
| 92 | pRight->w = Cut - HalfSpacing; |
| 93 | pRight->h = r.h; |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | void CUIRect::VSplitLeft(float Cut, CUIRect *pLeft, CUIRect *pRight) const |
| 98 | { |
no outgoing calls
no test coverage detected