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

Method VSplitLeft

src/game/client/ui_rect.cpp:97–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void 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
118void CUIRect::VSplitRight(float Cut, CUIRect *pLeft, CUIRect *pRight) const
119{

Callers 15

BeginMethod · 0.80
DoNextRowMethod · 0.80
DoEditBox_SearchMethod · 0.80
DoScrollbarHMethod · 0.80
PopupColorPickerMethod · 0.80
RenderStartMenuMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected