#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.
#include <dali-toolkit/internal/visuals/transition-data-impl.h>
#include <dali-toolkit/internal/visuals/visual-factory-cache.h>
#include <dali-toolkit/devel-api/direction-enums.h>
+#include <dali-toolkit/public-api/visuals/visual-properties.h>
+#include <dali-toolkit/devel-api/visuals/visual-properties-devel.h>
namespace Dali
{
class ResourceObserver;
+using FittingMode = DevelVisual::FittingMode;
+
/**
* Base class for all Control rendering logic. A control may have multiple visuals.
*
/**
* @copydoc Toolkit::Visual::Base::GetName
*/
- const std::string& GetName();
+ const std::string& GetName() const;
/**
* @copydoc Toolkit::Visual::Base::SetSize
*/
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().