X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=base%2Fdali-toolkit%2Finternal%2Fcontrols%2Frelayout-controller-impl.h;h=f60d5e50854bbfe87e5af2d33737b16fef1b2530;hb=7e315a440bad7033d19fefa8f9952d625ee6f076;hp=7f655c59a7a26bbd1cb6c63aa677fbfe8d1abe09;hpb=d5e3ed5f5b1c8fdba3ae97ead8729620f54b3836;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/base/dali-toolkit/internal/controls/relayout-controller-impl.h b/base/dali-toolkit/internal/controls/relayout-controller-impl.h index 7f655c5..f60d5e5 100644 --- a/base/dali-toolkit/internal/controls/relayout-controller-impl.h +++ b/base/dali-toolkit/internal/controls/relayout-controller-impl.h @@ -18,7 +18,13 @@ * */ -#include +// EXTERNAL INCLUDES +#include +#include + +// INTERNAL INCLUDES +#include +#include #include "relayout-controller.h" namespace Dali @@ -32,6 +38,9 @@ namespace Internal class RelayoutController; +typedef std::pair< Dali::Toolkit::Control, Vector2 > ControlSizePair; +typedef std::vector< ControlSizePair > ControlStack; + /** * @copydoc Toolkit::Internal::RelayoutController */ @@ -42,8 +51,9 @@ public: /** * Constructor. * We should only create a unique instance. + * @param relayoutFlag to avoid unnecessary calls inside a single frame */ - RelayoutControllerImpl(); + RelayoutControllerImpl( bool& relayoutFlag ); /** @@ -79,7 +89,11 @@ private: private: - bool mRelayoutConnection:1; ///< Whether EventProcessingFinishedSignal signal is connected. + bool& mRelayoutFlag; ///< reference to relayout flag to avoid unnecessary calls + ControlStack mControlStack; ///< stack for relayouting + ActorSizeContainer mSizecontainer; ///< size container + bool mRelayoutConnection:1; ///< Whether EventProcessingFinishedSignal signal is connected. + }; } // namespace Internal