2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.0 (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 FUiAccessibilityElement.h
20 * @brief This is the header file for the AccessibilityElement class.
22 * This header file contains the declarations of the AccessibilityElement class.
26 #ifndef _FUI_ACCESSIBILITY_ELEMENT_H_
27 #define _FUI_ACCESSIBILITY_ELEMENT_H_
29 #include <FOspConfig.h>
30 #include <FBaseObject.h>
31 #include <FUiAccessibilityTypes.h>
33 namespace Tizen { namespace Base
38 namespace Tizen { namespace Graphics
43 namespace Tizen { namespace Ui
45 class _AccessibilityElementImpl;
48 * @class AccessibilityElement
49 * @brief This class represents an accessibility element.
52 * @final This class is not intended for extension.
53 * This class represents an accessibility element.
55 class _OSP_EXPORT_ AccessibilityElement
56 : public Tizen::Base::Object
60 * The object is not fully constructed after this constructor is called. For full construction, the Construct() method must be called right after calling this constructor.
64 AccessibilityElement(void);
67 * This destructor overrides Tizen::Base::Object::~Object().
71 virtual ~AccessibilityElement(void);
74 * Initializes the instance of %AccessibilityElement with the specified parameters.
78 * @return An error code
79 * @param[in] bounds The bounds of the accessibility element
80 * @param[in] name The name of the accessibility element
81 * @exception E_SUCCESS The method is successful.
82 * @exception E_INVALID_ARG Either the length of name parameter is @c 0, or the bounds are smaller than @c 0.
84 result Construct(const Tizen::Graphics::Rectangle& bounds, const Tizen::Base::String& name);
87 * Gets the name of the element.
90 * @return The name of the element
92 Tizen::Base::String GetName(void) const;
95 * Sets the bounds to the element.
98 * @param[in] bounds The bounds of the accessibility element.
100 void SetBounds(const Tizen::Graphics::Rectangle& bounds);
103 * Gets the bounds of the element.
106 * @return The bounds of the element
108 Tizen::Graphics::Rectangle GetBounds(void) const;
111 * Sets the label to the element.
114 * @param[in] label The label of the accessibility element.
116 void SetLabel(const Tizen::Base::String& label);
119 * Gets the label of the element.
122 * @return The label of the element
124 Tizen::Base::String GetLabel(void) const;
127 * Sets the hint to the element.
130 * @param[in] hint The hint of the accessibility element.
132 void SetHint(const Tizen::Base::String& hint);
135 * Gets the hint of the element.
138 * @return The hint of the element
140 Tizen::Base::String GetHint(void) const;
143 * Sets the trait to the element.
146 * @param[in] trait The trait of the accessibility element.
148 void SetTrait(const Tizen::Base::String& trait);
152 * Gets the trait of the element.
155 * @return The trait of the element
157 Tizen::Base::String GetTrait(void) const;
160 * Sets the value to the element.
163 * @param[in] value The value of the accessibility element.
165 void SetValue(const Tizen::Base::String& value);
168 * Gets the value of the element.
171 * @return The value of the element
173 Tizen::Base::String GetValue(void) const;
177 // The implementation of this copy constructor is intentionally blank and declared as private to prohibit copying of objects.
179 AccessibilityElement(const AccessibilityElement& rhs);
182 // The implementation of this copy assignment operator is intentionally blank and declared as private to prohibit copying of objects.
184 AccessibilityElement& operator =(const AccessibilityElement& rhs);
187 friend class _AccessibilityElementImpl;
188 _AccessibilityElementImpl* __pAccessibilityElementImpl;
189 }; // AccessibilityElement
192 #endif //_FUI_ACCESSIBILITY_ELEMENT_H_