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

void OglGui::SixButtonCross::Init ( int  w,
int  h,
int  brdType,
int  btnT,
int  margin 
) [inline, private]

Definition at line 62 of file SixButtonCross.h.

References mButtons, OglGui::Window::ScaleChildren(), OglGui::Window::SetAllowChildScaling(), and OglGui::OglWindow::SetBorderType().

00063     {
00064         int sX = (w-2*margin)/3;
00065         int sY = (h-2*margin)/3;
00066         int x = margin;
00067         int y = margin;
00068 
00069         SetBorderType(brdType);
00070 
00071         mButtons[0] = new Button(this,x+sX,  y+3*sY/2,sX, sY/2, "F", btnT,true);
00072         mButtons[1] = new Button(this,x+sX,  y+sY,    sX, sY/2, "B", btnT,true);
00073         mButtons[2] = new Button(this,x,     y+sY,    sX, sY,   "L", btnT,true);
00074         mButtons[3] = new Button(this,x+2*sX,y+sY,    sX, sY,   "R", btnT,true);
00075         mButtons[4] = new Button(this,x+sX,  y+2*sY,  sX, sY,   "U", btnT,true);
00076         mButtons[5] = new Button(this,x+sX,  y,       sX, sY,   "D", btnT,true);
00077         ScaleChildren();
00078         SetAllowChildScaling(false);
00079     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:05:39 2010 for ImpalaSrc by  doxygen 1.5.1