|
void OglGui::ZoomPanControl::Init |
( |
int |
w, |
|
|
int |
h, |
|
|
OGLWND * |
target, |
|
|
int |
maxZoom, |
|
|
float |
ratio | |
|
) |
| | [inline, private] |
Definition at line 70 of file ZoomPanControl.h.
References OglGui::B2B, OglGui::OglWindow::ConnectTo(), OglGui::OglWindow::GetOGLWND(), OglGui::L2L, mPanWindow, mZoomControl, OglGui::R2L, OglGui::Window::SetAllowChildScaling(), OglGui::OglWindow::SetBackground(), OglGui::OglWindow::SetBorderFillOpacity(), OglGui::OglWindow::SetBorderFillShaded(), OglGui::OglWindow::SetBorderType(), OglGui::Window::SetDisableOGLViewKeys(), OglGui::Window::SetDisableOGLViewMouse(), OglGui::OglWindow::SetRoundness(), OglGui::ZoomControl::SetZoomTarget(), OglGui::T2T, OglGui::TPARENT, OglGui::Window::Window(), and ZoomPanFuncs(). 00071 {
00072 OGLWND *oW = GetOGLWND();
00073
00074 int panW = (h-4) * ratio;
00075 mPanWindow = new Window(this, 2, 2, panW, h-4);
00076 ZoomPanFuncs(mPanWindow->GetOGLWND(), target, 1, 1, "Pan");
00077 mPanWindow->SetBorderType(BEV_RAISED);
00078 mPanWindow->SetRoundness(8, 8, 8, 8);
00079 mPanWindow->SetBackground(0);
00080 mPanWindow->SetBorderFillShaded(2);
00081 mPanWindow->SetBorderFillOpacity(0.5);
00082 mPanWindow->ConnectTo(this, L2L | R2L | B2B | T2T | TPARENT);
00083
00084 mZoomControl =
00085 new OglGui::ZoomControl(this,panW+4,2,w-(panW+4), h-4, maxZoom);
00086
00087 mZoomControl->SetBorderType(BEV_RAISED);
00088 mZoomControl->SetZoomTarget(target, true);
00089 mZoomControl->SetRoundness(16, 16, 16, 16);
00090 mZoomControl->SetBorderFillShaded(2);
00091 mZoomControl->ConnectTo(this);
00092
00093 SetAllowChildScaling(false);
00094
00095 SetDisableOGLViewKeys(true);
00096 SetDisableOGLViewMouse(true);
00097 }
Here is the call graph for this function:
|