2 * Copyright (c) 2023 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali/devel-api/actors/actor-devel.h>
20 #include <dali/internal/event/actors/actor-coords.h>
21 #include <dali/internal/event/actors/actor-impl.h>
27 Rect<> CalculateScreenExtents(Actor actor)
29 return GetImplementation(actor).CalculateScreenExtents();
32 VisibilityChangedSignalType& VisibilityChangedSignal(Actor actor)
34 return GetImplementation(actor).VisibilityChangedSignal();
37 ChildChangedSignalType& ChildAddedSignal(Actor actor)
39 return GetImplementation(actor).ChildAddedSignal();
42 ChildChangedSignalType& ChildRemovedSignal(Actor actor)
44 return GetImplementation(actor).ChildRemovedSignal();
47 ChildOrderChangedSignalType& ChildOrderChangedSignal(Actor actor)
49 return GetImplementation(actor).ChildOrderChangedSignal();
52 Actor::TouchEventSignalType& InterceptTouchedSignal(Actor actor)
54 return GetImplementation(actor).InterceptTouchedSignal();
57 void SetNeedGesturePropagation(Actor actor, bool propagation)
59 return GetImplementation(actor).SetNeedGesturePropagation(propagation);
62 void SwitchParent(Actor actor, Actor newParent)
64 return GetImplementation(actor).SwitchParent(GetImplementation(newParent));
67 Actor::TouchEventSignalType& HitTestResultSignal(Actor actor)
69 return GetImplementation(actor).HitTestResultSignal();
72 Matrix GetWorldTransform(Actor actor)
74 return CalculateActorWorldTransform(GetImplementation(actor));
77 Vector4 GetWorldColor(Actor actor)
79 return CalculateActorWorldColor(GetImplementation(actor));
82 void LookAt(Actor actor, Vector3 target, Vector3 up, Vector3 localForward, Vector3 localUp)
84 auto orientation = CalculateActorLookAtOrientation(GetImplementation(actor), target, up, localForward, localUp);
85 GetImplementation(actor).SetOrientation(orientation);
88 } // namespace DevelActor