MCPcopy Create free account
hub / github.com/ddnet/ddnet / VSplitRight

Method VSplitRight

src/game/client/ui_rect.cpp:118–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void 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
139void CUIRect::Margin(vec2 Cut, CUIRect *pOtherRect) const
140{

Callers 15

BeginMethod · 0.80
DoClearableEditBoxMethod · 0.80
DoButton_MenuMethod · 0.80
PopupColorPickerMethod · 0.80
RenderStartMenuMethod · 0.80
RenderServerbrowserMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected