mGEff API Reference
v1.2.0
An animation framework for MiniGUI apps
|
A motion curve headfile. More...
Go to the source code of this file.
Typedefs | |
typedef float(* | MGEFF_MOTIONCURVE_CB) (float progress) |
Type of the value calculating callback of the motion curve fuction. More... | |
Enumerations | |
enum | EffCurveProperty { MGEFFCURVE_PROP_OVERSHOOT = 0, MGEFFCURVE_PROP_PERIOD = 1, MGEFFCURVE_PROP_AMPLITUDE = 2 } |
the type of motion curve property More... | |
enum | EffMotionType { Linear, InQuad, OutQuad, InOutQuad, OutInQuad, InCubic, OutCubic, InOutCubic, OutInCubic, InQuart, OutQuart, InOutQuart, OutInQuart, InQuint, OutQuint, InOutQuint, OutInQuint, InSine, OutSine, InOutSine, OutInSine, InExpo, OutExpo, InOutExpo, OutInExpo, InCirc, OutCirc, InOutCirc, OutInCirc, InElastic, OutElastic, InOutElastic, OutInElastic, InBack, OutBack, InOutBack, OutInBack, InBounce, OutBounce, InOutBounce, OutInBounce, InCurve, OutCurve, SineCurve, CosineCurve, Custom, NCurveTypes } |
the type of predefined motion curve More... | |
Functions | |
MGEFF_DECLARE_HANDLE (MGEFF_MOTIONCURVE) | |
The handle to the motioncurve. | |
void | mGEffCurveSetProperty (MGEFF_MOTIONCURVE handle, enum EffCurveProperty, float value) |
set property of an animation. More... | |
float | mGEffCurveGetProperty (MGEFF_MOTIONCURVE handle, enum EffCurveProperty) |
Get property of an animation. More... | |
A motion curve headfile.
============================================================================
This file is part of mGEff, a component for MiniGUI. Copyright (C) 2008~2018, Beijing FMSoft Technologies Co., Ltd. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. Or, As this program is a library, any link to this program must follow GNU General Public License version 3 (GPLv3). If you cannot accept GPLv3, you need to be licensed from FMSoft. If you have got a commercial license of this program, please use it under the terms and conditions of the commercial license. For more information about the commercial license, please refer to <http://www.minigui.com/en/about/licensing-policy/>.
float(* MGEFF_MOTIONCURVE_CB)(float progress) |
Type of the value calculating callback of the motion curve fuction.
progress | variable |
enum EffCurveProperty |
enum EffMotionType |
the type of predefined motion curve
float mGEffCurveGetProperty | ( | MGEFF_MOTIONCURVE | handle, |
enum | EffCurveProperty | ||
) |
Get property of an animation.
This function get the property value specified by EffCurveProperty of the motion curve specified by handle.
handle | The motion curve handle . |
EffCurveProperty | The property type. |
void mGEffCurveSetProperty | ( | MGEFF_MOTIONCURVE | handle, |
enum | EffCurveProperty, | ||
float | value | ||
) |
set property of an animation.
This function set the property specified by EffCurveProperty of the motion curve specified by handle to a new value specified value.
handle | The motion curve handle. |
EffCurveProperty | The type of the property to be set. |
value | New property value. |