#include <c4d_baselist.h>
Stores a list of GeListNode objects and has an optional callback function which the owner object can set and any other object may invoke.
Private Member Functions | |
GeListHeadCB () | |
~GeListHeadCB () | |
Navigation | |
void | InsertBefore (GeListNode *bl) |
void | InsertAfter (GeListNode *bl) |
void | InsertUnder (GeListNode *bl) |
void | InsertUnderLast (GeListNode *bl) |
void | Remove () |
Alloc/Free | |
static GeListHeadCB * | Alloc () |
static void | Free (GeListHeadCB *&v) |
Parent Callback | |
maxon::Result< void > | SetParentCallback (maxon::Delegate< maxon::Result< void >(BaseList2D &caller, Int32 type, void *message)> &&callback) |
maxon::Result< void > | InvokeParentCallback (BaseList2D &caller, Int32 type, void *message) const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |
|
static |
maxon::Result<void> SetParentCallback | ( | maxon::Delegate< maxon::Result< void >(BaseList2D &caller, Int32 type, void *message)> && | callback | ) |
Allows the owner (parent) to set a callback function that will be invoked via the InvokeParentCallback function. Only the owner of the GeListHead should invoke this.
[in,out] | callback | [in] The callback delegate to be invoked. |
maxon::Result<void> InvokeParentCallback | ( | BaseList2D & | caller, |
Int32 | type, | ||
void * | message | ||
) | const |
Executes the parent callback set with SetParentCallback
[in] | caller | The caller. |
[in] | type | The type of message. |
[in] | message | If non-null, the message data. |