mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
Add uianimation-stubs patchset
This commit is contained in:
parent
f98bff1805
commit
e884abcd88
@ -319,6 +319,7 @@ patch_enable_all ()
|
||||
enable_stdole32_idl_Typelib="$1"
|
||||
enable_stdole32_tlb_SLTG_Typelib="$1"
|
||||
enable_taskmgr_Memory_Usage="$1"
|
||||
enable_uianimation_stubs="$1"
|
||||
enable_user_exe16_DlgDirList="$1"
|
||||
enable_user32_Auto_Radio_Button="$1"
|
||||
enable_user32_Combobox_WM_SIZE="$1"
|
||||
@ -1133,6 +1134,9 @@ patch_enable ()
|
||||
taskmgr-Memory_Usage)
|
||||
enable_taskmgr_Memory_Usage="$2"
|
||||
;;
|
||||
uianimation-stubs)
|
||||
enable_uianimation_stubs="$2"
|
||||
;;
|
||||
user.exe16-DlgDirList)
|
||||
enable_user_exe16_DlgDirList="$2"
|
||||
;;
|
||||
@ -6699,6 +6703,24 @@ if test "$enable_taskmgr_Memory_Usage" -eq 1; then
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset uianimation-stubs
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
# | * [#41369] Add UIAnimation and stubs interfaces
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * configure, configure.ac, dlls/uianimation/Makefile.in, dlls/uianimation/main.c, dlls/uianimation/uianimation.spec,
|
||||
# | dlls/uianimation/uianimation_private.h, dlls/uianimation/uianimation_typelib.idl, include/uianimation.idl
|
||||
# |
|
||||
if test "$enable_uianimation_stubs" -eq 1; then
|
||||
patch_apply uianimation-stubs/0001-uianimation.idl-add-more-interfaces.patch
|
||||
patch_apply uianimation-stubs/0002-uianimation-add-stub-dll.patch
|
||||
(
|
||||
printf '%s\n' '+ { "Louis Lenders", "uianimation.idl: Add more interfaces.", 1 },';
|
||||
printf '%s\n' '+ { "Louis Lenders", "uianimation: Add stub dll.", 1 },';
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset user.exe16-DlgDirList
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
|
@ -0,0 +1,309 @@
|
||||
From 6d2770010fea043d76085ecad2c69a26f9a8fff8 Mon Sep 17 00:00:00 2001
|
||||
From: Louis Lenders <xerox.xerox2000x@gmail.com>
|
||||
Date: Thu, 7 Jun 2018 11:52:54 +0200
|
||||
Subject: [PATCH] uianimation.idl: add more interfaces
|
||||
To: wine-devel <wine-devel@winehq.org>
|
||||
|
||||
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
|
||||
---
|
||||
include/uianimation.idl | 265 ++++++++++++++++++++++++++++++++++++++++
|
||||
1 file changed, 265 insertions(+)
|
||||
|
||||
diff --git a/include/uianimation.idl b/include/uianimation.idl
|
||||
index 6c026a6ced..922eb3639b 100644
|
||||
--- a/include/uianimation.idl
|
||||
+++ b/include/uianimation.idl
|
||||
@@ -20,6 +20,13 @@ import "unknwn.idl";
|
||||
|
||||
interface IUIAnimationStoryboard;
|
||||
interface IUIAnimationVariable;
|
||||
+interface IUIAnimationManager;
|
||||
+interface IUIAnimationPriorityComparison;
|
||||
+interface IUIAnimationTransitionFactory;
|
||||
+interface IUIAnimationInterpolator;
|
||||
+interface IUIAnimationManagerEventHandler;
|
||||
+interface IUIAnimationTransition;
|
||||
+interface IUIAnimationTransitionLibrary;
|
||||
|
||||
typedef DOUBLE UI_ANIMATION_SECONDS;
|
||||
typedef struct { int _; } *UI_ANIMATION_KEYFRAME;
|
||||
@@ -76,6 +83,34 @@ typedef enum
|
||||
UI_ANIMATION_IDLE_BEHAVIOR_DISABLE,
|
||||
} UI_ANIMATION_IDLE_BEHAVIOR;
|
||||
|
||||
+typedef [v1_enum] enum
|
||||
+{
|
||||
+ UI_ANIMATION_MODE_DISABLED,
|
||||
+ UI_ANIMATION_MODE_SYSTEM_DEFAULT,
|
||||
+ UI_ANIMATION_MODE_ENABLED
|
||||
+} UI_ANIMATION_MODE;
|
||||
+
|
||||
+typedef [v1_enum] enum
|
||||
+{
|
||||
+ UI_ANIMATION_PRIORITY_EFFECT_FAILURE,
|
||||
+ UI_ANIMATION_PRIORITY_EFFECT_DELAY
|
||||
+} UI_ANIMATION_PRIORITY_EFFECT;
|
||||
+
|
||||
+typedef [v1_enum] enum
|
||||
+{
|
||||
+ UI_ANIMATION_DEPENDENCY_NONE = 0,
|
||||
+ UI_ANIMATION_DEPENDENCY_INTERMEDIATE_VALUES = 0x1,
|
||||
+ UI_ANIMATION_DEPENDENCY_FINAL_VALUE = 0x2,
|
||||
+ UI_ANIMATION_DEPENDENCY_FINAL_VELOCITY = 0x4,
|
||||
+ UI_ANIMATION_DEPENDENCY_DURATION = 0x8
|
||||
+} UI_ANIMATION_DEPENDENCIES;
|
||||
+
|
||||
+typedef [v1_enum] enum
|
||||
+{
|
||||
+ UI_ANIMATION_SLOPE_INCREASING,
|
||||
+ UI_ANIMATION_SLOPE_DECREASING
|
||||
+} UI_ANIMATION_SLOPE;
|
||||
+
|
||||
[
|
||||
local,
|
||||
object,
|
||||
@@ -334,6 +369,212 @@ interface IUIAnimationTimer : IUnknown
|
||||
[in] UINT32 fps);
|
||||
}
|
||||
|
||||
+[
|
||||
+ local,
|
||||
+ object,
|
||||
+ uuid(9169896c-ac8d-4e7d-94e5-67fa4dc2f2e8),
|
||||
+ pointer_default(unique)
|
||||
+]
|
||||
+interface IUIAnimationManager : IUnknown
|
||||
+{
|
||||
+ HRESULT CreateAnimationVariable(
|
||||
+ [in] double initialvalue,
|
||||
+ [out, retval] IUIAnimationVariable **variable);
|
||||
+
|
||||
+ HRESULT ScheduleTransition(
|
||||
+ [in] IUIAnimationVariable *variable,
|
||||
+ [in] IUIAnimationTransition *transition,
|
||||
+ [in] double timenow);
|
||||
+
|
||||
+ HRESULT CreateStoryboard(
|
||||
+ [out, retval] IUIAnimationStoryboard **storyboard);
|
||||
+
|
||||
+ HRESULT FinishAllStoryboards(
|
||||
+ [in] double deadline);
|
||||
+
|
||||
+ HRESULT AbandonAllStoryboards();
|
||||
+
|
||||
+ HRESULT Update(
|
||||
+ [in] double timenow,
|
||||
+ [out, defaultvalue(0)] UI_ANIMATION_UPDATE_RESULT *updateresult);
|
||||
+
|
||||
+ HRESULT GetVariableFromTag(
|
||||
+ [in] IUnknown * object,
|
||||
+ [in] UINT32 id,
|
||||
+ [out, retval] IUIAnimationVariable **variable);
|
||||
+
|
||||
+ HRESULT GetStoryboardFromTag(
|
||||
+ [in] IUnknown * object,
|
||||
+ [in] UINT32 id,
|
||||
+ [out, retval] IUIAnimationStoryboard **storyboard);
|
||||
+
|
||||
+ HRESULT GetStatus(
|
||||
+ [out, retval] UI_ANIMATION_MANAGER_STATUS *status);
|
||||
+
|
||||
+ HRESULT SetAnimationMode(
|
||||
+ [in] UI_ANIMATION_MODE mode);
|
||||
+
|
||||
+ HRESULT Pause();
|
||||
+
|
||||
+ HRESULT Resume();
|
||||
+
|
||||
+ HRESULT SetManagerEventHandler(
|
||||
+ [in] IUIAnimationManagerEventHandler *handler);
|
||||
+
|
||||
+ HRESULT SetCancelPriorityComparison(
|
||||
+ [in] IUIAnimationPriorityComparison *comparison);
|
||||
+
|
||||
+ HRESULT SetTrimPriorityComparison(
|
||||
+ [in] IUIAnimationPriorityComparison *comparison);
|
||||
+
|
||||
+ HRESULT SetCompressPriorityComparison(
|
||||
+ [in] IUIAnimationPriorityComparison *comparison);
|
||||
+
|
||||
+ HRESULT SetConcludePriorityComparison(
|
||||
+ [in] IUIAnimationPriorityComparison *comparison);
|
||||
+
|
||||
+ HRESULT SetDefaultLongestAcceptableDelay(
|
||||
+ [in] double delay);
|
||||
+
|
||||
+ HRESULT Shutdown();
|
||||
+}
|
||||
+
|
||||
+[
|
||||
+ local,
|
||||
+ object,
|
||||
+ uuid(83fa9b74-5f86-4618-bc6a-a2fac19b3f44),
|
||||
+ pointer_default(unique)
|
||||
+]
|
||||
+interface IUIAnimationPriorityComparison : IUnknown
|
||||
+{
|
||||
+ HRESULT HasPriority(
|
||||
+ [in] IUIAnimationStoryboard *scheduledboard,
|
||||
+ [in] IUIAnimationStoryboard *newboard,
|
||||
+ [in] UI_ANIMATION_PRIORITY_EFFECT effect);
|
||||
+}
|
||||
+
|
||||
+[
|
||||
+ local,
|
||||
+ object,
|
||||
+ uuid(fcd91e03-3e3b-45ad-bbb1-6dfc8153743d),
|
||||
+ pointer_default(unique)
|
||||
+]
|
||||
+interface IUIAnimationTransitionFactory : IUnknown
|
||||
+{
|
||||
+ HRESULT CreateTransition(
|
||||
+ [in] IUIAnimationInterpolator *interpolator,
|
||||
+ [out, retval] IUIAnimationTransition **transition);
|
||||
+}
|
||||
+
|
||||
+[
|
||||
+ local,
|
||||
+ object,
|
||||
+ uuid(7815cbba-ddf7-478c-a46c-7b6c738b7978),
|
||||
+ pointer_default(unique)
|
||||
+]
|
||||
+interface IUIAnimationInterpolator : IUnknown
|
||||
+{
|
||||
+ HRESULT SetInitialValueAndVelocity(
|
||||
+ [in] double initialvalue,
|
||||
+ [in] double initialvelocity);
|
||||
+
|
||||
+ HRESULT SetDuration(
|
||||
+ [in] double duration);
|
||||
+
|
||||
+ HRESULT GetDuration(
|
||||
+ [out, retval] double *duration);
|
||||
+
|
||||
+ HRESULT GetFinalValue(
|
||||
+ [out, retval] double *value);
|
||||
+
|
||||
+ HRESULT InterpolateValue(
|
||||
+ [in] double offset,
|
||||
+ [out, retval] double *value);
|
||||
+
|
||||
+ HRESULT InterpolateVelocity(
|
||||
+ [in] double offset,
|
||||
+ [out, retval] double *velocity);
|
||||
+
|
||||
+ HRESULT GetDependencies(
|
||||
+ [out] UI_ANIMATION_DEPENDENCIES *initialvaluedependencies,
|
||||
+ [out] UI_ANIMATION_DEPENDENCIES *initialvelocitydependencies,
|
||||
+ [out] UI_ANIMATION_DEPENDENCIES *durationdependencies);
|
||||
+}
|
||||
+
|
||||
+[
|
||||
+ local,
|
||||
+ object,
|
||||
+ uuid(ca5a14b1-d24f-48b8-8fe4-c78169ba954e),
|
||||
+ pointer_default(unique)
|
||||
+]
|
||||
+interface IUIAnimationTransitionLibrary : IUnknown
|
||||
+{
|
||||
+ HRESULT CreateInstantaneousTransition(
|
||||
+ [in] double finalvalue,
|
||||
+ [out, retval] IUIAnimationTransition **transition);
|
||||
+
|
||||
+ HRESULT CreateConstantTransition(
|
||||
+ [in] double duration,
|
||||
+ [out, retval] IUIAnimationTransition **transition);
|
||||
+
|
||||
+ HRESULT CreateDiscreteTransition(
|
||||
+ [in] double delay,
|
||||
+ [in] double finalvalue,
|
||||
+ [in] double hold,
|
||||
+ [out, retval] IUIAnimationTransition **transition);
|
||||
+
|
||||
+ HRESULT CreateLinearTransition(
|
||||
+ [in] double duration,
|
||||
+ [in] double finalvalue,
|
||||
+ [out, retval] IUIAnimationTransition **transition);
|
||||
+
|
||||
+ HRESULT CreateLinearTransitionFromSpeed(
|
||||
+ [in] double speed,
|
||||
+ [in] double finalvalue,
|
||||
+ [out, retval] IUIAnimationTransition **transition);
|
||||
+
|
||||
+ HRESULT CreateSinusoidalTransitionFromVelocity(
|
||||
+ [in] double duration,
|
||||
+ [in] double period,
|
||||
+ [out, retval] IUIAnimationTransition **transition);
|
||||
+
|
||||
+ HRESULT CreateSinusoidalTransitionFromRange(
|
||||
+ [in] double duration,
|
||||
+ [in] double minimumvalue,
|
||||
+ [in] double maximumvalue,
|
||||
+ [in] double period,
|
||||
+ [in] UI_ANIMATION_SLOPE slope,
|
||||
+ [out, retval] IUIAnimationTransition **transition);
|
||||
+
|
||||
+ HRESULT CreateAccelerateDecelerateTransition(
|
||||
+ [in] double duration,
|
||||
+ [in] double finalvalue,
|
||||
+ [in] double accelerationratio,
|
||||
+ [in] double decelerationratio,
|
||||
+ [out, retval] IUIAnimationTransition **transition);
|
||||
+
|
||||
+ HRESULT CreateReversalTransition(
|
||||
+ [in] double duration,
|
||||
+ [out, retval] IUIAnimationTransition **transition);
|
||||
+
|
||||
+ HRESULT CreateCubicTransition(
|
||||
+ [in] double duration,
|
||||
+ [in] double finalvalue,
|
||||
+ [in] double finalvelocity,
|
||||
+ [out, retval] IUIAnimationTransition **transition);
|
||||
+
|
||||
+ HRESULT CreateSmoothStopTransition(
|
||||
+ [in] double maximumduration,
|
||||
+ [in] double finalvalue,
|
||||
+ [out, retval] IUIAnimationTransition **transition);
|
||||
+
|
||||
+ HRESULT CreateParabolicTransitionFromAcceleration(
|
||||
+ [in] double finalvalue,
|
||||
+ [in] double finalvelocity,
|
||||
+ [in] double acceleration,
|
||||
+ [out, retval] IUIAnimationTransition **transition);
|
||||
+}
|
||||
+
|
||||
[
|
||||
uuid(44ca24db-1a92-4149-bab5-fb14d64b401e),
|
||||
version(1.0)
|
||||
@@ -347,4 +588,28 @@ library UIAnimation
|
||||
{
|
||||
[default] interface IUIAnimationTimer;
|
||||
}
|
||||
+
|
||||
+ [
|
||||
+ uuid(4c1fc63a-695c-47e8-a339-1a194be3d0b8)
|
||||
+ ]
|
||||
+ coclass UIAnimationManager
|
||||
+ {
|
||||
+ [default] interface IUIAnimationManager;
|
||||
+ }
|
||||
+
|
||||
+ [
|
||||
+ uuid(8a9b1cdd-fcd7-419c-8b44-42fd17db1887)
|
||||
+ ]
|
||||
+ coclass UIAnimationTransitionFactory
|
||||
+ {
|
||||
+ [default] interface IUIAnimationTransitionFactory;
|
||||
+ }
|
||||
+
|
||||
+ [
|
||||
+ uuid(1d6322ad-aa85-4ef5-a828-86d71067d145)
|
||||
+ ]
|
||||
+ coclass UIAnimationTransitionLibrary
|
||||
+ {
|
||||
+ [default] interface IUIAnimationTransitionLibrary;
|
||||
+ }
|
||||
}
|
||||
--
|
||||
2.17.0
|
||||
|
1508
patches/uianimation-stubs/0002-uianimation-add-stub-dll.patch
Normal file
1508
patches/uianimation-stubs/0002-uianimation-add-stub-dll.patch
Normal file
File diff suppressed because it is too large
Load Diff
1
patches/uianimation-stubs/definition
Normal file
1
patches/uianimation-stubs/definition
Normal file
@ -0,0 +1 @@
|
||||
Fixes: [41369] Add UIAnimation and stubs interfaces
|
Loading…
x
Reference in New Issue
Block a user