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 <adaptors/devel-api/adaptor-framework/window-devel.h>
20 #include <adaptors/common/window-impl.h>
28 FocusSignalType& FocusChangedSignal( Window window )
30 return GetImplementation( window ).FocusChangedSignal();
33 void SetAcceptFocus( Window window, bool accept )
35 GetImplementation( window ).SetAcceptFocus( accept );
38 bool IsFocusAcceptable( Window window )
40 return GetImplementation( window ).IsFocusAcceptable();
43 void Show( Window window )
45 GetImplementation( window ).Show();
48 void Hide( Window window )
50 GetImplementation( window ).Hide();
53 bool IsVisible( Window window )
55 return GetImplementation( window ).IsVisible();
58 unsigned int GetSupportedAuxiliaryHintCount( Window window )
60 return GetImplementation( window ).GetSupportedAuxiliaryHintCount();
63 std::string GetSupportedAuxiliaryHint( Window window, unsigned int index )
65 return GetImplementation( window ).GetSupportedAuxiliaryHint( index );
68 unsigned int AddAuxiliaryHint( Window window, const std::string& hint, const std::string& value )
70 return GetImplementation( window ).AddAuxiliaryHint( hint, value );
73 bool RemoveAuxiliaryHint( Window window, unsigned int id )
75 return GetImplementation( window ).RemoveAuxiliaryHint( id );
78 bool SetAuxiliaryHintValue( Window window, unsigned int id, const std::string& value )
80 return GetImplementation( window ).SetAuxiliaryHintValue( id, value );
83 std::string GetAuxiliaryHintValue( Window window, unsigned int id )
85 return GetImplementation( window ).GetAuxiliaryHintValue( id );
88 unsigned int GetAuxiliaryHintId( Window window, const std::string& hint )
90 return GetImplementation( window ).GetAuxiliaryHintId( hint );
93 void SetInputRegion( Window window, const Rect< int >& inputRegion )
95 return GetImplementation( window ).SetInputRegion( inputRegion );
98 void SetType( Window window, Type type )
100 GetImplementation( window ).SetType( type );
103 Type GetType( Window window )
105 return GetImplementation( window ).GetType();
108 bool SetNotificationLevel( Window window, NotificationLevel::Type level )
110 return GetImplementation( window ).SetNotificationLevel( level );
113 NotificationLevel::Type GetNotificationLevel( Window window )
115 return GetImplementation( window ).GetNotificationLevel();
118 void SetOpaqueState( Window window, bool opaque )
120 GetImplementation( window ).SetOpaqueState( opaque );
123 bool IsOpaqueState( Window window )
125 return GetImplementation( window ).IsOpaqueState();
128 bool SetScreenMode( Window window, ScreenMode::Type screenMode )
130 return GetImplementation( window ).SetScreenMode( screenMode );
133 ScreenMode::Type GetScreenMode( Window window )
135 return GetImplementation( window ).GetScreenMode();
138 bool SetBrightness( Window window, int brightness )
140 return GetImplementation( window ).SetBrightness( brightness );
143 int GetBrightness( Window window )
145 return GetImplementation( window ).GetBrightness();
148 } // namespace DevelWindow