diff options
author | Sarper Akdemir <q.sarperakdemir@gmail.com> | 2020-08-14 01:18:14 +0300 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-08-22 11:24:16 +0200 |
commit | 394f74e6f168f034f7ed73e3027e4ff07f6b94b9 (patch) | |
tree | b4da98e1d95e6bd3bf0e0a1cf30a9a5769907dc3 /offapi | |
parent | 8a360d04e43410e729c0ee270be5447ce6c1cd03 (diff) |
add bounciness velocity and density options to physics animations
Adding new xml options to specify the starting velocity, bounciness,
and density of the rigid body that physics animation control.
Change-Id: Ifaba785e82c8ee17be00711a3e7a75257e7704ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101141
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/UnoApi_offapi.mk | 1 | ||||
-rw-r--r-- | offapi/com/sun/star/animations/XAnimatePhysics.idl | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk index 8a4631dfa52a..23138250b9d4 100644 --- a/offapi/UnoApi_offapi.mk +++ b/offapi/UnoApi_offapi.mk @@ -1681,6 +1681,7 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,com/sun/star/animations,\ XAnimate \ XAnimateColor \ XAnimateMotion \ + XAnimatePhysics \ XAnimateSet \ XAnimateTransform \ XAnimationListener \ diff --git a/offapi/com/sun/star/animations/XAnimatePhysics.idl b/offapi/com/sun/star/animations/XAnimatePhysics.idl new file mode 100644 index 000000000000..0b1ba7577335 --- /dev/null +++ b/offapi/com/sun/star/animations/XAnimatePhysics.idl @@ -0,0 +1,57 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ +#ifndef __com_sun_star_animations_XAnimatePhysics_idl__ +#define __com_sun_star_animations_XAnimatePhysics_idl__ + +#include <com/sun/star/animations/XAnimate.idl> + + + module com { module sun { module star { module animations { + + +/** Interface for physics animation. + + @since LibreOffice 7.1 +*/ +interface XAnimatePhysics : XAnimate +{ + /** Specifies an optional horizontal starting velocity + + Expressed in 1/100 mm. + */ + [attribute] any StartVelocityX; + + /** Specifies an optional vertical starting velocity + + Expressed in 1/100 mm. + */ + [attribute] any StartVelocityY; + + /** Specifies an optional density value + + Expressed in kg/m^2. + Should be non-negative. + Has a default value of 1. + */ + [attribute] any Density; + + /** Specifies an optional bounciness value + + Takes a value between [0,1], 1 being no energy loss on collisions + Has a default value of 0.1 + */ + [attribute] any Bounciness; +}; + + +}; }; }; }; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |