Definition at line 16 of file OptionsLook.h. References Impala::CmdOptions::GetDouble(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), Impala::CmdOptions::GetString(), OglGui::OglWindow::SetBackground(), OglGui::OglWindow::SetBorderBackground(), OglGui::OglWindow::SetBorderFillOpacity(), OglGui::OglWindow::SetBorderFillShaded(), and OglGui::OglWindow::SetBorderType(). Referenced by OptionsLook(). 00017 { 00018 if (base.empty()) 00019 return; 00020 00021 CmdOptions& options = CmdOptions::GetInstance(); 00022 00023 int brdType = options.GetInt(base+"BorderType",10); 00024 if (brdType != 10) 00025 wnd->SetBorderType(brdType); 00026 00027 std::string colStr = options.GetString(base+"Bg"); 00028 if (!colStr.empty()) 00029 wnd->SetBackground(OglColorStr(colStr.c_str())); 00030 00031 std::string brdStr = options.GetString(base+"BorderBg"); 00032 if (!brdStr.empty()) 00033 wnd->SetBorderBackground(OglColorStr(brdStr.c_str())); 00034 00035 int colShade = options.GetInt(base+"Shade",10); 00036 float colShOpac = options.GetDouble(base+"ShadeOpacity",0.5); 00037 if (colShade != 10 && colShade != 0) 00038 { 00039 wnd->SetBorderFillShaded(colShade); 00040 wnd->SetBorderFillOpacity(colShOpac); 00041 } 00042 }
Here is the call graph for this function:
|