X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fpage-turn-view%2Fpage-factory.h;h=0c6e18df3d7bb7b97eb27f56dd2d3d02a426cdb0;hb=70337c87eb5b0d5678117b6ab7e41099b62614e1;hp=c0d09a2ad3cf0190f67cc6ff147b8bf57cf0f3c8;hpb=e4e5db1d2d7997e7bf803a531048d8dcb959083b;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/public-api/controls/page-turn-view/page-factory.h b/dali-toolkit/public-api/controls/page-turn-view/page-factory.h index c0d09a2..0c6e18d 100644 --- a/dali-toolkit/public-api/controls/page-turn-view/page-factory.h +++ b/dali-toolkit/public-api/controls/page-turn-view/page-factory.h @@ -34,34 +34,11 @@ namespace Toolkit class DALI_IMPORT_API PageFactory { public: - // Property Names - static const std::string ACTOR_HITTABLE; ///< name "actor-hittable", type bool - -public: - - /** - * Constructor - * By default, the off screen rendering is disabled - * Is off screen rendering is required to create the page image, - * call EnableOffscreenRendering() before pass it as parameter to the PageTurnView - */ - PageFactory(); /** * Virtual destructor */ - virtual ~PageFactory(); - - /** - * Enable the off screen rendering to create the page image from actor tree - */ - void EnableOffscreenRendering( ); - - /** - * Query whether offscreen rendering is needed to create the page image - * @return - */ - bool IsOffscreenRenderingNeeded(); + virtual ~PageFactory(){}; /** * Query the number of pages available from the factory. @@ -75,46 +52,6 @@ public: * @return An actor, or an uninitialized pointer if the ID is out of range. */ virtual Actor NewPage( unsigned int pageId ) = 0; - -public: //Signal - /** - * Signal type for notification - */ - typedef Signal< void ( int ) > RefreshSignal; - - /** - * Signal emitted when the Actor tree is ready for rendering into the page image. - * The signal is connected to the page refresh function inside PageTurnView. - */ - RefreshSignal& PageRefreshSignal(); - - /** - * Emit the page ready singal. The PageTurn view will be notified to refresh the given page accordingly. - * @param[in] pageId the index of the page which is ready for refreshing. - */ - void EmitPageRefreshSignal( int pageId ); - -protected: - - /** - * Sets whether an actor should be hittable for the PageTurnView::GetHitActor(). - * It is useful when a sub-tree should be hit instead of the 'leaf' actor in the actor tree. - * By default, actors are not hittable for PageTurnView::GetHitActor() - * @param[in] actor The actor to be set with the hittablity - * @param[in] hittable True to be hittable, false otherwise. - */ - void SetActorHittability( Actor actor, bool hittable ); - - /** - * Query whether an actor is hittable for the PageTurnView::GetHitActor(). - */ - bool GetActorHittability( Actor actor ); - -private: - - bool mNeedOffscreenRendering; - - RefreshSignal mPageRefreshSignal; }; } // namespace Toolkit