Definition at line 33 of file SideBar.h. References OglGui::B2B, OglGui::B2T, OglGui::OglWindow::ConnectTo(), East, OglGui::Window::GetParent(), OglGui::L2L, OglGui::L2R, mSideConnect, North, OglGui::R2L, OglGui::R2R, OglGui::OglWindow::SetDimensions(), South, OglGui::T2B, OglGui::T2T, OglGui::TPARENT, West, OglGui::OglWindow::WndHeight(), and OglGui::OglWindow::WndWidth(). Referenced by Init(). 00034 { 00035 Window* parent = this->GetParent(); 00036 int pW = parent->WndWidth(); 00037 int pH = parent->WndHeight(); 00038 00039 if (mSideConnect) 00040 delete mSideConnect; 00041 00042 mSideConnect = 0; 00043 00044 if (wndSide == North) 00045 { 00046 SetDimensions(lM, pH-size-tM, pW-lM-rM, size); 00047 mSideConnect = ConnectTo(parent, L2L | R2R | B2T | T2T | TPARENT); 00048 } 00049 if (wndSide == East) 00050 { 00051 SetDimensions(pW-size-rM, bM, size, pH-bM-tM); 00052 mSideConnect = ConnectTo(parent, L2R | R2R | B2B | T2T | TPARENT); 00053 } 00054 if (wndSide == South) 00055 { 00056 SetDimensions(lM, bM, pW-lM-rM, size); 00057 mSideConnect = ConnectTo(parent, L2L | R2R | B2B | T2B | TPARENT); 00058 } 00059 if (wndSide == West) 00060 { 00061 SetDimensions(lM, bM, size, pH-bM-tM); 00062 mSideConnect = ConnectTo(parent, L2L | R2L | B2B | T2T | TPARENT); 00063 } 00064 }
Here is the call graph for this function:
|