Definition at line 250 of file Tabs.h. References OglGui::OglWindow::GetDimensions(), mActiveTabId, mCanvasList, mTabAnimating, mTabAnimDiv, mTabsAnimated, OglGui::OglWindow::SetAlwaysDraw(), OglGui::OglWindow::SetDimensions(), and OglGui::OglWindow::UpdateScene(). Referenced by DisplayFunc(). 00251 { 00252 if (!mTabAnimating) 00253 return; 00254 Window* wnd = mCanvasList[mActiveTabId]; 00255 int x,y,w,h; 00256 wnd->GetDimensions(x,y,w,h); 00257 int dX = (mTabsAnimated & 1) ? 1 : -1; 00258 int dY = (mTabsAnimated & 2) ? -1 : 1; 00259 if (x < -1 || x > 1 || y < -1 || y > 1) 00260 { 00261 int addX = (x==-1||x==1) ? 0 : 00262 ((mTabsAnimated & 5) ? -x / mTabAnimDiv + dX : 0); 00263 int addY = (y==-1||y==1) ? 0 : 00264 ((mTabsAnimated & 10) ? -y / mTabAnimDiv + dY : 0); 00265 addX = (addX > 40) ? 40 : addX; 00266 addX = (addX < -40) ? -40 : addX; 00267 addY = (addY > 40) ? 40 : addY; 00268 addY = (addY < -40) ? -40 : addY; 00269 wnd->SetDimensions(x+addX,y+addY,w,h); 00270 } 00271 else 00272 { 00273 SetAlwaysDraw(mTabAnimating = false); 00274 wnd->SetDimensions(0,0,w,h); 00275 wnd->UpdateScene(); 00276 } 00277 }
Here is the call graph for this function:
|