Merge "fix klocwork issue" into tizen_2.2
[platform/framework/native/uifw.git] / inc / FUiCtrlLabel.h
index c4d7bfc..ad48d38 100644 (file)
@@ -9,7 +9,7 @@
 //     http://www.apache.org/licenses/LICENSE-2.0/
 //
 // Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an ”AS IS” BASIS,
+// distributed under the License is distributed on an "AS IS" BASIS,
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
@@ -100,7 +100,7 @@ LabelSample::OnInitializing(void)
        __pLabel->SetBackgroundColor(Color::GetColor(COLOR_ID_BLUE));
 
        // Adds the label to the form
-       AddControl(*__pLabel);
+       AddControl(__pLabel);
 
        return r;
 }
@@ -133,12 +133,14 @@ public:
         * @return              An error code
         * @param[in]   rect                            An instance of the Tizen::Graphics::Rectangle class @n
         *                                                                      This instance represents the x and y coordinates of the top-left corner of the created window along with
-        *                                                                      the width and height of the window.
+        *                                                                      the width and height of the window.@n
+        *                                                                      The optimal size of the control is defined in
+        *                                                                      <a href="../org.tizen.native.appprogramming/html/guide/ui/control_optimalsize.htm">Optimal Size of UI Controls</a>.
         * @param[in]   text                            The text for this label instance
         * @exception   E_SUCCESS                       The method is successful.
         * @exception   E_INVALID_ARG       A specified input parameter is invalid.
         * @exception   E_SYSTEM                        A system error has occurred.
-        * @remarks             
+        * @remarks
         *                      - A control is fully usable only after it has been added to a container, therefore some methods may fail if used earlier.
         *                      - To display text in multi-lines or to denote the end of line use '\\n'.
         *                      - The size of the control must be within the range defined by the minimum size and the maximum size.
@@ -153,12 +155,14 @@ public:
         * @return              An error code
         * @param[in]   rect                            An instance of the Tizen::Graphics::FloatRectangle class @n
         *                                                                      This instance represents the x and y coordinates of the top-left corner of the created window along with
-        *                                                                      the width and height of the window.
+        *                                                                      the width and height of the window.@n
+        *                                                                      The optimal size of the control is defined in
+        *                                                                      <a href="../org.tizen.native.appprogramming/html/guide/ui/control_optimalsize.htm">Optimal Size of UI Controls</a>.
         * @param[in]   text                            The text for this label instance
         * @exception   E_SUCCESS                       The method is successful.
         * @exception   E_INVALID_ARG       A specified input parameter is invalid.
         * @exception   E_SYSTEM                        A system error has occurred.
-        * @remarks             
+        * @remarks
         *                      - A control is fully usable only after it has been added to a container, therefore some methods may fail if used earlier.
         *                      - To display text in multi-lines or to denote the end of line use '\\n'.
         *                      - The size of the control must be within the range defined by the minimum size and the maximum size.
@@ -278,7 +282,7 @@ public:
         * @param[in]   style                   The style of the text
         * @exception   E_SUCCESS               The method is successful.
         * @exception   E_INVALID_ARG   A specified input parameter is invalid.
-        * @remarks             
+        * @remarks
         *                      - The specific error code can be accessed using the GetLastResult() method.
         *                      - If @c size is less than the minimum size, this method fails. The minimum font size is 6 on devices of high screen density.
         */
@@ -293,7 +297,7 @@ public:
         * @param[in]   style                   The style of the text
         * @exception   E_SUCCESS               The method is successful.
         * @exception   E_INVALID_ARG   A specified input parameter is invalid.
-        * @remarks             
+        * @remarks
         *                      - The specific error code can be accessed using the GetLastResult() method.
         *                      - If @c size is less than the minimum size, this method fails. The minimum font size is 6 on devices of high screen density.
         */