void Application::CreateWindow() { PositionSize windowPosition(0, 0, 0, 0); // this will use full screen if( mCommandLineOptions->stageWidth > 0 && mCommandLineOptions->stageHeight > 0 ) { // Command line options override environment options and full screen windowPosition = PositionSize( 0, 0, mCommandLineOptions->stageWidth, mCommandLineOptions->stageHeight ); } else if( mEnvironmentOptions.GetWindowWidth() && mEnvironmentOptions.GetWindowHeight() ) { // Environment options override full screen functionality if command line arguments not provided windowPosition = PositionSize( 0, 0, mEnvironmentOptions.GetWindowWidth(), mEnvironmentOptions.GetWindowHeight() ); } const std::string& windowClassName = mEnvironmentOptions.GetWindowClassName(); mWindow = Dali::Window::New( windowPosition, mName, windowClassName, mWindowMode == Dali::Application::TRANSPARENT ); // Quit the application when the window is closed GetImplementation( mWindow ).DeleteRequestSignal().Connect( mSlotDelegate, &Application::Quit ); }
virtual PositionSize GetPositionSize() const { return PositionSize(0, 0, 640, 480);}