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
44 namespace Tizen { namespace Ui
46 class _AccessibilityElementImpl;
49 * @class AccessibilityElement
50 * @brief This class represents an accessibility element.
53 * @final This class is not intended for extension.
54 * This class represents an accessibility element.
56 class _OSP_EXPORT_ AccessibilityElement
57 : public Tizen::Base::Object
61 * 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.
65 AccessibilityElement(void);
68 * This destructor overrides Tizen::Base::Object::~Object().
72 virtual ~AccessibilityElement(void);
75 * Initializes the instance of %AccessibilityElement with the specified parameters.
79 * @return An error code
80 * @param[in] bounds The bounds of the accessibility element
81 * @param[in] name The name of the accessibility element
82 * @exception E_SUCCESS The method is successful.
83 * @exception E_INVALID_ARG Either the length of name parameter is @c 0, or the bounds are smaller than @c 0.
85 result Construct(const Tizen::Graphics::Rectangle& bounds, const Tizen::Base::String& name);
88 * Initializes the instance of %AccessibilityElement with the specified parameters.
92 * @return An error code
93 * @param[in] bounds The bounds of the accessibility element
94 * @param[in] name The name of the accessibility element
95 * @exception E_SUCCESS The method is successful.
96 * @exception E_INVALID_ARG Either the length of name parameter is @c 0, or the bounds are smaller than @c 0.
98 result Construct(const Tizen::Graphics::FloatRectangle& bounds, const Tizen::Base::String& name);
101 * Gets the name of the element.
104 * @return The name of the element
106 Tizen::Base::String GetName(void) const;
109 * Sets the bounds to the element.
112 * @param[in] bounds The bounds of the accessibility element.
114 void SetBounds(const Tizen::Graphics::Rectangle& bounds);
117 * Sets the bounds to the element.
120 * @param[in] bounds The bounds of the accessibility element.
122 void SetBounds(const Tizen::Graphics::FloatRectangle& bounds);
125 * Gets the bounds of the element.
128 * @return The bounds of the element
130 Tizen::Graphics::Rectangle GetBounds(void) const;
133 * Gets the bounds of the element.
136 * @return The bounds of the element
138 Tizen::Graphics::FloatRectangle GetBoundsF(void) const;
141 * Sets the label to the element.
144 * @param[in] label The label of the accessibility element.
146 void SetLabel(const Tizen::Base::String& label);
149 * Gets the label of the element.
152 * @return The label of the element
154 Tizen::Base::String GetLabel(void) const;
157 * Sets the hint to the element.
160 * @param[in] hint The hint of the accessibility element.
162 void SetHint(const Tizen::Base::String& hint);
165 * Gets the hint of the element.
168 * @return The hint of the element
170 Tizen::Base::String GetHint(void) const;
173 * Sets the trait to the element.
176 * @param[in] trait The trait of the accessibility element.
178 void SetTrait(const Tizen::Base::String& trait);
182 * Gets the trait of the element.
185 * @return The trait of the element
187 Tizen::Base::String GetTrait(void) const;
190 * Sets the value to the element.
193 * @param[in] value The value of the accessibility element.
195 void SetValue(const Tizen::Base::String& value);
198 * Gets the value of the element.
201 * @return The value of the element
203 Tizen::Base::String GetValue(void) const;
207 // The implementation of this copy constructor is intentionally blank and declared as private to prohibit copying of objects.
209 AccessibilityElement(const AccessibilityElement& rhs);
212 // The implementation of this copy assignment operator is intentionally blank and declared as private to prohibit copying of objects.
214 AccessibilityElement& operator =(const AccessibilityElement& rhs);
217 friend class _AccessibilityElementImpl;
218 _AccessibilityElementImpl* __pAccessibilityElementImpl;
219 }; // AccessibilityElement
222 #endif //_FUI_ACCESSIBILITY_ELEMENT_H_