3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
\r
5 // Licensed under the Flora License, Version 1.0 (the License);
\r
6 // you may not use this file except in compliance with the License.
\r
7 // You may obtain a copy of the License at
\r
9 // http://floralicense.org/license/
\r
11 // Unless required by applicable law or agreed to in writing, software
\r
12 // distributed under the License is distributed on an AS IS BASIS,
\r
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
14 // See the License for the specific language governing permissions and
\r
15 // limitations under the License.
\r
18 //!Internet SettingToggleCustomItem class
\r
19 /*@file: SettingToggleCustomItem.h
\r
20 *@brief: The SettingToggleCustomItem used to toggle the item.
\r
24 #ifndef _INT_SETTING_TOGGLE_CUSTOM_ITEM_H_
\r
25 #define _INT_SETTING_TOGGLE_CUSTOM_ITEM_H_
\r
28 #include <FGraphics.h>
\r
29 #include "IntTypes.h"
\r
31 class SettingToggleCustomItem
\r
32 : public Tizen::Ui::Controls::CustomItem
\r
37 * @brief The Default constructor
\r
39 SettingToggleCustomItem(void);
\r
42 * @brief The Default destructor
\r
44 virtual ~SettingToggleCustomItem(void);
\r
47 * @brief Initializes this instance of %DropDownCustomItem.
\r
49 * @return An error code
\r
50 * @param[in] void An instance of the Rectangle class @n
\r
51 * This instance represents the x and y coordinates of the top-left corner of the created window along with
\r
52 * the width and height of the window.
\r
53 * @exception E_SUCCESS The method is successful.
\r
54 * @exception E_INVALID_STATE This instance has already been constructed.
\r
55 * @exception E_INVALID_ARG A specified input parameter is invalid.
\r
56 * @exception E_OUT_OF_MEMORY The memory is insufficient.
\r
57 * @exception E_SYSTEM A system error has occurred.
\r
60 result Construct(int width, int height);
\r
62 //getter and setter methods for __text
\r
65 * @brief The method used to get the text of CustomItem
\r
69 Tizen::Base::String GetText(void);
\r
72 * @brief Add all the required elements and create the Custom Item.
\r
74 * @return An error code
\r
75 * @param[in] void An instance of the Rectangle class @n
\r
76 * This instance represents the x and y coordinates of the top-left corner of the created window along with
\r
77 * the width and height of the window.
\r
78 * @exception E_SUCCESS The method is successful.
\r
79 * @exception E_INVALID_STATE This instance has already been constructed.
\r
80 * @exception E_INVALID_ARG A specified input parameter is invalid.
\r
81 * @exception E_OUT_OF_MEMORY The memory is insufficient.
\r
82 * @exception E_SYSTEM A system error has occurred.
\r
88 * @brief The method used to set the text of CustomItem
\r
91 void SetText(Tizen::Base::String& text);
\r
96 int __height; ///Height of the SettingToggleCustomItem Instance
\r
97 int __width; ///Width of the SettingToggleCustomItem Instance
\r
99 Tizen::Base::String __text; ///The Text for the Toggle Button
\r
103 #endif /* _INT_SETTING_TOGGLE_CUSTOM_ITEM_H_ */
\r