1 #ifndef DALI_INTERNAL_ACCESSIBILITY_BRIDGE_COMPONENT_H
2 #define DALI_INTERNAL_ACCESSIBILITY_BRIDGE_COMPONENT_H
5 * Copyright (c) 2021 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
25 #include <unordered_map>
29 #include <dali/devel-api/atspi-interfaces/component.h>
30 #include <dali/internal/accessibility/bridge/bridge-base.h>
33 * @brief The BridgeComponent class is to correspond with Dali::Accessibility::Component.
35 class BridgeComponent : public virtual BridgeBase
44 * @brief Registers Component functions to dbus interfaces.
46 void RegisterInterfaces();
49 * @brief Returns the Component object of the currently executed DBus method call.
51 * @return The Component object
53 Dali::Accessibility::Component* FindSelf() const;
57 * @copydoc Dali::Accessibility::Component::IsAccessibleContainingPoint()
59 DBus::ValueOrError<bool> IsAccessibleContainingPoint(int32_t x, int32_t y, uint32_t coordType);
62 * @copydoc Dali::Accessibility::Component::GetAccessibleAtPoint()
64 DBus::ValueOrError<Dali::Accessibility::Accessible*> GetAccessibleAtPoint(int32_t x, int32_t y, uint32_t coordType);
67 * @copydoc Dali::Accessibility::Component::GetExtents()
69 DBus::ValueOrError<std::tuple<int32_t, int32_t, int32_t, int32_t> > GetExtents(uint32_t coordType);
72 * @brief Gets the position from the given coordinate.
73 * @param[in] coordType The enumeration with type of coordinate systems
74 * @return The X and Y position of rectangle
76 DBus::ValueOrError<int32_t, int32_t> GetPosition(uint32_t coordType);
79 * @brief Gets the size from the given coordinate.
80 * @param[in] coordType The enumeration with type of coordinate systems
81 * @return The width and height of rectangle
83 DBus::ValueOrError<int32_t, int32_t> GetSize(uint32_t coordType);
86 * @copydoc Dali::Accessibility::Component::GetLayer()
88 DBus::ValueOrError<Dali::Accessibility::ComponentLayer> GetLayer();
91 * @copydoc Dali::Accessibility::Component::GetAlpha()
93 DBus::ValueOrError<double> GetAlpha();
96 * @copydoc Dali::Accessibility::Component::GrabFocus()
98 DBus::ValueOrError<bool> GrabFocus();
101 * @copydoc Dali::Accessibility::Component::GrabHighlight()
103 DBus::ValueOrError<bool> GrabHighlight();
106 * @copydoc Dali::Accessibility::Component::ClearHighlight()
108 DBus::ValueOrError<bool> ClearHighlight();
111 * @copydoc Dali::Accessibility::Component::GetMdiZOrder()
113 DBus::ValueOrError<int16_t> GetMdiZOrder();
116 #endif // DALI_INTERNAL_ACCESSIBILITY_BRIDGE_COMPONENT_H