1 #ifndef DALI_INTERNAL_WINDOWSYSTEM_COMMON_WINDOW_BASE_H
2 #define DALI_INTERNAL_WINDOWSYSTEM_COMMON_WINDOW_BASE_H
5 * Copyright (c) 2018 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.
22 #include <dali/public-api/adaptor-framework/window.h>
23 #include <dali/internal/window-system/common/indicator-interface.h>
37 * WindowBase interface
44 * @brief Default constructor
46 WindowBase() = default;
51 virtual ~WindowBase() = default;
56 * Second stage initialization
58 virtual void Initialize() = 0;
61 * @copydoc Dali::Window::ShowIndicator()
63 virtual void ShowIndicator( Dali::Window::IndicatorVisibleMode visibleMode, Dali::Window::IndicatorBgOpacity opacityMode ) = 0;
66 * Set the indicator properties on the window
68 virtual void SetIndicatorProperties( bool isShow, Dali::Window::WindowOrientation lastOrientation ) = 0;
71 * @copydoc Dali::Internal::Adaptor::IndicatorInterface::Observer::IndicatorTypeChanged()
73 virtual void IndicatorTypeChanged( IndicatorInterface::Type type ) = 0;
76 * @copydoc Dali::Window::SetClass()
78 virtual void SetClass( std::string name, std::string className ) = 0;
81 * @copydoc Dali::Window::Raise()
83 virtual void Raise() = 0;
86 * @copydoc Dali::Window::Lower()
88 virtual void Lower() = 0;
91 * @copydoc Dali::Window::Activate()
93 virtual void Activate() = 0;
96 * @copydoc Dali::Window::SetAvailableOrientations()
98 virtual void SetAvailableOrientations( const std::vector< Dali::Window::WindowOrientation >& orientations ) = 0;
101 * @copydoc Dali::Window::SetPreferredOrientation()
103 virtual void SetPreferredOrientation( Dali::Window::WindowOrientation orientation ) = 0;
106 * @copydoc Dali::Window::SetAcceptFocus()
108 virtual void SetAcceptFocus( bool accept ) = 0;
111 * @copydoc Dali::Window::Show()
113 virtual void Show() = 0;
116 * @copydoc Dali::Window::Hide()
118 virtual void Hide() = 0;
121 * @copydoc Dali::Window::GetSupportedAuxiliaryHintCount()
123 virtual unsigned int GetSupportedAuxiliaryHintCount() const = 0;
126 * @copydoc Dali::Window::GetSupportedAuxiliaryHint()
128 virtual std::string GetSupportedAuxiliaryHint( unsigned int index ) const = 0;
131 * @copydoc Dali::Window::AddAuxiliaryHint()
133 virtual unsigned int AddAuxiliaryHint( const std::string& hint, const std::string& value ) = 0;
136 * @copydoc Dali::Window::RemoveAuxiliaryHint()
138 virtual bool RemoveAuxiliaryHint( unsigned int id ) = 0;
141 * @copydoc Dali::Window::SetAuxiliaryHintValue()
143 virtual bool SetAuxiliaryHintValue( unsigned int id, const std::string& value ) = 0;
146 * @copydoc Dali::Window::GetAuxiliaryHintValue()
148 virtual std::string GetAuxiliaryHintValue( unsigned int id ) const = 0;
151 * @copydoc Dali::Window::GetAuxiliaryHintId()
153 virtual unsigned int GetAuxiliaryHintId( const std::string& hint ) const = 0;
156 * @copydoc Dali::Window::SetInputRegion()
158 virtual void SetInputRegion( const Rect< int >& inputRegion ) = 0;
161 * @copydoc Dali::Window::SetType()
163 virtual void SetType( Dali::Window::Type type ) = 0;
166 * @copydoc Dali::Window::SetNotificationLevel()
168 virtual bool SetNotificationLevel( Dali::Window::NotificationLevel::Type level ) = 0;
171 * @copydoc Dali::Window::GetNotificationLevel()
173 virtual Dali::Window::NotificationLevel::Type GetNotificationLevel() const = 0;
176 * @copydoc Dali::Window::SetOpaqueState()
178 virtual void SetOpaqueState( bool opaque ) = 0;
181 * @copydoc Dali::Window::SetScreenOffMode()
183 virtual bool SetScreenOffMode(Dali::Window::ScreenOffMode::Type screenOffMode) = 0;
186 * @copydoc Dali::Window::GetScreenOffMode()
188 virtual Dali::Window::ScreenOffMode::Type GetScreenOffMode() const = 0;
191 * @copydoc Dali::Window::SetBrightness()
193 virtual bool SetBrightness( int brightness ) = 0;
196 * @copydoc Dali::Window::GetBrightness()
198 virtual int GetBrightness() const = 0;
203 WindowBase(const WindowBase&) = delete;
206 WindowBase& operator=(const WindowBase& rhs) = delete;
210 } // namespace Adaptor
212 } // namespace internal
216 #endif // DALI_INTERNAL_WINDOWSYSTEM_COMMON_WINDOW_BASE_H