1 #ifndef DALI_INTERNAL_WINDOWSYSTEM_WINDOW_BASE_ECORE_WIN_H
2 #define DALI_INTERNAL_WINDOWSYSTEM_WINDOW_BASE_ECORE_WIN_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/internal/window-system/common/window-base.h>
25 #include <WindowsEventSystem.h>
27 using namespace Dali::Internal::Win32System;
37 class WindowRenderSurface;
38 class WindowRenderSurfaceEcoreWin;
41 * WindowBaseEcoreWin class provides an WindowBase EcoreX implementation.
43 class WindowBaseEcoreWin : public WindowBase
50 WindowBaseEcoreWin( Window* window, WindowRenderSurface* windowRenderSurface );
55 virtual ~WindowBaseEcoreWin();
60 * @brief Called when the window property is changed.
62 bool OnWindowPropertyChanged( void* data, int type, void* event );
65 * Called when the window receives a delete request
67 void OnDeleteRequest();
72 * @copydoc Dali::Internal::Adaptor::WindowBase::Initialize()
74 virtual void Initialize() override;
77 * @copydoc Dali::Internal::Adaptor::WindowBase::ShowIndicator()
79 virtual void ShowIndicator( Dali::Window::IndicatorVisibleMode visibleMode, Dali::Window::IndicatorBgOpacity opacityMode ) override;
82 * @copydoc Dali::Internal::Adaptor::WindowBase::SetIndicatorProperties()
84 virtual void SetIndicatorProperties( bool isShow, Dali::Window::WindowOrientation lastOrientation ) override;
87 * @copydoc Dali::Internal::Adaptor::WindowBase::IndicatorTypeChanged()
89 virtual void IndicatorTypeChanged( IndicatorInterface::Type type ) override;
92 * @copydoc Dali::Internal::Adaptor::WindowBase::SetClass()
94 virtual void SetClass( std::string name, std::string className ) override;
97 * @copydoc Dali::Internal::Adaptor::WindowBase::Raise()
99 virtual void Raise() override;
102 * @copydoc Dali::Internal::Adaptor::WindowBase::Lower()
104 virtual void Lower() override;
107 * @copydoc Dali::Internal::Adaptor::WindowBase::Activate()
109 virtual void Activate() override;
112 * @copydoc Dali::Internal::Adaptor::WindowBase::SetAvailableOrientations()
114 virtual void SetAvailableOrientations( const std::vector< Dali::Window::WindowOrientation >& orientations ) override;
117 * @copydoc Dali::Internal::Adaptor::WindowBase::SetPreferredOrientation()
119 virtual void SetPreferredOrientation( Dali::Window::WindowOrientation orientation ) override;
122 * @copydoc Dali::Internal::Adaptor::WindowBase::SetAcceptFocus()
124 virtual void SetAcceptFocus( bool accept ) override;
127 * @copydoc Dali::Internal::Adaptor::WindowBase::Show()
129 virtual void Show() override;
132 * @copydoc Dali::Internal::Adaptor::WindowBase::Hide()
134 virtual void Hide() override;
137 * @copydoc Dali::Internal::Adaptor::WindowBase::GetSupportedAuxiliaryHintCount()
139 virtual unsigned int GetSupportedAuxiliaryHintCount() const override;
142 * @copydoc Dali::Internal::Adaptor::WindowBase::GetSupportedAuxiliaryHint()
144 virtual std::string GetSupportedAuxiliaryHint( unsigned int index ) const override;
147 * @copydoc Dali::Internal::Adaptor::WindowBase::AddAuxiliaryHint()
149 virtual unsigned int AddAuxiliaryHint( const std::string& hint, const std::string& value ) override;
152 * @copydoc Dali::Internal::Adaptor::WindowBase::RemoveAuxiliaryHint()
154 virtual bool RemoveAuxiliaryHint( unsigned int id ) override;
157 * @copydoc Dali::Internal::Adaptor::WindowBase::SetAuxiliaryHintValue()
159 virtual bool SetAuxiliaryHintValue( unsigned int id, const std::string& value ) override;
162 * @copydoc Dali::Internal::Adaptor::WindowBase::GetAuxiliaryHintValue()
164 virtual std::string GetAuxiliaryHintValue( unsigned int id ) const override;
167 * @copydoc Dali::Internal::Adaptor::WindowBase::GetAuxiliaryHintId()
169 virtual unsigned int GetAuxiliaryHintId( const std::string& hint ) const override;
172 * @copydoc Dali::Internal::Adaptor::WindowBase::SetInputRegion()
174 virtual void SetInputRegion( const Rect< int >& inputRegion ) override;
177 * @copydoc Dali::Internal::Adaptor::WindowBase::SetType()
179 virtual void SetType( Dali::Window::Type type ) override;
182 * @copydoc Dali::Internal::Adaptor::WindowBase::SetNotificationLevel()
184 virtual bool SetNotificationLevel( Dali::Window::NotificationLevel::Type level ) override;
187 * @copydoc Dali::Internal::Adaptor::WindowBase::GetNotificationLevel()
189 virtual Dali::Window::NotificationLevel::Type GetNotificationLevel() const override;
192 * @copydoc Dali::Internal::Adaptor::WindowBase::SetOpaqueState()
194 virtual void SetOpaqueState( bool opaque ) override;
197 * @copydoc Dali::Internal::Adaptor::WindowBase::SetScreenOffMode()
199 virtual bool SetScreenOffMode(Dali::Window::ScreenOffMode::Type screenOffMode) override;
202 * @copydoc Dali::Internal::Adaptor::WindowBase::GetScreenOffMode()
204 virtual Dali::Window::ScreenOffMode::Type GetScreenOffMode() const override;
207 * @copydoc Dali::Internal::Adaptor::WindowBase::SetBrightness()
209 virtual bool SetBrightness( int brightness ) override;
212 * @copydoc Dali::Internal::Adaptor::WindowBase::GetBrightness()
214 virtual int GetBrightness() const override;
217 * @copydoc Dali::Internal::Adaptor::WindowBase::GrabKey()
219 virtual bool GrabKey( Dali::KEY key, KeyGrab::KeyGrabMode grabMode ) override;
222 * @copydoc Dali::Internal::Adaptor::WindowBase::UngrabKey()
224 virtual bool UngrabKey( Dali::KEY key ) override;
227 * @copydoc Dali::Internal::Adaptor::WindowBase::GrabKeyList()
229 virtual bool GrabKeyList( const Dali::Vector< Dali::KEY >& key, const Dali::Vector< KeyGrab::KeyGrabMode >& grabMode, Dali::Vector< bool >& result ) override;
232 * @copydoc Dali::Internal::Adaptor::WindowBase::UngrabKeyList()
234 virtual bool UngrabKeyList( const Dali::Vector< Dali::KEY >& key, Dali::Vector< bool >& result ) override;
239 WindowBaseEcoreWin(const WindowBaseEcoreWin&) = delete;
242 WindowBaseEcoreWin& operator=(const WindowBaseEcoreWin& rhs) = delete;
246 Dali::Vector< Ecore_Event_Handler* > mEcoreEventHandler;
249 WindowRenderSurfaceEcoreWin* mWindowSurface;
250 Ecore_Win_Window mEcoreWindow;
252 bool mRotationAppSet:1;
255 } // namespace Adaptor
257 } // namespace internal
261 #endif // DALI_INTERNAL_WINDOWSYSTEM_ECOREX_WINDOW_BASE_ECORE_X_H