X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fvisual-base-data-impl.h;h=f563f941da947b7274219f123ba12500f0eac427;hp=8b235f8a08c7010a088b860fe709e31147029654;hb=610495b8647d1a25c98bf0773ccc0dd6d1996263;hpb=190a30974e11c5792335e3b0493bf1c212beec6a diff --git a/dali-toolkit/internal/visuals/visual-base-data-impl.h b/dali-toolkit/internal/visuals/visual-base-data-impl.h index 8b235f8..f563f94 100644 --- a/dali-toolkit/internal/visuals/visual-base-data-impl.h +++ b/dali-toolkit/internal/visuals/visual-base-data-impl.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_INTERNAL_VISUAL_BASE_DATA_IMPL_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -24,7 +24,10 @@ // INTERNAL INCLUDES #include -#include +#include +#include +#include +#include namespace Dali { @@ -42,8 +45,10 @@ struct Base::Impl { /** * Constructor + * @param [in] fittingMode that the derived class prefers + * @param [in] type The type of the this visual */ - Impl(); + Impl( FittingMode fittingMode, Toolkit::Visual::Type type ); /** * Destructor @@ -52,7 +57,7 @@ struct Base::Impl enum Flags { - IS_ON_STAGE = 1, + IS_ON_SCENE = 1, IS_ATLASING_APPLIED = 1<<1, IS_PREMULTIPLIED_ALPHA = 1 << 2, IS_SYNCHRONOUS_RESOURCE_LOADING = 1 << 3 @@ -107,6 +112,7 @@ struct Base::Impl Vector2 mOffset; Vector2 mSize; + Vector2 mExtraSize; Vector4 mOffsetSizeMode; Toolkit::Align::Type mOrigin; Toolkit::Align::Type mAnchorPoint; @@ -115,14 +121,20 @@ struct Base::Impl Renderer mRenderer; CustomShader* mCustomShader; SlotDelegate* mBlendSlotDelegate; ///< Used to own mix color animation connection + EventObserver* mEventObserver; ///< Allows controls to observe when the visual has events to notify std::string mName; Transform mTransform; Vector4 mMixColor; Size mControlSize; - float mDepthIndex; + float mCornerRadius; + float mCornerRadiusPolicy; + int mDepthIndex; Property::Index mMixColorIndex; - Property::Index mOpacityIndex; + Property::Index mCornerRadiusIndex; + FittingMode mFittingMode; //< How the contents should fit the view int mFlags; + Toolkit::Visual::ResourceStatus mResourceStatus; + const Toolkit::Visual::Type mType; }; } // namespace Visual