| 239 | } |
| 240 | |
| 241 | S32 xParSysEventCB(xBase* from, xBase* to, U32 toEvent, const F32* toParam, xBase* toParamWidget) |
| 242 | { |
| 243 | xParSys* t = (xParSys*)to; |
| 244 | |
| 245 | switch (toEvent) |
| 246 | { |
| 247 | case eEventReset: |
| 248 | xParSysReset(t); |
| 249 | break; |
| 250 | case eEventVisible: |
| 251 | t->visible = TRUE; |
| 252 | if (t->group != NULL) |
| 253 | { |
| 254 | xParGroupSetVisibility(t->group, t->visible); |
| 255 | } |
| 256 | break; |
| 257 | case eEventInvisible: |
| 258 | t->visible = FALSE; |
| 259 | if (t->group != NULL) |
| 260 | { |
| 261 | xParGroupSetVisibility(t->group, t->visible); |
| 262 | } |
| 263 | break; |
| 264 | case eEventOn: |
| 265 | if (t->group != NULL) |
| 266 | { |
| 267 | xParGroupSetActive(t->group, TRUE); |
| 268 | } |
| 269 | break; |
| 270 | case eEventOff: |
| 271 | if (t->group != NULL) |
| 272 | { |
| 273 | xParGroupSetActive(t->group, FALSE); |
| 274 | } |
| 275 | break; |
| 276 | } |
| 277 | |
| 278 | return TRUE; |
| 279 | } |
| 280 | |
| 281 | static void xParGroupUpdateR(xParSys* s, xParGroup* g, F32 dt); |
| 282 | static void xParGroupUpdate(xParSys* s, xParGroup* g, F32 dt); |
nothing calls this directly
no test coverage detected