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

OglGui::WindowScrollBar::WindowScrollBar ( Window parent,
bool  horizontal,
bool  stdSide = true,
int  wide = 16,
int  leaveRoom = 0,
int  leaveBorderRoom = 0 
) [inline]

Definition at line 21 of file WindowScrollBar.h.

References OglGui::B2B, OglGui::B2T, OglGui::OglWindow::ConnectTo(), OglGui::L2L, OglGui::L2R, OglGui::R2L, OglGui::R2R, OglGui::Window::SetAllowScaling(), OglGui::ScrollBar::SetPosition(), OglGui::T2B, OglGui::T2T, OglGui::TPARENT, OglGui::OglWindow::WndHeight(), and OglGui::OglWindow::WndWidth().

00023         : ScrollBar(parent, 0, 0, wide, wide, horizontal) 
00024     {
00025         int         x = leaveBorderRoom;
00026         int         y = leaveBorderRoom;
00027         int         conMode = TPARENT; 
00028 
00029         SetAllowScaling(false);
00030         if (horizontal)
00031         {
00032             int w = parent->WndWidth() - abs(leaveRoom) - 2*leaveBorderRoom;
00033             if (leaveRoom < 0)
00034                 x -= leaveRoom;
00035             if (!stdSide)
00036                 y = parent->WndHeight() - wide - leaveBorderRoom;
00037             SetPosition(x, y, w, wide);
00038             conMode |= stdSide ? L2L|R2R|B2B|T2B : L2L|R2R|T2T|B2T;
00039             ConnectTo(parent, conMode);
00040         }
00041         else
00042         {
00043             int h = parent->WndHeight() - abs(leaveRoom) - 2*leaveBorderRoom;
00044             if (leaveRoom > 0)
00045                 y += leaveRoom;
00046             if (stdSide)
00047                 x = parent->WndWidth() - wide - leaveBorderRoom;
00048             SetPosition(x, y, wide, h);
00049             conMode |= stdSide ? T2T|B2B|R2R|L2R : T2T|B2B|L2L|R2L;
00050             ConnectTo(parent, conMode);
00051         }
00052     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:27:24 2011 for ImpalaSrc by  doxygen 1.5.1