1 #ifndef __DALI_INTERNAL_COMMAND_LINE_OPTIONS_H__
2 #define __DALI_INTERNAL_COMMAND_LINE_OPTIONS_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 // Licensed under the Flora License, Version 1.0 (the License);
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://floralicense.org/license/
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an AS IS BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
33 * Parses the passed command line arguments and sets the values stored within this
34 * class appropriately.
36 * The following options are supported:
39 * --no-vsync Disable VSync on Render
40 * -w|--width Stage Width
41 * -h|--height Stage Height
42 * -d|--dpi Emulated DPI
46 * When the above options are found, they are stripped from argv, and argc is updated appropriately.
48 struct CommandLineOptions
54 * @param[in,out] argc The number of arguments
55 * @param[in,out] argv The argument list
56 * @note Supported options are stripped from argv, and argc is updated appropriately.
58 CommandLineOptions(int *argc, char **argv[]);
63 ~CommandLineOptions();
65 public: // Command line parsed values
67 int noVSyncOnRender; ///< If 1, then the user does not want VSync on Render
68 int stageWidth; ///< The width of the stage required. 0 if not set.
69 int stageHeight; ///< The height of the stage required. 0 if not set.
70 std::string stageDPI; ///< DPI stored as hxv, where h is horizontal DPI and v is vertical DPI
73 } // namespace Adaptor
75 } // namespace Internal
79 #endif // __DALI_INTERNAL_COMMAND_LINE_OPTIONS_H__