uint32_t IfThenElseIterator::getStateSizeOfSubtree() const { return getStateSize() + theCondIter->getStateSizeOfSubtree() + theThenIter->getStateSizeOfSubtree() + theElseIter->getStateSizeOfSubtree(); }
static void themeSize(HDC dc, int *width, int *height, HTHEME theme) { SIZE size; int cbState; size = getStateSize(dc, 0, theme); for (cbState = 1; cbState < checkboxnStates; cbState++) { SIZE against; against = getStateSize(dc, cbState, theme); if (size.cx != against.cx || size.cy != against.cy) xpanic("size mismatch in checkbox states", GetLastError()); } *width = (int) size.cx; *height = (int) size.cy; }
uint32_t TransformIterator::getStateSizeOfSubtree() const { uint32_t lSize = getStateSize(); CopyClause::const_iter_t lIter = theCopyClauses.begin(); CopyClause::const_iter_t lEnd = theCopyClauses.end(); for ( ; lIter != lEnd ; ++lIter ) { lSize += lIter->theInput->getStateSizeOfSubtree(); } lSize += theModifyIter->getStateSizeOfSubtree(); lSize += thePulHolderIter->getStateSizeOfSubtree(); lSize += theApplyIter->getStateSizeOfSubtree(); lSize += theReturnIter->getStateSizeOfSubtree(); return lSize; }