243 {
244 float pos_x, pos_y = 0.0;
245
247
250 {
252 }
254 else
255 {
257
258 pos_x = screen_pos[0];
259 pos_y = screen_pos[1];
260 }
261
262 pos_x = Math.Ceil(pos_x);
263 pos_y = Math.Ceil(pos_y);
264
266
267 float screen_w = 0;
268 float screen_h = 0;
269
270 float wdg_w = 0;
271 float wdg_h = 0;
272
273 parentWdg.GetScreenSize(screen_w, screen_h);
274 m_Root.GetSize(wdg_w, wdg_h);
275
276 if (pos_x + wdg_w > screen_w)
277 pos_x = screen_w - wdg_w;
278
279 if (pos_y + wdg_h > screen_h)
280 pos_y = screen_h - wdg_h;
281
282 m_Root.SetPos(pos_x, pos_y);
283 }
void GetOnScreenPosition(out float x, out float y)
vector TransformToScreenPos(vector pWorldPos)
transform world pos to screen pos (related to parent widget size)
ref ATCCachedObject m_CachedObject
void PrepareCursorContent()