|
@@ -457,6 +457,27 @@ cmDspRC_t cmDspUiTakeSeqRendCreate( cmDspCtx_t* ctx, cmDspInst_t* inst, unsigne
|
457
|
457
|
return rc;
|
458
|
458
|
}
|
459
|
459
|
|
|
460
|
+cmDspRC_t cmDspUi2dCreate( cmDspCtx_t* ctx, cmDspInst_t* inst, unsigned xVarId, unsigned yVarId, unsigned radiusVarId, unsigned angleVarId)
|
|
461
|
+{
|
|
462
|
+ cmDspRC_t rc;
|
|
463
|
+ unsigned arr[] = { xVarId, yVarId, radiusVarId, angleVarId };
|
|
464
|
+ cmDspValue_t v;
|
|
465
|
+ unsigned vn = sizeof(arr)/sizeof(arr[0]);
|
|
466
|
+ cmDsvSetUIntMtx(&v,arr,vn,1);
|
|
467
|
+
|
|
468
|
+ // tell the UI to create a sequence render control
|
|
469
|
+ if((rc = _cmDspUiMsg( ctx, kUiSelAsId, kTwodDuiId, 0, inst, cmInvalidId, &v )) != kOkDspRC )
|
|
470
|
+ return cmDspInstErr(ctx,inst,kUiEleCreateFailDspRC,"2-d UI element create failed.");
|
|
471
|
+
|
|
472
|
+ // Setting kUiDsvFl will cause variable values to be sent to the UI whenever they change.
|
|
473
|
+ cmDspInstVarSetFlags( ctx, inst, xVarId, kUiDsvFl );
|
|
474
|
+ cmDspInstVarSetFlags( ctx, inst, yVarId, kUiDsvFl );
|
|
475
|
+ cmDspInstVarSetFlags( ctx, inst, radiusVarId, kUiDsvFl );
|
|
476
|
+ cmDspInstVarSetFlags( ctx, inst, angleVarId, kUiDsvFl );
|
|
477
|
+
|
|
478
|
+ return rc;
|
|
479
|
+}
|
|
480
|
+
|
460
|
481
|
|
461
|
482
|
cmDspRC_t cmDspUiNewColumn( cmDspCtx_t* ctx, unsigned colW )
|
462
|
483
|
{
|