| 95 | } |
| 96 | |
| 97 | void CUIRect::VSplitLeft(float Cut, CUIRect *pLeft, CUIRect *pRight) const |
| 98 | { |
| 99 | CUIRect r = *this; |
| 100 | |
| 101 | if(pLeft) |
| 102 | { |
| 103 | pLeft->x = r.x; |
| 104 | pLeft->y = r.y; |
| 105 | pLeft->w = Cut; |
| 106 | pLeft->h = r.h; |
| 107 | } |
| 108 | |
| 109 | if(pRight) |
| 110 | { |
| 111 | pRight->x = r.x + Cut; |
| 112 | pRight->y = r.y; |
| 113 | pRight->w = r.w - Cut; |
| 114 | pRight->h = r.h; |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | void CUIRect::VSplitRight(float Cut, CUIRect *pLeft, CUIRect *pRight) const |
| 119 | { |
no outgoing calls
no test coverage detected