2 * Copyright (c) 2017 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 "window-impl.h"
25 #include <dali/integration-api/core.h>
26 #include <dali/integration-api/system-overlay.h>
27 #include <dali/public-api/render-tasks/render-task.h>
28 #include <dali/public-api/render-tasks/render-task-list.h>
31 #include <window-render-surface.h>
32 #include <drag-and-drop-detector-impl.h>
33 #include <ecore-indicator-impl.h>
34 #include <window-visibility-observer.h>
35 #include <orientation.h>
36 #include <orientation-impl.h>
40 const float INDICATOR_ANIMATION_DURATION( 0.18f ); // 180 milli seconds
41 const float INDICATOR_SHOW_Y_POSITION( 0.0f );
42 const float INDICATOR_HIDE_Y_POSITION( -52.0f );
51 #if defined(DEBUG_ENABLED)
52 Debug::Filter* gWindowLogFilter = Debug::Filter::New(Debug::Concise, false, "LOG_WINDOW");
56 * TODO: Abstract Window class out and move this into a window implementation for Ecore
58 struct Window::EventHandler
62 * @param[in] window A pointer to the window class.
64 EventHandler( Window* window )
66 mWindowPropertyHandler( NULL ),
67 mClientMessagehandler( NULL ),
68 mWindowDeleteRequestHandler( NULL ),
71 // store ecore window handle
72 ECore::WindowRenderSurface* x11Window( dynamic_cast< ECore::WindowRenderSurface * >( mWindow->mSurface ) );
75 mEcoreWindow = x11Window->GetXWindow();
77 DALI_ASSERT_ALWAYS( mEcoreWindow != 0 && "There is no ecore x window");
79 #ifndef DALI_PROFILE_UBUNTU
80 // set property on window to get deiconify approve client message
82 ecore_x_window_prop_card32_set(mEcoreWindow,
83 ECORE_X_ATOM_E_DEICONIFY_APPROVE,
85 #endif // DALI_PROFILE_UBUNTU
87 if( mWindow->mEcoreEventHander )
89 ecore_x_input_multi_select( mEcoreWindow );
91 // This ensures that we catch the window close (or delete) request
92 ecore_x_icccm_protocol_set( mEcoreWindow, ECORE_X_WM_PROTOCOL_DELETE_REQUEST, EINA_TRUE );
94 mWindowPropertyHandler= ecore_event_handler_add( ECORE_X_EVENT_WINDOW_PROPERTY, EcoreEventWindowPropertyChanged, this );
95 mClientMessagehandler = ecore_event_handler_add( ECORE_X_EVENT_CLIENT_MESSAGE, EcoreEventClientMessage, this );
96 mWindowDeleteRequestHandler = ecore_event_handler_add( ECORE_X_EVENT_WINDOW_DELETE_REQUEST, EcoreEventWindowDeleteRequest, this );
105 if ( mWindowPropertyHandler )
107 ecore_event_handler_del( mWindowPropertyHandler );
109 if ( mClientMessagehandler )
111 ecore_event_handler_del( mClientMessagehandler );
113 if ( mWindowDeleteRequestHandler )
115 ecore_event_handler_del( mWindowDeleteRequestHandler );
121 /// Called when the window properties are changed.
122 static Eina_Bool EcoreEventWindowPropertyChanged( void* data, int type, void* event )
124 Ecore_X_Event_Window_Property* propertyChangedEvent( (Ecore_X_Event_Window_Property*)event );
125 EventHandler* handler( (EventHandler*)data );
126 Eina_Bool handled( ECORE_CALLBACK_PASS_ON );
128 if ( handler && handler->mWindow )
130 WindowVisibilityObserver* observer( handler->mWindow->mAdaptor );
131 if ( observer && ( propertyChangedEvent->win == handler->mEcoreWindow ) )
133 Ecore_X_Window_State_Hint state( ecore_x_icccm_state_get( propertyChangedEvent->win ) );
137 case ECORE_X_WINDOW_STATE_HINT_WITHDRAWN:
139 // Window was hidden.
140 observer->OnWindowHidden();
141 DALI_LOG_INFO( gWindowLogFilter, Debug::General, "Window (%d) Withdrawn\n", handler->mEcoreWindow );
142 handled = ECORE_CALLBACK_DONE;
146 case ECORE_X_WINDOW_STATE_HINT_ICONIC:
148 // Window was iconified (minimised).
149 observer->OnWindowHidden();
150 DALI_LOG_INFO( gWindowLogFilter, Debug::General, "Window (%d) Iconfied\n", handler->mEcoreWindow );
151 handled = ECORE_CALLBACK_DONE;
155 case ECORE_X_WINDOW_STATE_HINT_NORMAL:
158 observer->OnWindowShown();
159 DALI_LOG_INFO( gWindowLogFilter, Debug::General, "Window (%d) Shown\n", handler->mEcoreWindow );
160 handled = ECORE_CALLBACK_DONE;
174 /// Called when the window properties are changed.
175 static Eina_Bool EcoreEventClientMessage( void* data, int type, void* event )
177 Eina_Bool handled( ECORE_CALLBACK_PASS_ON );
178 #ifndef DALI_PROFILE_UBUNTU
179 Ecore_X_Event_Client_Message* clientMessageEvent( (Ecore_X_Event_Client_Message*)event );
180 EventHandler* handler( (EventHandler*)data );
182 if (clientMessageEvent->message_type == ECORE_X_ATOM_E_DEICONIFY_APPROVE)
184 ECore::WindowRenderSurface* x11Window( dynamic_cast< ECore::WindowRenderSurface * >( handler->mWindow->mSurface ) );
185 WindowVisibilityObserver* observer( handler->mWindow->mAdaptor );
187 if ( observer && ( (unsigned int)clientMessageEvent->data.l[0] == handler->mEcoreWindow ) )
189 if (clientMessageEvent->data.l[1] == 0) //wm sends request message using value 0
191 observer->OnWindowShown();
193 // request to approve the deiconify. render-surface should send proper event after real rendering
196 x11Window->RequestToApproveDeiconify();
199 handled = ECORE_CALLBACK_DONE;
203 #endif // DALI_PROFILE_UBUNTU
208 /// Called when the window receives a delete request
209 static Eina_Bool EcoreEventWindowDeleteRequest( void* data, int type, void* event )
211 EventHandler* handler( (EventHandler*)data );
212 handler->mWindow->mDeleteRequestSignal.Emit();
213 return ECORE_CALLBACK_DONE;
218 Ecore_Event_Handler* mWindowPropertyHandler;
219 Ecore_Event_Handler* mClientMessagehandler;
220 Ecore_Event_Handler* mWindowDeleteRequestHandler;
221 Ecore_X_Window mEcoreWindow;
225 Window* Window::New(const PositionSize& posSize, const std::string& name, const std::string& className, bool isTransparent)
227 Window* window = new Window();
228 window->mIsTransparent = isTransparent;
229 window->Initialize(posSize, name, className);
233 void Window::SetAdaptor(Dali::Adaptor& adaptor)
235 DALI_ASSERT_ALWAYS( !mStarted && "Adaptor already started" );
238 // Only create one overlay per window
239 Internal::Adaptor::Adaptor& adaptorImpl = Internal::Adaptor::Adaptor::GetImplementation(adaptor);
240 Integration::Core& core = adaptorImpl.GetCore();
241 mOverlay = &core.GetSystemOverlay();
243 Dali::RenderTaskList taskList = mOverlay->GetOverlayRenderTasks();
244 taskList.CreateTask();
246 mAdaptor = &adaptorImpl;
247 mAdaptor->AddObserver( *this );
249 // Can only create the detector when we know the Core has been instantiated.
250 mDragAndDropDetector = DragAndDropDetector::New();
251 mAdaptor->SetDragAndDropDetector( &GetImplementation( mDragAndDropDetector ) );
255 mOrientation->SetAdaptor(adaptor);
258 if( mIndicator != NULL )
260 mIndicator->SetAdaptor(mAdaptor);
264 RenderSurface* Window::GetSurface()
269 void Window::ShowIndicator( Dali::Window::IndicatorVisibleMode visibleMode )
271 DALI_LOG_TRACE_METHOD_FMT( gWindowLogFilter, "visible : %d\n", visibleMode );
272 DALI_ASSERT_DEBUG(mOverlay);
274 ECore::WindowRenderSurface* x11Window = dynamic_cast< ECore::WindowRenderSurface * >( mSurface );
275 DALI_ASSERT_DEBUG(x11Window);
276 Ecore_X_Window xWinId = x11Window->GetXWindow();
278 mIndicatorVisible = visibleMode;
280 if ( mIndicatorVisible == Dali::Window::VISIBLE )
282 // when the indicator is visible, set proper mode for indicator server according to bg mode
283 if ( mIndicatorOpacityMode == Dali::Window::OPAQUE )
285 ecore_x_e_illume_indicator_opacity_set(xWinId, ECORE_X_ILLUME_INDICATOR_OPAQUE);
287 else if ( mIndicatorOpacityMode == Dali::Window::TRANSLUCENT )
289 ecore_x_e_illume_indicator_opacity_set(xWinId, ECORE_X_ILLUME_INDICATOR_TRANSLUCENT);
291 #if defined(DALI_PROFILE_MOBILE)
292 else if ( mIndicatorOpacityMode == Dali::Window::TRANSPARENT )
294 ecore_x_e_illume_indicator_opacity_set(xWinId, ECORE_X_ILLUME_INDICATOR_OPAQUE);
300 // when the indicator is not visible, set TRANSPARENT mode for indicator server
301 ecore_x_e_illume_indicator_opacity_set(xWinId, ECORE_X_ILLUME_INDICATOR_TRANSPARENT); // it means hidden indicator
304 DoShowIndicator( mIndicatorOrientation );
307 void Window::RotateIndicator(Dali::Window::WindowOrientation orientation)
309 DALI_LOG_TRACE_METHOD_FMT( gWindowLogFilter, "Orientation: %d\n", orientation );
311 DoRotateIndicator( orientation );
314 void Window::SetIndicatorBgOpacity( Dali::Window::IndicatorBgOpacity opacityMode )
316 mIndicatorOpacityMode = opacityMode;
318 if( mIndicator != NULL )
320 mIndicator->SetOpacityMode( opacityMode );
324 void Window::SetClass(std::string name, std::string klass)
326 // Get render surface's x11 window
329 ECore::WindowRenderSurface* x11Window = dynamic_cast< ECore::WindowRenderSurface * >( mSurface );
332 ecore_x_icccm_name_class_set( x11Window->GetXWindow(), name.c_str(), klass.c_str() );
339 mIndicatorVisible( Dali::Window::INVISIBLE ),
340 mIndicatorIsShown( false ),
341 mShowRotatedIndicatorOnClose( false ),
343 mIsTransparent( false ),
344 mWMRotationAppSet( false ),
345 mEcoreEventHander( true ),
346 mIsFocusAcceptable( true ),
349 mIndicatorOrientation( Dali::Window::PORTRAIT ),
350 mNextIndicatorOrientation( Dali::Window::PORTRAIT ),
351 mIndicatorOpacityMode( Dali::Window::OPAQUE ),
354 mEventHandler( NULL ),
355 mPreferredOrientation( Dali::Window::PORTRAIT ),
356 mSupportedAuxiliaryHints(),
360 // Detect if we're not running in a ecore main loop (e.g. libuv).
361 // Typically ecore_x_init is called by app_efl_main->elm_init
362 // but if we're not using app_efl_main then we have to call it ourselves
363 // This is a hack until we create a pure X Window class
364 if( ecore_x_display_get() == NULL )
366 mEcoreEventHander = false;
367 ecore_x_init (NULL); // internally calls _ecore_x_input_init
374 delete mEventHandler;
378 mOverlay->Remove( mIndicator->GetActor() );
379 Dali::RenderTaskList taskList = mOverlay->GetOverlayRenderTasks();
380 Dali::RenderTask indicatorTask = taskList.GetTask(0);
381 mOverlay->GetOverlayRenderTasks().RemoveTask(indicatorTask);
388 mAdaptor->RemoveObserver( *this );
389 mAdaptor->SetDragAndDropDetector( NULL );
396 void Window::Initialize(const PositionSize& windowPosition, const std::string& name, const std::string& className)
398 // create an X11 window by default
400 ECore::WindowRenderSurface* windowSurface = new ECore::WindowRenderSurface( windowPosition, surface, name, className, mIsTransparent );
401 windowSurface->Map();
403 mSurface = windowSurface;
405 mOrientation = Orientation::New(this);
407 // create event handler for X11 window
408 mEventHandler = new EventHandler( this );
411 void Window::DoShowIndicator( Dali::Window::WindowOrientation lastOrientation )
413 if( mIndicator == NULL )
415 if( mIndicatorVisible != Dali::Window::INVISIBLE )
417 mIndicator = new Indicator( mAdaptor, mIndicatorOrientation, this );
418 mIndicator->SetOpacityMode( mIndicatorOpacityMode );
419 Dali::Actor actor = mIndicator->GetActor();
420 SetIndicatorActorRotation();
421 mOverlay->Add(actor);
423 // else don't create a hidden indicator
425 else // Already have indicator
427 if( mIndicatorVisible == Dali::Window::VISIBLE )
429 // If we are resuming, and rotation has changed,
430 if( mIndicatorIsShown == false && mIndicatorOrientation != mNextIndicatorOrientation )
432 // then close current indicator and open new one
433 mShowRotatedIndicatorOnClose = true;
434 mIndicator->Close(); // May synchronously call IndicatorClosed() callback & 1 level of recursion
435 // Don't show actor - will contain indicator for old orientation.
440 // set indicator visible mode
441 if( mIndicator != NULL )
443 mIndicator->SetVisible( mIndicatorVisible );
446 bool show = (mIndicatorVisible != Dali::Window::INVISIBLE );
447 SetIndicatorProperties( show, lastOrientation );
448 mIndicatorIsShown = show;
451 void Window::DoRotateIndicator( Dali::Window::WindowOrientation orientation )
453 if( mIndicatorIsShown )
455 mShowRotatedIndicatorOnClose = true;
456 mNextIndicatorOrientation = orientation;
457 mIndicator->Close(); // May synchronously call IndicatorClosed() callback
461 // Save orientation for when the indicator is next shown
462 mShowRotatedIndicatorOnClose = false;
463 mNextIndicatorOrientation = orientation;
467 void Window::SetIndicatorProperties( bool isShow, Dali::Window::WindowOrientation lastOrientation )
469 ECore::WindowRenderSurface* x11Window = dynamic_cast< ECore::WindowRenderSurface * >( mSurface );
472 Ecore_X_Window win = x11Window->GetXWindow();
474 int show_state = static_cast<int>( isShow );
475 ecore_x_window_prop_property_set( win,
476 ECORE_X_ATOM_E_ILLUME_INDICATOR_STATE,
477 ECORE_X_ATOM_CARDINAL, 32, &show_state, 1);
481 ecore_x_e_illume_indicator_state_set(win, ECORE_X_ILLUME_INDICATOR_STATE_ON);
485 ecore_x_e_illume_indicator_state_set(win, ECORE_X_ILLUME_INDICATOR_STATE_OFF);
490 void Window::IndicatorTypeChanged(Indicator::Type type)
492 ECore::WindowRenderSurface* x11Window = dynamic_cast< ECore::WindowRenderSurface * >( mSurface );
495 #ifndef DALI_PROFILE_UBUNTU
496 Ecore_X_Window win = x11Window->GetXWindow();
499 case Indicator::INDICATOR_TYPE_1:
500 ecore_x_e_illume_indicator_type_set( win, ECORE_X_ILLUME_INDICATOR_TYPE_1 );
503 case Indicator::INDICATOR_TYPE_2:
504 ecore_x_e_illume_indicator_type_set( win, ECORE_X_ILLUME_INDICATOR_TYPE_2 );
507 case Indicator::INDICATOR_TYPE_UNKNOWN:
511 #endif // DALI_PROFILE_UBUNTU
515 void Window::IndicatorClosed( IndicatorInterface* indicator )
517 DALI_LOG_TRACE_METHOD( gWindowLogFilter );
519 if( mShowRotatedIndicatorOnClose )
521 Dali::Window::WindowOrientation currentOrientation = mIndicatorOrientation;
522 mIndicator->Open(mNextIndicatorOrientation);
523 mIndicatorOrientation = mNextIndicatorOrientation;
524 SetIndicatorActorRotation();
525 DoShowIndicator(currentOrientation);
529 void Window::IndicatorVisibilityChanged(bool isVisible)
531 mIndicatorVisibilityChangedSignal.Emit(isVisible);
534 void Window::SetIndicatorActorRotation()
536 DALI_LOG_TRACE_METHOD( gWindowLogFilter );
537 DALI_ASSERT_DEBUG( mIndicator != NULL );
539 Dali::Actor actor = mIndicator->GetActor();
540 switch( mIndicatorOrientation )
542 case Dali::Window::PORTRAIT:
543 actor.SetParentOrigin( ParentOrigin::TOP_CENTER );
544 actor.SetAnchorPoint( AnchorPoint::TOP_CENTER );
545 actor.SetOrientation( Degree(0), Vector3::ZAXIS );
547 case Dali::Window::PORTRAIT_INVERSE:
548 actor.SetParentOrigin( ParentOrigin::BOTTOM_CENTER );
549 actor.SetAnchorPoint( AnchorPoint::TOP_CENTER );
550 actor.SetOrientation( Degree(180), Vector3::ZAXIS );
552 case Dali::Window::LANDSCAPE:
553 actor.SetParentOrigin( ParentOrigin::CENTER_LEFT );
554 actor.SetAnchorPoint( AnchorPoint::TOP_CENTER );
555 actor.SetOrientation( Degree(270), Vector3::ZAXIS );
557 case Dali::Window::LANDSCAPE_INVERSE:
558 actor.SetParentOrigin( ParentOrigin::CENTER_RIGHT );
559 actor.SetAnchorPoint( AnchorPoint::TOP_CENTER );
560 actor.SetOrientation( Degree(90), Vector3::ZAXIS );
567 ECore::WindowRenderSurface* x11Window = dynamic_cast< ECore::WindowRenderSurface * >( mSurface );
570 Ecore_X_Window win = x11Window->GetXWindow();
571 ecore_x_window_raise(win);
577 ECore::WindowRenderSurface* x11Window = dynamic_cast< ECore::WindowRenderSurface * >( mSurface );
580 Ecore_X_Window win = x11Window->GetXWindow();
581 ecore_x_window_lower(win);
585 void Window::Activate()
587 ECore::WindowRenderSurface* x11Window = dynamic_cast< ECore::WindowRenderSurface * >( mSurface );
590 Ecore_X_Window win = x11Window->GetXWindow();
591 ecore_x_netwm_client_active_request(ecore_x_window_root_get(win), win, 1 /* request type, 1:application, 2:pager */, 0);
595 Dali::DragAndDropDetector Window::GetDragAndDropDetector() const
597 return mDragAndDropDetector;
600 Dali::Any Window::GetNativeHandle() const
604 return mEventHandler->mEcoreWindow;
612 void Window::OnStart()
614 ShowIndicator( mIndicatorVisible );
617 void Window::OnPause()
621 void Window::OnResume()
623 // resume indicator status
624 if( mIndicator != NULL )
626 // Restore own indicator opacity
627 // Send opacity mode to indicator service when app resumed
628 mIndicator->SetOpacityMode( mIndicatorOpacityMode );
632 void Window::OnStop()
643 void Window::OnDestroy()
648 void Window::AddAvailableOrientation(Dali::Window::WindowOrientation orientation)
652 for( std::size_t i=0; i<mAvailableOrientations.size(); i++ )
654 if(mAvailableOrientations[i] == orientation)
663 mAvailableOrientations.push_back(orientation);
664 SetAvailableOrientations( mAvailableOrientations );
668 void Window::RemoveAvailableOrientation(Dali::Window::WindowOrientation orientation)
670 for( std::vector<Dali::Window::WindowOrientation>::iterator iter = mAvailableOrientations.begin();
671 iter != mAvailableOrientations.end(); ++iter )
673 if( *iter == orientation )
675 mAvailableOrientations.erase( iter );
679 SetAvailableOrientations( mAvailableOrientations );
682 void Window::SetAvailableOrientations(const std::vector<Dali::Window::WindowOrientation>& orientations)
684 DALI_ASSERT_ALWAYS( mAvailableOrientations.size() <= 4 && "Incorrect number of available orientations" );
686 mAvailableOrientations = orientations;
687 ECore::WindowRenderSurface* x11Window = dynamic_cast< ECore::WindowRenderSurface * >( mSurface );
690 #ifndef DALI_PROFILE_UBUNTU
691 Ecore_X_Window ecoreWindow = x11Window->GetXWindow();
692 if( ! mWMRotationAppSet )
694 mWMRotationAppSet = true;
695 ecore_x_e_window_rotation_app_set(ecoreWindow, EINA_TRUE);
699 for( std::size_t i=0; i<mAvailableOrientations.size(); i++ )
701 rotations[i] = static_cast<int>(mAvailableOrientations[i]);
703 ecore_x_e_window_rotation_available_rotations_set(ecoreWindow, rotations, mAvailableOrientations.size() );
704 #endif // DALI_PROFILE_UBUNTU
708 const std::vector<Dali::Window::WindowOrientation>& Window::GetAvailableOrientations()
710 return mAvailableOrientations;
713 void Window::SetPreferredOrientation(Dali::Window::WindowOrientation orientation)
715 mPreferredOrientation = orientation;
717 ECore::WindowRenderSurface* x11Window = dynamic_cast< ECore::WindowRenderSurface * >( mSurface );
720 #ifndef DALI_PROFILE_UBUNTU
721 Ecore_X_Window ecoreWindow = x11Window->GetXWindow();
723 if( ! mWMRotationAppSet )
725 mWMRotationAppSet = true;
726 ecore_x_e_window_rotation_app_set(ecoreWindow, EINA_TRUE);
729 ecore_x_e_window_rotation_preferred_rotation_set(ecoreWindow, orientation);
730 #endif // DALI_PROFILE_UBUNTU
734 Dali::Window::WindowOrientation Window::GetPreferredOrientation()
736 return mPreferredOrientation;
739 void Window::SetAcceptFocus( bool accept )
741 mIsFocusAcceptable = accept;
744 bool Window::IsFocusAcceptable()
746 return mIsFocusAcceptable;
751 ECore::WindowRenderSurface* x11Window = dynamic_cast< ECore::WindowRenderSurface * >( mSurface );
754 Ecore_X_Window win = x11Window->GetXWindow();
755 ecore_x_window_show( win );
757 // Need an update request
760 mAdaptor->RequestUpdateOnce();
767 ECore::WindowRenderSurface* x11Window = dynamic_cast< ECore::WindowRenderSurface * >( mSurface );
770 Ecore_X_Window win = x11Window->GetXWindow();
771 ecore_x_window_hide( win );
775 bool Window::IsVisible() const
777 bool visible = false;
779 ECore::WindowRenderSurface* x11Window = dynamic_cast< ECore::WindowRenderSurface * >( mSurface );
782 Ecore_X_Window win = x11Window->GetXWindow();
783 visible = static_cast< bool >( ecore_x_window_visible_get( win ) );
788 void Window::RotationDone( int orientation, int width, int height )
790 // Tell window manager we're done
791 ECore::WindowRenderSurface* x11Window = dynamic_cast< ECore::WindowRenderSurface * >( mSurface );
794 #ifndef DALI_PROFILE_UBUNTU
795 Ecore_X_Window ecoreWindow = x11Window->GetXWindow();
796 Ecore_X_Window root = ecore_x_window_root_get(ecoreWindow);
799 * send rotation done message to wm, even if window is already rotated.
800 * that's why wm must be wait for comming rotation done message
801 * after sending rotation request.
803 ecore_x_e_window_rotation_change_done_send(root, ecoreWindow, orientation, width, height);
806 * set rotate window property
808 int angles[2] = { orientation, orientation };
809 ecore_x_window_prop_property_set( ecoreWindow,
810 ECORE_X_ATOM_E_ILLUME_ROTATE_WINDOW_ANGLE,
811 ECORE_X_ATOM_CARDINAL, 32, &angles, 2 );
812 #endif // DALI_PROFILE_UBUNTU
816 unsigned int Window::GetSupportedAuxiliaryHintCount()
821 std::string Window::GetSupportedAuxiliaryHint( unsigned int index )
823 return std::string();
826 unsigned int Window::AddAuxiliaryHint( const std::string& hint, const std::string& value )
831 bool Window::RemoveAuxiliaryHint( unsigned int id )
836 bool Window::SetAuxiliaryHintValue( unsigned int id, const std::string& value )
841 std::string Window::GetAuxiliaryHintValue( unsigned int id ) const
843 return std::string();
846 unsigned int Window::GetAuxiliaryHintId( const std::string& hint ) const
851 void Window::SetInputRegion( const Rect< int >& inputRegion )