Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void OglGui::ScrollWnd::Init ( int  hor,
int  vert,
bool  is2D,
int  sbW 
) [inline, protected]

Definition at line 177 of file ScrollWnd.h.

References OglGui::ALLSIDES, OglGui::OglWindow::ConnectTo(), mAdjusting, mContent, mDisplayFollowMode, mHolder, mHorizontalScrollBar, mInitialized, OglGui::OglWindow::mOglWnd, mReshapeFollowMode, mVerticalScrollBar, OglGui::Window::SetAllowScaling(), OglGui::OglWindow::SetBorderType(), OglGui::ScrollBar::SetLineIncrement(), OglGui::ScrollBar::SetScrollBarListener(), OglGui::TPARENT, and OglGui::Window::Window().

00178     {
00179         int     holdW = mOglWnd->width - 2 - ((vert!=0) ? sbW : 0);
00180         int     holdH = mOglWnd->height - 2 - ((hor!=0) ? sbW : 0);
00181 
00182         mInitialized = false;
00183         mAdjusting = false;
00184         mDisplayFollowMode = 1;
00185         mReshapeFollowMode = 2;
00186         mHorizontalScrollBar = 0;
00187         mVerticalScrollBar = 0;
00188 
00189         SetBorderType(BEV_ETCHED);
00190 
00191         if (hor != 0){
00192             mHorizontalScrollBar =
00193                 new WindowScrollBar(this, true, hor==1, sbW,
00194                                     (vert==0)?0:(vert==1)?sbW:-sbW);
00195             mHorizontalScrollBar->SetScrollBarListener(this, (void*)1);
00196             mHorizontalScrollBar->SetLineIncrement(16);
00197         }
00198         if (vert != 0){
00199             mVerticalScrollBar =
00200                 new WindowScrollBar(this, false, vert==1, sbW,
00201                                     (hor==0)?0:(hor==1)?sbW:-sbW);
00202             mVerticalScrollBar->SetScrollBarListener(this, (void*)1);
00203             mVerticalScrollBar->SetLineIncrement(16);
00204         }
00205 
00206         mHolder = new Window(this, 2 + ((vert==-1)?sbW:0), ((hor==1)?sbW:0),
00207                              holdW, holdH);
00208         mHolder->SetAllowScaling(false);
00209         mHolder->ConnectTo(this, ALLSIDES|TPARENT);
00210         mContent = new Window(mHolder, 0, 0, holdW, holdH, is2D);
00211     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:05:21 2010 for ImpalaSrc by  doxygen 1.5.1