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/internal/accessibility/bridge/bridge-base.h>
32 * @brief The BridgeComponent class is to correspond with Dali::Accessibility::Component.
34 class BridgeComponent : public virtual BridgeBase
43 * @brief Registers Component functions to dbus interfaces.
45 void RegisterInterfaces();
48 * @brief Returns the Component object of the currently executed DBus method call.
50 * @return The Component object
52 Dali::Accessibility::Component* FindSelf() const;
56 * @copydoc Dali::Accessibility::Component::IsAccessibleContainingPoint()
58 DBus::ValueOrError<bool> IsAccessibleContainingPoint(int32_t x, int32_t y, uint32_t coordType);
61 * @copydoc Dali::Accessibility::Component::GetAccessibleAtPoint()
63 DBus::ValueOrError<Dali::Accessibility::Accessible*> GetAccessibleAtPoint(int32_t x, int32_t y, uint32_t coordType);
66 * @copydoc Dali::Accessibility::Component::GetExtents()
68 DBus::ValueOrError<std::tuple<int32_t, int32_t, int32_t, int32_t> > GetExtents(uint32_t coordType);
71 * @brief Gets the position from the given coordinate.
72 * @param[in] coordType The enumeration with type of coordinate systems
73 * @return The X and Y position of rectangle
75 DBus::ValueOrError<int32_t, int32_t> GetPosition(uint32_t coordType);
78 * @brief Gets the size from the given coordinate.
79 * @param[in] coordType The enumeration with type of coordinate systems
80 * @return The width and height of rectangle
82 DBus::ValueOrError<int32_t, int32_t> GetSize(uint32_t coordType);
85 * @copydoc Dali::Accessibility::Component::GetLayer()
87 DBus::ValueOrError<Dali::Accessibility::ComponentLayer> GetLayer();
90 * @copydoc Dali::Accessibility::Component::GetAlpha()
92 DBus::ValueOrError<double> GetAlpha();
95 * @copydoc Dali::Accessibility::Component::GrabFocus()
97 DBus::ValueOrError<bool> GrabFocus();
100 * @copydoc Dali::Accessibility::Component::GrabHighlight()
102 DBus::ValueOrError<bool> GrabHighlight();
105 * @copydoc Dali::Accessibility::Component::ClearHighlight()
107 DBus::ValueOrError<bool> ClearHighlight();
110 * @copydoc Dali::Accessibility::Component::GetMdiZOrder()
112 DBus::ValueOrError<int16_t> GetMdiZOrder();
115 #endif // DALI_INTERNAL_ACCESSIBILITY_BRIDGE_COMPONENT_H