| 116 | } |
| 117 | |
| 118 | void CUIRect::VSplitRight(float Cut, CUIRect *pLeft, CUIRect *pRight) const |
| 119 | { |
| 120 | CUIRect r = *this; |
| 121 | |
| 122 | if(pLeft) |
| 123 | { |
| 124 | pLeft->x = r.x; |
| 125 | pLeft->y = r.y; |
| 126 | pLeft->w = r.w - Cut; |
| 127 | pLeft->h = r.h; |
| 128 | } |
| 129 | |
| 130 | if(pRight) |
| 131 | { |
| 132 | pRight->x = r.x + r.w - Cut; |
| 133 | pRight->y = r.y; |
| 134 | pRight->w = Cut; |
| 135 | pRight->h = r.h; |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | void CUIRect::Margin(vec2 Cut, CUIRect *pOtherRect) const |
| 140 | { |
no outgoing calls
no test coverage detected