Browse Source

added uiGetAbsoluteRect()

pull/1/head
Leonard Ritter 10 years ago
parent
commit
a8df9c519b
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      oui.h

+ 7
- 1
oui.h View File

@@ -522,10 +522,16 @@ int uiGetChildCount(int item);
int uiGetChildId(int item);

// returns the items layout rectangle relative to the parent. If uiGetRect()
// is called before uiProcess(), the values of the returned rectangle are
// is called before uiLayout(), the values of the returned rectangle are
// undefined.
UIrect uiGetRect(int item);

// returns the items layout rectangle in absolute coordinates. If
// uiGetAbsoluteRect() is called before uiLayout(), the values of the returned
// rectangle are undefined.
// This function has complexity O(N) for N parents
UIrect uiGetAbsoluteRect(int item);

// returns 1 if an items absolute rectangle contains a given coordinate
// otherwise 0
int uiContains(int item, int x, int y);


Loading…
Cancel
Save