void cxTimeLineAdd(cxAny pav,cxFloat add) { cxTimeLine this = pav; cxFloat time = add; cxNumber last = cxArrayLast(this->times); if(last != NULL){ time += cxNumberToFloat(last); } cxTimeLineSet(pav, time); }
static void cxTimeLineInit(cxAny pav) { cxTimeLine this = pav; cxNumber last = cxArrayLast(this->times); if(last == NULL){ cxActionStop(this); return; } this->cxAction.duration = cxNumberToFloat(last) + 1.0f; this->index = -1; }
cxAny cxStackTop(cxStack stack) { return cxArrayLast(stack->array); }
cxAny cxStackTop(cxAny pstack) { CX_ASSERT_THIS(pstack, cxStack); return cxArrayLast(this->array); }