2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://floralicense.org/license/
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FUiEffects_RendererEngineModelAlphaBlendProperty.cpp
20 * @brief This file contains implementation of AlphaBlendProperty class
24 #include <renderer/engine-model/FUiEffects_RendererEngineModelPropertyVisitor.h>
25 #include <renderer/engine-model/FUiEffects_RendererEngineModelAlphaBlendProperty.h>
28 namespace Tizen { namespace Ui { namespace Effects { namespace _Renderer { namespace EngineModel
31 AlphaBlendProperty::AlphaBlendProperty(void):
32 __source(BlendFactor::SRC_ALPHA),
33 __destination(BlendFactor::ONE_MINUS_SRC_ALPHA),
39 AlphaBlendProperty::~AlphaBlendProperty(void)
48 AlphaBlendProperty::Visit(PropertyVisitor& v)
50 v.OnAlphaBlendProperty(*this);
55 AlphaBlendProperty::IsEnable(void)
60 AlphaBlendProperty::BlendFactor::Value
61 AlphaBlendProperty::GetSourceFactor(void)
66 AlphaBlendProperty::BlendFactor::Value
67 AlphaBlendProperty::GetDestinationFactor(void)
73 AlphaBlendProperty::SetFactors(BlendFactor::Value source, BlendFactor::Value destination)
76 __destination = destination;
81 AlphaBlendProperty::Enable(bool isEnabled)
83 __isEnabled = isEnabled;
89 AlphaBlendProperty::GetCache(void)
95 AlphaBlendProperty::SetCache(CachePtr cache)
106 AlphaBlendProperty::TouchCache(void)
110 __cache->Invalidate();
115 }}}}} //Tizen::Ui::Effects::_Renderer::EngineModel