1 #ifndef __DALI_INTERNAL_ROTATION_OBSERVER_H__
2 #define __DALI_INTERNAL_ROTATION_OBSERVER_H__
5 * Copyright (c) 2014 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.
34 int angle; ///< one of 0, 90, 180, 270
35 int winResize; ///< true if the window should be resized
36 int width; ///< new window width
37 int height; ///< new window height
42 * The RotationObserver can be overridden in order to listen to rotation events.
44 class RotationObserver
49 * Deriving classes should override this to be notified when we receive a RotationPrepare event.
50 * @param[in] area The area that has been rotationd.
52 virtual void OnRotationPrepare( const RotationEvent& rotation ) = 0;
55 * Deriving classes should override this to be notifed when a RotationRequest event is received
57 virtual void OnRotationRequest( ) = 0;
62 * Protected Constructor.
69 * Protected virtual destructor.
71 virtual ~RotationObserver()
76 } // namespace Adaptor
78 } // namespace Internal
82 #endif // __DALI_INTERNAL_ROTATION_OBSERVER_H__