void AreaAllocator::Reset(int width, int height) { freeAreas_.Clear(); IntRect initialArea(0, 0, width, height); freeAreas_.Push(initialArea); }
void AreaAllocator::Reset(int width, int height, int maxWidth, int maxHeight, bool fastMode) { doubleWidth_ = true; size_ = IntVector2(width, height); maxSize_ = IntVector2(maxWidth, maxHeight); fastMode_ = fastMode; freeAreas_.Clear(); IntRect initialArea(0, 0, width, height); freeAreas_.Push(initialArea); }
void FalagardChatHistory::configureScrollbars() { // no scrollbars? Can't configure then! if(!d_vertScrollbar) return; Rect initialArea(getTextRenderArea()); // // Set up scroll bar values // Rect renderArea(getTextRenderArea()); d_vertScrollbar->setDocumentSize(d_totalHeight); d_vertScrollbar->setPageSize(renderArea.getHeight()); d_vertScrollbar->setStepSize(ceguimax(1.0f, renderArea.getHeight() / 10.0f)); d_vertScrollbar->setScrollPosition(d_vertScrollbar->getScrollPosition()); requestRedraw(); d_parentWindow->requestRedraw(); }