X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fflex-container%2Fflex-container-impl.h;h=a4cb2691480dbb13564d6f137f01c42cc8f773ba;hp=17ea2b64b8b3aab43f4424d523dc47ed58367653;hb=b1e8521ad77e7b4e62b59613b2edef64429130e9;hpb=46e8848bda5e3287a80ee9ce020166ad55a52ec0 diff --git a/dali-toolkit/internal/controls/flex-container/flex-container-impl.h b/dali-toolkit/internal/controls/flex-container/flex-container-impl.h old mode 100644 new mode 100755 index 17ea2b6..a4cb269 --- a/dali-toolkit/internal/controls/flex-container/flex-container-impl.h +++ b/dali-toolkit/internal/controls/flex-container/flex-container-impl.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_INTERNAL_FLEX_CONTAINER_H__ -#define __DALI_TOOLKIT_INTERNAL_FLEX_CONTAINER_H__ +#ifndef DALI_TOOLKIT_INTERNAL_FLEX_CONTAINER_H +#define DALI_TOOLKIT_INTERNAL_FLEX_CONTAINER_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,15 +19,12 @@ */ // EXTERNAL INCLUDES -#include +#include // INTERNAL INCLUDES #include -#include -extern "C" -{ -#include "layout.h" -} +#include +#include namespace Dali { @@ -39,7 +36,7 @@ namespace Internal { /** - * FlexContainer is a custom control for laying out actors in a flexbox layout + * FlexContainer is a custom control for laying out actors in a Flexbox layout * @see Dali::Toolkit:FlexContainer for more details */ class FlexContainer : public Control @@ -52,7 +49,7 @@ public: struct FlexItemNode { WeakHandle< Dali::Actor > actor; ///< Actor handle of the flex item - css_node_t* node; ///< The style properties and layout information + YGNodeRef node; ///< The style properties and layout information }; typedef std::vector< FlexItemNode > FlexItemNodeContainer; @@ -206,9 +203,11 @@ private: // From Control virtual void OnSizeSet( const Vector3& size ); /** - * @copydoc CustomActorImpl::OnSizeAnimation(Animation&, const Vector3&) - */ - virtual void OnSizeAnimation(Animation& animation, const Vector3& targetSize); + * @copydoc OnLayoutDirectionChanged( Dali::Actor actor, Dali::LayoutDirection::Type type ) + * @param[in] actor The actor whose layoutDirection is changed. + * @param[in] type The layoutDirection. + */ + void OnLayoutDirectionChanged( Dali::Actor actor, Dali::LayoutDirection::Type type ); private: // Implementation @@ -272,4 +271,4 @@ inline const Toolkit::Internal::FlexContainer& GetImpl( const Toolkit::FlexConta } // namespace Dali -#endif // __DALI_TOOLKIT_INTERNAL_FLEX_CONTAINER_H__ +#endif // DALI_TOOLKIT_INTERNAL_FLEX_CONTAINER_H