Skip to content

New GblObject Methods Needed #38

@gyrovorbis

Description

@gyrovorbis

Given how much new functionality has been added, the new children property, and the new GblRingList iteration semantics, I propose GblObject needs at least the following:

- void GblObject_setChildren(GBL_SELF, const GblRingList* pList): sets a all children to the given list

  • void GblObject_addChildren(GBL_SELF, const GblRingList* pList): add a list of children to existing list
  • #define GblObject_foreachChild(GBL_SELF, name, type/*=GblObject**/): for-loop-based iteration method (very much needed, more efficient than looping by index)
  • GblBool GblObject_iterateChildren(GBL_SELF, GblObjectIterFn iter, void *pUd/*=NULL*/): iterate over children by calling an iterator function with optional userdata which can return true to early-exit

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions