X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fcommon%2Fscene-impl.h;h=f9db963bf7b9ecaf3b3d68a9cfb61c6bbe5b0ee8;hb=a06eafa8babd0523af3b6935e2c900347f96bfb8;hp=634bcbd70f3dbdbc52e68e584471eb7855ef5516;hpb=1e406489333bc9fbf0d6beaca0c3919231b80fc9;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/common/scene-impl.h b/dali/internal/event/common/scene-impl.h index 634bcbd..f9db963 100644 --- a/dali/internal/event/common/scene-impl.h +++ b/dali/internal/event/common/scene-impl.h @@ -62,7 +62,7 @@ public: /** * @copydoc Dali::Integration::Scene::New */ - static ScenePtr New( const Size& size ); + static ScenePtr New( Integration::RenderSurface& surface ); /** * virtual destructor @@ -120,6 +120,21 @@ public: void SetSurface( Integration::RenderSurface& surface ); /** + * Notify the surface has been resized. + */ + void SurfaceResized(); + + /** + * Notify the surface has been deleted. + */ + void SurfaceDeleted(); + + /** + * @copydoc Dali::Integration::Scene::Discard + */ + void Discard(); + + /** * Retrieve the render surface the scene is binded to. * @return The render surface. */ @@ -154,10 +169,10 @@ public: void RebuildDepthTree(); /** - * @brief Sets the background color of the render surface. + * @brief Sets the background color of the render surface. * @param[in] color The new background color */ - void SetBackgroundColor(Vector4 color); + void SetBackgroundColor( const Vector4& color ); /** * @brief Gets the background color of the render surface. @@ -172,6 +187,13 @@ public: void EmitKeyEventSignal(const KeyEvent& event); /** + * Used by the KeyEventProcessor to emit KeyEventGenerated signals. + * @param[in] event The key event. + * @return The return is true if KeyEvent is consumed, otherwise false. + */ + bool EmitKeyEventGeneratedSignal(const KeyEvent& event); + + /** * Emits the event processing finished signal. * * @see Dali::Scene::SignalEventProcessingFinished() @@ -196,6 +218,11 @@ public: */ Integration::Scene::KeyEventSignalType& KeyEventSignal(); + /** + * @copydoc Integration::Scene::KeyEventGeneratedSignal() + */ + Integration::Scene::KeyEventGeneratedSignalType& KeyEventGeneratedSignal(); + /** * @copydoc Integration::Scene::SignalEventProcessingFinished() */ @@ -236,12 +263,12 @@ public: private: // Constructor - Scene( const Size& size ); + Scene(); /** * Second-phase constructor. */ - void Initialize(); + void Initialize( Integration::RenderSurface& surface ); // Undefined Scene(const Scene&) = delete; @@ -252,12 +279,12 @@ private: private: Integration::RenderSurface* mSurface; - // The scene-size may be different with the surface-size Size mSize; - Size mSurfaceSize; Vector2 mDpi; + Vector4 mBackgroundColor; + LayerPtr mRootLayer; // Ordered list of currently on-stage layers @@ -277,6 +304,7 @@ private: // The key event signal Integration::Scene::KeyEventSignalType mKeyEventSignal; + Integration::Scene::KeyEventGeneratedSignalType mKeyEventGeneratedSignal; // The event processing finished signal Integration::Scene::EventProcessingFinishedSignalType mEventProcessingFinishedSignal;