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