MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / SetWndPos

Method SetWndPos

ogsr_engine/xrGame/UIFrameRect.cpp:178–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176void CUIFrameRect::Update() {}
177
178void CUIFrameRect::SetWndPos(float x, float y)
179{
180 Fvector2 _old_pos = GetWndPos();
181 Fvector2 _new_pos = Fvector2().set(x, y);
182 if (_old_pos.similar(_new_pos, EPS, EPS))
183 return;
184
185 CUISimpleWindow::SetWndPos(_new_pos);
186 uFlags.set(flValidSize, false);
187}
188
189void CUIFrameRect::SetWndSize(const Fvector2& size)
190{

Callers 7

UpdateSpotMethod · 0.45
UpdateSpotPointerMethod · 0.45
UpdateMethod · 0.45
DrawMethod · 0.45
OnRenderMethod · 0.45
CChangeLevelWndMethod · 0.45
InitMethod · 0.45

Calls 2

setMethod · 0.45
similarMethod · 0.45

Tested by

no test coverage detected