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

void OglGui::FourPanesWindow::LayoutPanes (  )  [inline]

Definition at line 37 of file FourPanesWindow.h.

References OglGui::SizableWindow::AllDir, OglGui::B2B, OglGui::B2T, DoConnect(), OglGui::OglWindow::GetDimensions(), OglGui::L2L, OglGui::L2R, mLayedOut, mPanes, mSizeKnob, OglGui::R2L, OglGui::R2R, OglGui::SizableWindow::SetAllowSizeDirections(), OglGui::OglWindow::SetBorderBackground(), OglGui::OglWindow::SetDimensions(), OglGui::Window::SetDoStateFeedback(), OglGui::SizableWindow::SetMoveFeedback(), OglGui::Window::SetReposChildren(), OglGui::T2B, and OglGui::T2T.

Referenced by OglGui::OglDemo::Titled4Woggels().

00038     {
00039         int x,y,w,h;
00040 
00041         if (mLayedOut)
00042             return;
00043 
00044         mLayedOut = true;
00045 
00046         GetDimensions(x,y,w,h);
00047 
00048         for (int i=0; i<4; i++)
00049             if (mPanes[i])
00050                 mPanes[i]->SetDimensions((i%2)*w/2, (i/2)*h/2, w/2, h/2);
00051 
00052         mSizeKnob = new SizableWindow(this, w/2-8, h/2-8, 16, 16);
00053         mSizeKnob->SetAllowSizeDirections(SizableWindow::AllDir, false);
00054         mSizeKnob->SetBorderBackground(0x80ff0000);
00055         mSizeKnob->SetMoveFeedback(true);
00056         mSizeKnob->SetDoStateFeedback(true);
00057 
00058         if (mPanes[0])
00059             DoConnect(mPanes[0], T2B | R2L, B2B | L2L);
00060         if (mPanes[1])
00061             DoConnect(mPanes[1], T2B | L2R, B2B | R2R);
00062         if (mPanes[2])
00063             DoConnect(mPanes[2], B2T | R2L, T2T | L2L);
00064         if (mPanes[3])
00065             DoConnect(mPanes[3], B2T | L2R, T2T | R2R);
00066 
00067         SetReposChildren(false, false);
00068     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:01:25 2010 for ImpalaSrc by  doxygen 1.5.1