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.
18 * @file FUiEffects_RuntimeIScriptProcessing.h
19 * @brief This is the header file for the IScriptProcessing class.
22 #ifndef _FUI_EFFECTS_INTERNAL_RUNTIME_ISCRIPT_PROCESSING_H_
23 #define _FUI_EFFECTS_INTERNAL_RUNTIME_ISCRIPT_PROCESSING_H_
25 #include <FUiEffectsTypes.h>
26 #include <FUiEffects_PeElementSurface.h>
27 #include "FUiEffects_RuntimeModel.h"
29 namespace Tizen { namespace Ui { namespace Effects { namespace _Runtime
33 * @class IScriptProcessing
34 * @brief This class is an interface between EffectModel and ScriptProcessing module -
35 * for calling script functions by EffectModel
40 class IScriptProcessing
49 * @remarks In case if in the future be needed do the memory allocation of
50 * class-inheritor under the pointer to base class (memory leak prevention)
52 virtual ~IScriptProcessing(void)
57 * Calls Initialize script function for Initialize event handling
62 virtual bool Initialize(void) = 0;
65 * Calls OnEffectStart script function for OnEffectStart event handling
70 virtual bool OnEffectStart(const EffectsVector<float>& effectStartInfo) = 0;
73 * Calls OnEffectCalculate script function for OnEffectCalculate event handling
78 virtual bool OnEffectCalculate(float dt) = 0;
81 * Calls OnTouchPressed script function for OnTouchPressed event handling
86 virtual bool OnTouchPressed(const TouchEventScript &position) = 0;
89 * Calls OnTouchDoublePressed script function for OnTouchDoublePressed event handling
94 virtual bool OnTouchDoublePressed(const TouchEventScript &position) = 0;
97 * Calls OnTouchMoved script function for OnTouchMoved event handling
102 virtual bool OnTouchMoved(const TouchEventScript &position) = 0;
105 * Calls OnTouchReleased script function for OnTouchReleased event handling
110 virtual bool OnTouchReleased(const TouchEventScript &position) = 0;
113 * Calls IsEffectFinished script function for IsEffectFinished event handling
118 virtual ::Tizen::Ui::Effects::_Runtime::EffectResultS IsEffectFinished(void) = 0;
120 }; // IScriptProcessing
122 } } } } // Tizen::Ui::Effects::_Runtime
124 #endif //_FUI_EFFECTS_INTERNAL_RUNTIME_ISCRIPT_PROCESSING_H_