MAK Legion 1.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
c_view.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
5 
9 #pragma once
10 
11 
14 
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
27  LEGIONRUNTIME_DLL LEG_ReturnCode legion_viewManager_createView(ViewManagerHandle managerHandle, AttributeSetId setType, LEG_Scope scope, const char* name, ViewHandle* view);
28 
34  LEGIONRUNTIME_DLL LEG_ReturnCode legion_viewManager_destoryView(ViewManagerHandle managerHandle, ViewHandle view);
35 
39  typedef void(*C_InstanceCallback)(void* usr, const InstanceHandle* instances, UInt32 count);
40 
41 
45  typedef void(*C_InstanceUpdateCallback)(void* usr, const LEG_InstanceUpdateData* instances, UInt32 count, int cbIndex);
46 
50  typedef int(*C_PredicateCallback)(void* usr, InstanceHandle instance);
51 
56  LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_initialize(ViewHandle view);
57 
59  LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_name(ViewHandle view, const char** out);
60 
66  LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_scope(ViewHandle view, LEG_Scope* scope);
67 
73  LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_attributeSet(ViewHandle view, AttributeSetId* setType);
74 
80  LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_count(ViewHandle view, UInt32* count);
81 
88  LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_instances(ViewHandle view, InstanceHandle** instances, UInt32* count);
89 
95  LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_reset(ViewHandle view, UInt32* size);
96 
104  LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_addInstanceAddedCallback(ViewHandle view, C_InstanceCallback func, void* usr);
105 
114 
123 
132 
142 
151 
160  LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_addInstanceUpdatedCallback(ViewHandle view, C_InstanceUpdateCallback cb, const int* cbFilterList, const int cbFilterListCount, void* usr);
161 
170 
179  LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_addPredicate(ViewHandle view, C_PredicateCallback cb, void* usr);
180 
181 
189  LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_removePredicate(ViewHandle view, C_PredicateCallback cb, void* usr);
190 
191 #ifdef __cplusplus
192 }
193 #endif
194 
LEGIONRUNTIME_DLL LEG_ReturnCode legion_viewManager_createView(ViewManagerHandle managerHandle, AttributeSetId setType, LEG_Scope scope, const char *name, ViewHandle *view)
unsigned int AttributeSetId
Definition: c_api.h:46
LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_addInstanceUpdatedCallback(ViewHandle view, C_InstanceUpdateCallback cb, const int *cbFilterList, const int cbFilterListCount, void *usr)
LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_addInstanceRemovedCallback(ViewHandle view, C_InstanceCallback cb, void *usr)
LEG_ReturnCode
Definition: c_api.h:62
LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_addInstanceMovedCallback(ViewHandle view, C_InstanceCallback cb, void *usr)
LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_removeInstanceRemovedCallback(ViewHandle view, C_InstanceCallback cb, void *usr)
LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_reset(ViewHandle view, UInt32 *size)
LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_scope(ViewHandle view, LEG_Scope *scope)
LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_name(ViewHandle view, const char **out)
unsigned int UInt32
Definition: c_api.h:54
LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_removeInstanceAddedCallback(ViewHandle view, C_InstanceCallback cb, void *usr)
LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_addPredicate(ViewHandle view, C_PredicateCallback cb, void *usr)
LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_initialize(ViewHandle view)
LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_removeInstanceUpdatedCallback(ViewHandle view, C_InstanceUpdateCallback cb, void *usr)
LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_addInstanceAddedCallback(ViewHandle view, C_InstanceCallback func, void *usr)
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 ...
Definition: c_view.h:45
LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_attributeSet(ViewHandle view, AttributeSetId *setType)
LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_instances(ViewHandle view, InstanceHandle **instances, UInt32 *count)
unsigned long long ViewHandle
Definition: c_api.h:31
void(* C_InstanceCallback)(void *usr, const InstanceHandle *instances, UInt32 count)
The C_InstanceCallback function prototype The callback functions are executed when new instance get a...
Definition: c_view.h:39
int(* C_PredicateCallback)(void *usr, InstanceHandle instance)
The C_PredicateCallback function prototype The predicate callback are executes to check whether the i...
Definition: c_view.h:50
LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_removePredicate(ViewHandle view, C_PredicateCallback cb, void *usr)
unsigned long long InstanceHandle
Definition: c_api.h:32
LEG_Scope
Definition: c_api.h:216
LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_removeInstanceMovedCallback(ViewHandle view, C_InstanceCallback cb, void *usr)
unsigned long long ViewManagerHandle
Definition: c_api.h:21
Definition: c_api.h:224
LEGIONRUNTIME_DLL LEG_ReturnCode legion_view_count(ViewHandle view, UInt32 *count)
LEGIONRUNTIME_DLL LEG_ReturnCode legion_viewManager_destoryView(ViewManagerHandle managerHandle, ViewHandle view)

Document ID: Generated on Wed May 26 15:17:05 EDT 2021 from SVN revision 229676
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)