Browse Source

added uiGetItemCount()

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

+ 9
- 0
oui.h View File

@@ -497,6 +497,9 @@ OUI_EXPORT int uiPrevSibling(int item);
// Querying
// --------

// return the total number of allocated items
OUI_EXPORT int uiGetItemCount();

// return the current state of the item. This state is only valid after
// a call to uiProcess().
// The returned value is one of UI_COLD, UI_HOT, UI_ACTIVE, UI_FROZEN.
@@ -934,6 +937,12 @@ int uiGetExtendItem() {
return ui_context->extend_item;
}

// return the total number of allocated items
OUI_EXPORT int uiGetItemCount() {
assert(ui_context);
return ui_context->count;
}

UIitem *uiItemPtr(int item) {
assert(ui_context && (item >= 0) && (item < ui_context->count));
return ui_context->items + item;


Loading…
Cancel
Save