Definition at line 74 of file RgbSlider.h. References OglGui::OglWindow::H(), mBlueVSB, mColorWnd, mGreenVSB, mRedVSB, mShadedWnd, PREF_H, PREF_W, OglGui::ValueScrollBar::SBar(), OglGui::Window::ScaleChildren(), OglGui::Window::SetAllowChildScaling(), OglGui::OglWindow::SetBorderBackground(), OglGui::OglWindow::SetBorderFillShaded(), OglGui::OglWindow::SetBorderType(), OglGui::OglWindow::SetDimensions(), OglGui::Window::SetForeground(), OglGui::ValueScrollBar::SetValueScrollBarListener(), OglGui::ValueScrollBar::ValText(), OglGui::OglWindow::W(), and OglGui::Window::Window(). 00075 { 00076 SetBorderType(BEV_ETCHED); 00077 SetDimensions(PREF_W, PREF_H); 00078 int vsbW = W()-68; 00079 int vsbH = (H()-16)/3; 00080 00081 mRedVSB = new ValueScrollBar(this,4,H() -vsbH-4, vsbW, vsbH,0,255,0); 00082 mGreenVSB = new ValueScrollBar(this,4,H() -2*vsbH-8, vsbW, vsbH,0,255,0); 00083 mBlueVSB = new ValueScrollBar(this,4,H()-3*vsbH-12, vsbW, vsbH,0,255,0); 00084 00085 mRedVSB ->SBar() ->SetBorderBackground(oglLIGHTRED); 00086 mGreenVSB->SBar() ->SetBorderBackground(oglLIGHTGREEN); 00087 mBlueVSB ->SBar() ->SetBorderBackground(oglLIGHTBLUE); 00088 00089 mRedVSB ->ValText()->SetBorderBackground(oglRED); 00090 mGreenVSB->ValText()->SetBorderBackground(oglGREEN); 00091 mBlueVSB ->ValText()->SetBorderBackground(oglBLUE); 00092 00093 mRedVSB ->ValText()->SetForeground(oglWHITE); 00094 mGreenVSB->ValText()->SetForeground(oglWHITE); 00095 mBlueVSB ->ValText()->SetForeground(oglWHITE); 00096 00097 mRedVSB ->SetValueScrollBarListener(this); 00098 mGreenVSB->SetValueScrollBarListener(this); 00099 mBlueVSB ->SetValueScrollBarListener(this); 00100 00101 int colH = shaded ? H()/2 : H(); 00102 mColorWnd = new Window(this,4+vsbW, 5, W()-vsbW-8, colH-8); 00103 mColorWnd->SetBorderType(BEV_ETCHED); 00104 mColorWnd->SetBorderBackground(oglBLACK); 00105 00106 mShadedWnd = 0; 00107 if (shaded) 00108 { 00109 mShadedWnd = new Window(this,4+vsbW, colH+4, W()-vsbW-8, colH-8); 00110 mShadedWnd->SetBorderType(BEV_ETCHED); 00111 mShadedWnd->SetBorderFillShaded(2); 00112 mShadedWnd->SetBorderBackground(oglBLACK); 00113 } 00114 00115 ScaleChildren(); 00116 SetAllowChildScaling(false); 00117 SetDimensions(w,h); 00118 }
Here is the call graph for this function:
|