Merge "Set proper locale to harfbuzz" into devel/master
[platform/core/uifw/dali-adaptor.git] / dali / internal / system / common / command-line-options.h
1 #ifndef __DALI_INTERNAL_COMMAND_LINE_OPTIONS_H__
2 #define __DALI_INTERNAL_COMMAND_LINE_OPTIONS_H__
3
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <string>
23
24 namespace Dali
25 {
26
27 namespace Internal
28 {
29
30 namespace Adaptor
31 {
32
33 /**
34  * Parses the passed command line arguments and sets the values stored within this
35  * class appropriately.
36  *
37  * The following options are supported:
38  *
39  * @code
40  *     --no-vsync       Disable VSync on Render
41  *  -w|--width          Stage Width
42  *  -h|--height         Stage Height
43  *  -d|--dpi            Emulated DPI
44  *  -v|--view           Viewing mode
45  *  -s|--stereo-base    Eye separation for stereoscopic rendering (in mm)
46  *     --help           Help
47  * @endcode
48  *
49  * When the above options are found, they are stripped from argv, and argc is updated appropriately.
50  */
51 struct CommandLineOptions
52 {
53 public:
54
55   /**
56    * Constructor
57    * @param[in,out]  argc  The number of arguments
58    * @param[in,out]  argv  The argument list
59    * @note Supported options are stripped from argv, and argc is updated appropriately.
60    */
61   CommandLineOptions(int *argc, char **argv[]);
62
63   /**
64    * Destructor
65    */
66   ~CommandLineOptions();
67
68 public: // Command line parsed values
69
70   int noVSyncOnRender;  ///< If 1, then the user does not want VSync on Render
71   int stageWidth;       ///< The width of the stage required.  0 if not set.
72   int stageHeight;      ///< The height of the stage required.   0 if not set.
73   int viewMode;         ///< Stereocopic 3D view mode (0=MONO, 1=STEREO_HORIZONTAL, 2=STEREO_VERTICAL, 3=STEREO_INTERLACED)
74   int stereoBase;       ///< The distance in millimeters between left/right cameras
75   std::string stageDPI; ///< DPI stored as hxv, where h is horizontal DPI and v is vertical DPI
76 };
77
78 } // namespace Adaptor
79
80 } // namespace Internal
81
82 } // namespace Dali
83
84 #endif // __DALI_INTERNAL_COMMAND_LINE_OPTIONS_H__