![]() |
MAK Legion 1.1 API Documentation
|
Go to the source code of this file.
Typedefs | |
| typedef void(* | C_InstanceCallback )(void *usr, const InstanceHandle *instances, UInt32 count) |
| The C_InstanceCallback function prototype The callback functions are executed when new instance get added or an existing instance get removed. More... | |
| typedef void(* | C_InstanceUpdateCallback )(void *usr, const LEG_InstanceUpdateData *instances, UInt32 count, int cbIndex) |
| The C_InstanceUpdateCallback function prototype The callback functions are executed when an existing instance is updated. More... | |
| typedef int(* | C_PredicateCallback )(void *usr, InstanceHandle instance) |
| The C_PredicateCallback function prototype The predicate callback are executes to check whether the instance passes the user defined predicate. More... | |
| typedef void(* C_InstanceCallback)(void *usr, const InstanceHandle *instances, UInt32 count) |
The C_InstanceCallback function prototype The callback functions are executed when new instance get added or an existing instance get removed.
| typedef void(* C_InstanceUpdateCallback)(void *usr, const LEG_InstanceUpdateData *instances, UInt32 count, int cbIndex) |
The C_InstanceUpdateCallback function prototype The callback functions are executed when an existing instance is updated.
| typedef int(* C_PredicateCallback)(void *usr, InstanceHandle instance) |
The C_PredicateCallback function prototype The predicate callback are executes to check whether the instance passes the user defined predicate.
| LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_addInstanceAddedCallback | ( | ViewHandle | view, |
| C_InstanceCallback | func, | ||
| void * | usr | ||
| ) |
Add and register callback function to be called whenever new instances are added
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
Referenced by Legion::SetView< SET_TYPE >::SetView().
| LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_addInstanceMovedCallback | ( | ViewHandle | view, |
| C_InstanceCallback | cb, | ||
| void * | usr | ||
| ) |
Add and register the callback function to be called whenever an instance is moved
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
Referenced by Legion::SetView< SET_TYPE >::SetView().
| LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_addInstanceRemovedCallback | ( | ViewHandle | view, |
| C_InstanceCallback | cb, | ||
| void * | usr | ||
| ) |
Add and register instance removed callback. Executed user provided function whenever an instance is removed
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
Referenced by Legion::SetView< SET_TYPE >::SetView().
| LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_addInstanceUpdatedCallback | ( | ViewHandle | view, |
| C_InstanceUpdateCallback | cb, | ||
| const int * | cbFilterList, | ||
| const int | cbFilterListCount, | ||
| void * | usr | ||
| ) |
Add and register instance update callback. Executed user provided function whenever an instance is updated
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
Referenced by Legion::SetView< SET_TYPE >::addInstanceUpdatedCallback().
| LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_addPredicate | ( | ViewHandle | view, |
| C_PredicateCallback | cb, | ||
| void * | usr | ||
| ) |
Add and register predicate callback. Executed user provided function to check if an instance is passed the user defined predicate
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
Referenced by Legion::SetView< SET_TYPE >::SetView().
| LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_attributeSet | ( | ViewHandle | view, |
| AttributeSetId * | setType | ||
| ) |
Get the attributeSet identifier from a view
| [in] | view | The view handle |
| [out] | setType | Return the attributeSet identifier |
| LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_count | ( | ViewHandle | view, |
| UInt32 * | count | ||
| ) |
Get instance count of a view
| [in] | view | The view handle |
| [out] | count | Return the instance count |
| LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_initialize | ( | ViewHandle | view | ) |
Initialize a view object
| [in] | view | Pass in the view handle to initialize the view |
| LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_instances | ( | ViewHandle | view, |
| InstanceHandle ** | instances, | ||
| UInt32 * | count | ||
| ) |
Get instances of a view
| [in] | view | The view handle |
| [out] | instances | Return the instance handles |
| [out] | count | Return the count of instance handles |
Referenced by Legion::SetView< SET_TYPE >::rebuildInstanceList().
| LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_name | ( | ViewHandle | view, |
| const char ** | out | ||
| ) |
Get the view name from view handle
| LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_removeInstanceAddedCallback | ( | ViewHandle | view, |
| C_InstanceCallback | cb, | ||
| void * | usr | ||
| ) |
Remove and unregister the instance added callback function Do not executed user provided function whenever new instances are added
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
| LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_removeInstanceMovedCallback | ( | ViewHandle | view, |
| C_InstanceCallback | cb, | ||
| void * | usr | ||
| ) |
Remove and unregister instance move callback. Do not executed user provided function whenever an instance is moved
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
| LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_removeInstanceRemovedCallback | ( | ViewHandle | view, |
| C_InstanceCallback | cb, | ||
| void * | usr | ||
| ) |
Remove and unregister instance removed callback. Do not executed user provided function whenever an instance is removed
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
| LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_removeInstanceUpdatedCallback | ( | ViewHandle | view, |
| C_InstanceUpdateCallback | cb, | ||
| void * | usr | ||
| ) |
Remove and unregister instance updated callback. Do not executed user provided function whenever an instance is ipdated
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
Referenced by Legion::SetView< SET_TYPE >::removeInstanceUpdatedCallback().
| LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_removePredicate | ( | ViewHandle | view, |
| C_PredicateCallback | cb, | ||
| void * | usr | ||
| ) |
Remove and unregister predicate callback. Do not executed user provided function to check against user defined predicate
| [in] | view | The view handle |
| [in] | func | Application's callback function |
| [in] | usr | User data passed to the callback function |
| LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_reset | ( | ViewHandle | view, |
| UInt32 * | size | ||
| ) |
Rebuild and reset the view
| [in] | view | The view handle |
| [out] | size | Return the number of instances after reset |
| LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_scope | ( | ViewHandle | view, |
| LEG_Scope * | scope | ||
| ) |
Get the scope info from a view
| [in] | view | The view handle |
| [out] | scope | Return the scope of the view |
| LEGIONRUNTIME_DLL LEG_ReturnCode legion_viewManager_createView | ( | ViewManagerHandle | managerHandle, |
| AttributeSetId | setType, | ||
| LEG_Scope | scope, | ||
| const char * | name, | ||
| ViewHandle * | view | ||
| ) |
Creates a view object
| [in] | managerHandle | The handle of view manager |
| [in] | setType | The attributeSet type indentifier |
| [in] | scope | The scope of view, one of localView, remoteView, and all views |
| [out] | view | Return the view handle created |
Referenced by Legion::ViewManager::createSetView().
| LEGIONRUNTIME_DLL LEG_ReturnCode legion_viewManager_destoryView | ( | ViewManagerHandle | managerHandle, |
| ViewHandle | view | ||
| ) |
Delete a view object
| [in] | managerHandle | The handle of view manager |
| [in] | view | The view handle to be deleted |