void LLScrollbar::setDocParams( S32 size, S32 pos ) { mDocSize = size; setDocPos(pos); mDocChanged = TRUE; updateThumbRect(); }
void LLScrollbar::setPageSize( S32 page_size ) { if (page_size != mPageSize) { mPageSize = page_size; setDocPos(mDocPos); mDocChanged = TRUE; updateThumbRect(); } }
void LLScrollbar::setDocSize(S32 size) { if (size != mDocSize) { mDocSize = size; setDocPos(mDocPos); mDocChanged = TRUE; updateThumbRect(); } }
BOOL LLScrollbar::handleKeyHere(KEY key, MASK mask) { BOOL handled = FALSE; switch( key ) { case KEY_HOME: setDocPos( 0 ); handled = TRUE; break; case KEY_END: setDocPos( getDocPosMax() ); handled = TRUE; break; case KEY_DOWN: setDocPos( getDocPos() + mStepSize ); handled = TRUE; break; case KEY_UP: setDocPos( getDocPos() - mStepSize ); handled = TRUE; break; case KEY_PAGE_DOWN: pageDown(1); break; case KEY_PAGE_UP: pageUp(1); break; } return handled; }
void LLScrollbar::setValue(const LLSD& value) { setDocPos((S32) value.asInteger()); }
void LLScrollbar::changeLine( S32 delta, BOOL update_thumb ) { setDocPos(mDocPos + delta, update_thumb); }
bool LLScrollbar::changeLine( S32 delta, BOOL update_thumb ) { return setDocPos(mDocPos + delta, update_thumb); }