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-impl.h;h=755409facb1b8afd9e4ca7f12b5eadb8cc1e70df;hp=6fc777d68d272360b03f945381345626124c5b72;hb=a0a28eb90260b017d231b0a2ff993825405fd058;hpb=6f2c97cdf289951bf0182f99c9d528d3ff2d78e7 diff --git a/dali-toolkit/internal/visuals/visual-base-impl.h b/dali-toolkit/internal/visuals/visual-base-impl.h index 6fc777d..755409f 100644 --- a/dali-toolkit/internal/visuals/visual-base-impl.h +++ b/dali-toolkit/internal/visuals/visual-base-impl.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_INTERNAL_VISUAL_H /* - * Copyright (c) 2017 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. @@ -32,6 +32,8 @@ #include #include #include +#include +#include namespace Dali { @@ -47,6 +49,8 @@ namespace Visual class ResourceObserver; +using FittingMode = DevelVisual::FittingMode; + /** * Base class for all Control rendering logic. A control may have multiple visuals. * @@ -248,14 +252,19 @@ public: */ Toolkit::Visual::ResourceStatus GetResourceStatus() const; -protected: + /** + * @brief Get the fitting mode for the visual + */ + FittingMode GetFittingMode() const; + + protected: /** * @brief Constructor. * * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object */ - Base( VisualFactoryCache& factoryCache ); + Base( VisualFactoryCache& factoryCache, FittingMode fittingMode ); /** * @brief A reference counted object may only be deleted by calling Unreference().