void Settings::SetDefaults() //////////////////////////////////////////////////////////////////////// { SetAskOnExit(false); SetLanguage("English"); SetWindowLeft(100); SetWindowTop(100); SetWindowWidth(600); SetWindowHeight(400); SetLeftPanelPath("/"); SetRightPanelPath("/"); SetTerminalWindow("Genesis Terminal"); }
void WindowAttributesPickle::SetWindowSize(const wxString& window, const wxSize& size) { SetWindowWidth(window, size.GetWidth()); SetWindowHeight(window, size.GetHeight()); }
//----------------------------------------------------------------------------- int luaSetWindowWidth(lua_State* pLuaState) { SoLuaBind::FuncBegin(); SetWindowWidth(SoLuaBind::GetInt(0), SoLuaBind::GetFloat(1)); return SoLuaBind::FuncEnd(); }
/*! @brief ウィンドウのサイズ設定 @par 関数説明 ウィンドウのサイズを設定する。設定反映はSetWindow()関数を使う。 @param unsigned int width 横幅を与える。 @param unsigned int height 高さを与える。 @return 0=設定値が両方引数と異なる @return 1=横幅は設定値が異なるが高さの設定値は引数通り @return 2=横幅は設定値が引数通りだが高さの設定値は異なる @return 3=設定値が両方引数と同じ */ int Window::SetWindowSize( unsigned int width, unsigned int height ) { return ( SetWindowWidth( width ) == width ) * 2 + ( SetWindowHeight( height ) == height ); }