2 * Copyright (c) 2014 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.
20 #include <dali-toolkit/public-api/focus-manager/keyboard-focus-manager.h>
26 #include <dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.h>
34 KeyboardFocusManager::KeyboardFocusManager()
38 KeyboardFocusManager::~KeyboardFocusManager()
42 KeyboardFocusManager KeyboardFocusManager::Get()
44 return Internal::KeyboardFocusManager::Get();
47 KeyboardFocusManager::KeyboardFocusManager(Internal::KeyboardFocusManager *impl)
52 bool KeyboardFocusManager::SetCurrentFocusActor(Actor actor)
54 return GetImpl(*this).SetCurrentFocusActor(actor);
57 Actor KeyboardFocusManager::GetCurrentFocusActor()
59 return GetImpl(*this).GetCurrentFocusActor();
62 bool KeyboardFocusManager::MoveFocus(Control::KeyboardFocusNavigationDirection direction)
64 return GetImpl(*this).MoveFocus(direction);
67 void KeyboardFocusManager::ClearFocus()
69 GetImpl(*this).ClearFocus();
72 void KeyboardFocusManager::SetAsFocusGroup(Actor actor, bool isFocusGroup)
75 GetImpl(*this).SetAsFocusGroup(actor, isFocusGroup);
78 bool KeyboardFocusManager::IsFocusGroup(Actor actor) const
81 return GetImpl(*this).IsFocusGroup(actor);
84 Actor KeyboardFocusManager::GetFocusGroup(Actor actor)
86 return GetImpl(*this).GetFocusGroup(actor);
89 void KeyboardFocusManager::SetFocusGroupLoop(bool enabled)
91 GetImpl(*this).SetFocusGroupLoop(enabled);
94 bool KeyboardFocusManager::GetFocusGroupLoop() const
96 return GetImpl(*this).GetFocusGroupLoop();
99 void KeyboardFocusManager::SetFocusIndicatorActor(Actor indicator)
101 GetImpl(*this).SetFocusIndicatorActor(indicator);
104 Actor KeyboardFocusManager::GetFocusIndicatorActor()
106 return GetImpl(*this).GetFocusIndicatorActor();
109 KeyboardFocusManager::PreFocusChangeSignalType& KeyboardFocusManager::PreFocusChangeSignal()
111 return GetImpl(*this).PreFocusChangeSignal();
114 KeyboardFocusManager::FocusChangedSignalType& KeyboardFocusManager::FocusChangedSignal()
116 return GetImpl(*this).FocusChangedSignal();
119 KeyboardFocusManager::FocusGroupChangedSignalType& KeyboardFocusManager::FocusGroupChangedSignal()
121 return GetImpl(*this).FocusGroupChangedSignal();
124 KeyboardFocusManager::FocusedActorActivatedSignalType& KeyboardFocusManager::FocusedActorActivatedSignal()
126 return GetImpl(*this).FocusedActorActivatedSignal();
129 } // namespace Toolkit