Definition at line 574 of file ScrollBar.h. References cSbW, OglGui::Window::GuiGeneralName(), OglGui::Window::GuiName(), OglGui::Window::MapKeysTo(), mButDecr, mButIncr, mButThumb, mFixedWide, mHorizontal, mListener, mListenerData, OglGui::OglWindow::mOglWnd, mPagePressed, mPixelPos, mPixelRange, mScrollKeyHandling, mScrollLine, mScrollPage, mScrollPos, mScrollRange, mWide, ScrollThumb, OglGui::OglWindow::SetBorderType(), OglGui::Button::SetBorderType(), OglGui::Button::SetButtonListener(), OglGui::DirectionButton::SetClosed(), OglGui::DirectionButton::SetDirectionFeedback(), OglGui::Window::SetDisableOGLViewKeys(), OglGui::Window::SetDisableOGLViewMouse(), OglGui::DirectionButton::SetFilled(), OglGui::DirectionButton::SetFixedArrowSize(), OglGui::Button::SetRepeatMode(), OglGui::OglWindow::SetRoundness(), and OglGui::Button::SetShowCancelState(). 00575 { 00576 GuiGeneralName("ScrollBar"); 00577 GuiName("ScrollBar"); 00578 mHorizontal = isHor; 00579 mScrollKeyHandling = true; 00580 mFixedWide = false; 00581 mWide = wide; 00582 mPixelRange = (isHor ? mOglWnd->width : mOglWnd->height) - (2*cSbW); 00583 mScrollRange = 0; 00584 mScrollPage = 0; 00585 mScrollPos = 0; 00586 mScrollLine = 1; 00587 mPixelPos = 0; 00588 mListener = 0; 00589 mListenerData = 0; 00590 mPagePressed = false; 00591 00592 mButDecr = new DirectionButton(this, cSbW, cSbW, isHor?2.f:1.f); 00593 mButDecr->GuiName("Decr"); 00594 mButDecr->MapKeysTo(this); 00595 mButDecr->SetClosed(false); 00596 mButDecr->SetDirectionFeedback(true); 00597 mButDecr->SetFilled(false); 00598 mButDecr->SetFixedArrowSize(7); 00599 00600 mButDecr->SetRoundness(0, 0, 0, 0); 00601 mButDecr->SetBorderType(BEV_ETCHED); 00602 mButDecr->SetButtonListener(this, (void*)1); 00603 mButDecr->SetRepeatMode(true); 00604 00605 mButThumb = new ScrollThumb(this, cSbW, cSbW, "="); 00606 mButThumb->GuiName("Thumb"); 00607 mButThumb->MapKeysTo(this); 00608 mButThumb->SetButtonListener(this, (void*)2); 00609 mButThumb->SetShowCancelState(false); 00610 00611 mButIncr = new DirectionButton(this, cSbW, cSbW, isHor?0.f:3.f); 00612 mButIncr->GuiName("Incr"); 00613 mButIncr->MapKeysTo(this); 00614 mButIncr->SetClosed(false); 00615 mButIncr->SetDirectionFeedback(true); 00616 mButIncr->SetFilled(false); 00617 mButIncr->SetFixedArrowSize(7); 00618 00619 mButIncr->SetButtonListener(this, (void*)3); 00620 mButIncr->SetRepeatMode(true); 00621 mButIncr->SetRoundness(0, 0, 0, 0); 00622 mButIncr->SetBorderType(BEV_ETCHED); 00623 //mButIncr->SetShowCancelState(false); 00624 SetBorderType(BEV_ETCHED); 00625 00626 SetDisableOGLViewKeys(true); 00627 SetDisableOGLViewMouse(true); 00628 }
Here is the call graph for this function:
|