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=ce09e23b994ac58c3cfe7dc25c9a991f625c063f;hb=94676883816fd9006acf918be6d8ff2141910f8d;hpb=db152116b8c7de79b206d7d361c9d3875d05d0ac 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 ce09e23..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) 2017 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 -} +#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; @@ -205,6 +202,13 @@ private: // From Control */ virtual void OnSizeSet( const Vector3& size ); + /** + * @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 /** @@ -267,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