@cervisebas/nodegui-plugin-animation 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.clang-format +8 -0
- package/CMakeLists.txt +37 -0
- package/README.md +47 -0
- package/config/tests/setup.js +7 -0
- package/config/tests/teardown.js +3 -0
- package/dist/demo.d.ts +1 -0
- package/dist/demo.js +19 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +15 -0
- package/dist/lib/QAbstractAnimation.d.ts +28 -0
- package/dist/lib/QAbstractAnimation.js +76 -0
- package/dist/lib/QPropertyAnimation.d.ts +158 -0
- package/dist/lib/QPropertyAnimation.js +33 -0
- package/dist/lib/QVariantAnimation.d.ts +159 -0
- package/dist/lib/QVariantAnimation.js +44 -0
- package/dist/lib/types/PropertyNames.d.ts +1 -0
- package/dist/lib/types/PropertyNames.js +2 -0
- package/dist/lib/utils/addon.d.ts +2 -0
- package/dist/lib/utils/addon.js +5 -0
- package/package.json +60 -0
- package/src/cpp/QAbstractAnimation/qabstractanimation_macro.h +150 -0
- package/src/cpp/QPropertyAnimation/npropertyanimation.hpp +13 -0
- package/src/cpp/QPropertyAnimation/qpropertyanimation_wrap.cpp +82 -0
- package/src/cpp/QPropertyAnimation/qpropertyanimation_wrap.h +26 -0
- package/src/cpp/QVariantAnimation/nvariantanimation.hpp +13 -0
- package/src/cpp/QVariantAnimation/qvariantanimation_macro.h +66 -0
- package/src/cpp/QVariantAnimation/qvariantanimation_wrap.cpp +47 -0
- package/src/cpp/QVariantAnimation/qvariantanimation_wrap.h +21 -0
- package/src/cpp/main.cpp +12 -0
- package/src/demo.ts +23 -0
- package/src/index.ts +4 -0
- package/src/lib/QAbstractAnimation.ts +57 -0
- package/src/lib/QPropertyAnimation.ts +36 -0
- package/src/lib/QVariantAnimation.ts +38 -0
- package/src/lib/types/PropertyNames.ts +8 -0
- package/src/lib/utils/addon.ts +4 -0
package/.clang-format
ADDED
package/CMakeLists.txt
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 4.2)
|
|
2
|
+
# -------------- Plugin Config ---------------
|
|
3
|
+
execute_process(COMMAND node -p "require('@nodegui/nodegui/plugin').CMAKE_HELPER_FILE"
|
|
4
|
+
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
5
|
+
OUTPUT_VARIABLE NODEGUI_PLUGIN_CMAKE_HELPER
|
|
6
|
+
)
|
|
7
|
+
string(REPLACE "\n" "" NODEGUI_PLUGIN_CMAKE_HELPER ${NODEGUI_PLUGIN_CMAKE_HELPER})
|
|
8
|
+
string(REPLACE "\"" "" NODEGUI_PLUGIN_CMAKE_HELPER ${NODEGUI_PLUGIN_CMAKE_HELPER})
|
|
9
|
+
include("${NODEGUI_PLUGIN_CMAKE_HELPER}")
|
|
10
|
+
|
|
11
|
+
# -------------- User Config ---------------
|
|
12
|
+
set(PLUGIN_ADDON_NAME "nodegui_plugin_animation")
|
|
13
|
+
|
|
14
|
+
project(${PLUGIN_ADDON_NAME})
|
|
15
|
+
|
|
16
|
+
add_library(${PLUGIN_ADDON_NAME} SHARED
|
|
17
|
+
"${CMAKE_JS_SRC}"
|
|
18
|
+
"${PROJECT_SOURCE_DIR}/src/cpp/main.cpp"
|
|
19
|
+
"${PROJECT_SOURCE_DIR}/src/cpp/QPropertyAnimation/qpropertyanimation_wrap.cpp"
|
|
20
|
+
"${PROJECT_SOURCE_DIR}/src/cpp/QPropertyAnimation/npropertyanimation.hpp"
|
|
21
|
+
"${PROJECT_SOURCE_DIR}/src/cpp/QVariantAnimation/qvariantanimation_wrap.cpp"
|
|
22
|
+
"${PROJECT_SOURCE_DIR}/src/cpp/QVariantAnimation/nvariantanimation.hpp"
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
AddPluginConfig(${PLUGIN_ADDON_NAME})
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
target_include_directories(${PLUGIN_ADDON_NAME} PRIVATE
|
|
29
|
+
"${CMAKE_JS_INC}"
|
|
30
|
+
"${PROJECT_SOURCE_DIR}"
|
|
31
|
+
"${PROJECT_SOURCE_DIR}/src/cpp"
|
|
32
|
+
)
|
|
33
|
+
target_link_libraries(${PLUGIN_ADDON_NAME} PRIVATE
|
|
34
|
+
"${CMAKE_JS_LIB}"
|
|
35
|
+
Qt6::Widgets
|
|
36
|
+
Qt6::Gui
|
|
37
|
+
)
|
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# NodeGui Plugin Animation
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@cervisebas/nodegui-plugin-animation)
|
|
4
|
+
|
|
5
|
+
Plugin you can use to create native animations in NodeGui.
|
|
6
|
+
This package is a fork of the repository "[nodegui-plugin-animation](https://github.com/nodegui/nodegui-plugin-animation)"
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## Requirements
|
|
10
|
+
|
|
11
|
+
* Requires NodeGui v070.0 or up
|
|
12
|
+
* CMake: [Download here](https://cmake.org/download/)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npm install @cervisebas/nodegui-plugin-animation
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Demo
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import { QPropertyAnimation } from '@cervisebas/nodegui-plugin-animation';
|
|
25
|
+
import { QPushButton } from '@nodegui/nodegui';
|
|
26
|
+
|
|
27
|
+
const animation = new QPropertyAnimation();
|
|
28
|
+
|
|
29
|
+
const button = new QPushButton();
|
|
30
|
+
button.setText('Animated Button');
|
|
31
|
+
button.show();
|
|
32
|
+
|
|
33
|
+
animation.setPropertyName('windowOpacity');
|
|
34
|
+
animation.setTargetObject(button);
|
|
35
|
+
|
|
36
|
+
animation.setDuration(5000);
|
|
37
|
+
animation.setStartValue(0.4);
|
|
38
|
+
animation.setKeyValueAt(0.5, 1.0);
|
|
39
|
+
animation.setEndValue(1.0);
|
|
40
|
+
|
|
41
|
+
animation.start();
|
|
42
|
+
|
|
43
|
+
Object.assign(global, {
|
|
44
|
+
button: button,
|
|
45
|
+
animation: animation,
|
|
46
|
+
});
|
|
47
|
+
```
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
2
|
+
const { QApplication } = require('../../dist');
|
|
3
|
+
module.exports = async () => {
|
|
4
|
+
global.qApp = QApplication.instance();
|
|
5
|
+
// eslint-disable-next-line no-undef
|
|
6
|
+
qApp.setQuitOnLastWindowClosed(false);
|
|
7
|
+
};
|
package/dist/demo.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/demo.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const index_1 = require("./index");
|
|
4
|
+
const nodegui_1 = require("@nodegui/nodegui");
|
|
5
|
+
const animation = new index_1.QPropertyAnimation();
|
|
6
|
+
const button = new nodegui_1.QPushButton();
|
|
7
|
+
button.setText('Animated Button');
|
|
8
|
+
button.show();
|
|
9
|
+
animation.setPropertyName('windowOpacity');
|
|
10
|
+
animation.setTargetObject(button);
|
|
11
|
+
animation.setDuration(5000);
|
|
12
|
+
animation.setStartValue(0.4);
|
|
13
|
+
animation.setKeyValueAt(0.5, 1.0);
|
|
14
|
+
animation.setEndValue(1.0);
|
|
15
|
+
animation.start();
|
|
16
|
+
Object.assign(global, {
|
|
17
|
+
button: button,
|
|
18
|
+
animation: animation,
|
|
19
|
+
});
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { DeletionPolicy, Direction, State, QAbstractAnimation } from './lib/QAbstractAnimation';
|
|
2
|
+
export { NodeVariantAnimation, QVariantAnimation, QVariantAnimationEvents } from './lib/QVariantAnimation';
|
|
3
|
+
export { QPropertyAnimation, QPropertyAnimationEvents } from './lib/QPropertyAnimation';
|
|
4
|
+
export { PropertyName } from './lib/types/PropertyNames';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QPropertyAnimationEvents = exports.QPropertyAnimation = exports.QVariantAnimationEvents = exports.QVariantAnimation = exports.NodeVariantAnimation = exports.QAbstractAnimation = exports.State = exports.Direction = exports.DeletionPolicy = void 0;
|
|
4
|
+
var QAbstractAnimation_1 = require("./lib/QAbstractAnimation");
|
|
5
|
+
Object.defineProperty(exports, "DeletionPolicy", { enumerable: true, get: function () { return QAbstractAnimation_1.DeletionPolicy; } });
|
|
6
|
+
Object.defineProperty(exports, "Direction", { enumerable: true, get: function () { return QAbstractAnimation_1.Direction; } });
|
|
7
|
+
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return QAbstractAnimation_1.State; } });
|
|
8
|
+
Object.defineProperty(exports, "QAbstractAnimation", { enumerable: true, get: function () { return QAbstractAnimation_1.QAbstractAnimation; } });
|
|
9
|
+
var QVariantAnimation_1 = require("./lib/QVariantAnimation");
|
|
10
|
+
Object.defineProperty(exports, "NodeVariantAnimation", { enumerable: true, get: function () { return QVariantAnimation_1.NodeVariantAnimation; } });
|
|
11
|
+
Object.defineProperty(exports, "QVariantAnimation", { enumerable: true, get: function () { return QVariantAnimation_1.QVariantAnimation; } });
|
|
12
|
+
Object.defineProperty(exports, "QVariantAnimationEvents", { enumerable: true, get: function () { return QVariantAnimation_1.QVariantAnimationEvents; } });
|
|
13
|
+
var QPropertyAnimation_1 = require("./lib/QPropertyAnimation");
|
|
14
|
+
Object.defineProperty(exports, "QPropertyAnimation", { enumerable: true, get: function () { return QPropertyAnimation_1.QPropertyAnimation; } });
|
|
15
|
+
Object.defineProperty(exports, "QPropertyAnimationEvents", { enumerable: true, get: function () { return QPropertyAnimation_1.QPropertyAnimationEvents; } });
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { QObject, QObjectSignals } from '@nodegui/nodegui';
|
|
2
|
+
export declare abstract class QAbstractAnimation extends QObject<QObjectSignals> {
|
|
3
|
+
start(policy?: DeletionPolicy): void;
|
|
4
|
+
stop(): void;
|
|
5
|
+
currentLoop(): number;
|
|
6
|
+
currentLoopTime(): number;
|
|
7
|
+
currentTime(): number;
|
|
8
|
+
direction(): Direction;
|
|
9
|
+
duration(): number;
|
|
10
|
+
loopCount(): number;
|
|
11
|
+
setDirection(direction: Direction): void;
|
|
12
|
+
setLoopCount(loopCount: number): void;
|
|
13
|
+
state(): State;
|
|
14
|
+
totalDuration(): number;
|
|
15
|
+
}
|
|
16
|
+
export declare enum DeletionPolicy {
|
|
17
|
+
KeepWhenStopped = 0,
|
|
18
|
+
DeleteWhenStopped = 1
|
|
19
|
+
}
|
|
20
|
+
export declare enum Direction {
|
|
21
|
+
Forward = 0,
|
|
22
|
+
Backward = 1
|
|
23
|
+
}
|
|
24
|
+
export declare enum State {
|
|
25
|
+
Stopped = 0,
|
|
26
|
+
Paused = 1,
|
|
27
|
+
Running = 2
|
|
28
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.State = exports.Direction = exports.DeletionPolicy = exports.QAbstractAnimation = void 0;
|
|
4
|
+
const nodegui_1 = require("@nodegui/nodegui");
|
|
5
|
+
class QAbstractAnimation extends nodegui_1.QObject {
|
|
6
|
+
start(policy) {
|
|
7
|
+
var _a, _b;
|
|
8
|
+
if (policy) {
|
|
9
|
+
(_a = this.native) === null || _a === void 0 ? void 0 : _a.start(policy);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
(_b = this.native) === null || _b === void 0 ? void 0 : _b.start();
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
stop() {
|
|
16
|
+
var _a;
|
|
17
|
+
(_a = this.native) === null || _a === void 0 ? void 0 : _a.stop();
|
|
18
|
+
}
|
|
19
|
+
currentLoop() {
|
|
20
|
+
var _a;
|
|
21
|
+
return (_a = this.native) === null || _a === void 0 ? void 0 : _a.currentLoop();
|
|
22
|
+
}
|
|
23
|
+
currentLoopTime() {
|
|
24
|
+
var _a;
|
|
25
|
+
return (_a = this.native) === null || _a === void 0 ? void 0 : _a.currentLoopTime();
|
|
26
|
+
}
|
|
27
|
+
currentTime() {
|
|
28
|
+
var _a;
|
|
29
|
+
return (_a = this.native) === null || _a === void 0 ? void 0 : _a.currentTime();
|
|
30
|
+
}
|
|
31
|
+
direction() {
|
|
32
|
+
var _a;
|
|
33
|
+
return (_a = this.native) === null || _a === void 0 ? void 0 : _a.direction();
|
|
34
|
+
}
|
|
35
|
+
duration() {
|
|
36
|
+
var _a;
|
|
37
|
+
return (_a = this.native) === null || _a === void 0 ? void 0 : _a.duration();
|
|
38
|
+
}
|
|
39
|
+
loopCount() {
|
|
40
|
+
var _a;
|
|
41
|
+
return (_a = this.native) === null || _a === void 0 ? void 0 : _a.loopCount();
|
|
42
|
+
}
|
|
43
|
+
setDirection(direction) {
|
|
44
|
+
var _a;
|
|
45
|
+
return (_a = this.native) === null || _a === void 0 ? void 0 : _a.setDirection(direction);
|
|
46
|
+
}
|
|
47
|
+
setLoopCount(loopCount) {
|
|
48
|
+
var _a;
|
|
49
|
+
return (_a = this.native) === null || _a === void 0 ? void 0 : _a.setLoopCount(loopCount);
|
|
50
|
+
}
|
|
51
|
+
state() {
|
|
52
|
+
var _a;
|
|
53
|
+
return (_a = this.native) === null || _a === void 0 ? void 0 : _a.state();
|
|
54
|
+
}
|
|
55
|
+
totalDuration() {
|
|
56
|
+
var _a;
|
|
57
|
+
return (_a = this.native) === null || _a === void 0 ? void 0 : _a.totalDuration();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.QAbstractAnimation = QAbstractAnimation;
|
|
61
|
+
var DeletionPolicy;
|
|
62
|
+
(function (DeletionPolicy) {
|
|
63
|
+
DeletionPolicy[DeletionPolicy["KeepWhenStopped"] = 0] = "KeepWhenStopped";
|
|
64
|
+
DeletionPolicy[DeletionPolicy["DeleteWhenStopped"] = 1] = "DeleteWhenStopped";
|
|
65
|
+
})(DeletionPolicy || (exports.DeletionPolicy = DeletionPolicy = {}));
|
|
66
|
+
var Direction;
|
|
67
|
+
(function (Direction) {
|
|
68
|
+
Direction[Direction["Forward"] = 0] = "Forward";
|
|
69
|
+
Direction[Direction["Backward"] = 1] = "Backward";
|
|
70
|
+
})(Direction || (exports.Direction = Direction = {}));
|
|
71
|
+
var State;
|
|
72
|
+
(function (State) {
|
|
73
|
+
State[State["Stopped"] = 0] = "Stopped";
|
|
74
|
+
State[State["Paused"] = 1] = "Paused";
|
|
75
|
+
State[State["Running"] = 2] = "Running";
|
|
76
|
+
})(State || (exports.State = State = {}));
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { NativeElement, QObject } from '@nodegui/nodegui';
|
|
2
|
+
import { NodeVariantAnimation } from './QVariantAnimation';
|
|
3
|
+
import { PropertyName } from './types/PropertyNames';
|
|
4
|
+
export declare const QPropertyAnimationEvents: Readonly<{
|
|
5
|
+
None: import("@nodegui/nodegui").WidgetEventTypes.None;
|
|
6
|
+
ActionAdded: import("@nodegui/nodegui").WidgetEventTypes.ActionAdded;
|
|
7
|
+
ActionChanged: import("@nodegui/nodegui").WidgetEventTypes.ActionChanged;
|
|
8
|
+
ActionRemoved: import("@nodegui/nodegui").WidgetEventTypes.ActionRemoved;
|
|
9
|
+
ActivationChange: import("@nodegui/nodegui").WidgetEventTypes.ActivationChange;
|
|
10
|
+
ApplicationActivate: import("@nodegui/nodegui").WidgetEventTypes.ApplicationActivate;
|
|
11
|
+
ApplicationActivated: import("@nodegui/nodegui").WidgetEventTypes.ApplicationActivated;
|
|
12
|
+
ApplicationDeactivate: import("@nodegui/nodegui").WidgetEventTypes.ApplicationDeactivate;
|
|
13
|
+
ApplicationFontChange: import("@nodegui/nodegui").WidgetEventTypes.ApplicationFontChange;
|
|
14
|
+
ApplicationLayoutDirectionChange: import("@nodegui/nodegui").WidgetEventTypes.ApplicationLayoutDirectionChange;
|
|
15
|
+
ApplicationPaletteChange: import("@nodegui/nodegui").WidgetEventTypes.ApplicationPaletteChange;
|
|
16
|
+
ApplicationStateChange: import("@nodegui/nodegui").WidgetEventTypes.ApplicationStateChange;
|
|
17
|
+
ApplicationWindowIconChange: import("@nodegui/nodegui").WidgetEventTypes.ApplicationWindowIconChange;
|
|
18
|
+
ChildAdded: import("@nodegui/nodegui").WidgetEventTypes.ChildAdded;
|
|
19
|
+
ChildPolished: import("@nodegui/nodegui").WidgetEventTypes.ChildPolished;
|
|
20
|
+
ChildRemoved: import("@nodegui/nodegui").WidgetEventTypes.ChildRemoved;
|
|
21
|
+
Clipboard: import("@nodegui/nodegui").WidgetEventTypes.Clipboard;
|
|
22
|
+
Close: import("@nodegui/nodegui").WidgetEventTypes.Close;
|
|
23
|
+
CloseSoftwareInputPanel: import("@nodegui/nodegui").WidgetEventTypes.CloseSoftwareInputPanel;
|
|
24
|
+
ContentsRectChange: import("@nodegui/nodegui").WidgetEventTypes.ContentsRectChange;
|
|
25
|
+
ContextMenu: import("@nodegui/nodegui").WidgetEventTypes.ContextMenu;
|
|
26
|
+
CursorChange: import("@nodegui/nodegui").WidgetEventTypes.CursorChange;
|
|
27
|
+
DeferredDelete: import("@nodegui/nodegui").WidgetEventTypes.DeferredDelete;
|
|
28
|
+
DragEnter: import("@nodegui/nodegui").WidgetEventTypes.DragEnter;
|
|
29
|
+
DragLeave: import("@nodegui/nodegui").WidgetEventTypes.DragLeave;
|
|
30
|
+
DragMove: import("@nodegui/nodegui").WidgetEventTypes.DragMove;
|
|
31
|
+
Drop: import("@nodegui/nodegui").WidgetEventTypes.Drop;
|
|
32
|
+
DynamicPropertyChange: import("@nodegui/nodegui").WidgetEventTypes.DynamicPropertyChange;
|
|
33
|
+
EnabledChange: import("@nodegui/nodegui").WidgetEventTypes.EnabledChange;
|
|
34
|
+
Enter: import("@nodegui/nodegui").WidgetEventTypes.Enter;
|
|
35
|
+
EnterWhatsThisMode: import("@nodegui/nodegui").WidgetEventTypes.EnterWhatsThisMode;
|
|
36
|
+
Expose: import("@nodegui/nodegui").WidgetEventTypes.Expose;
|
|
37
|
+
FileOpen: import("@nodegui/nodegui").WidgetEventTypes.FileOpen;
|
|
38
|
+
FocusIn: import("@nodegui/nodegui").WidgetEventTypes.FocusIn;
|
|
39
|
+
FocusOut: import("@nodegui/nodegui").WidgetEventTypes.FocusOut;
|
|
40
|
+
FocusAboutToChange: import("@nodegui/nodegui").WidgetEventTypes.FocusAboutToChange;
|
|
41
|
+
FontChange: import("@nodegui/nodegui").WidgetEventTypes.FontChange;
|
|
42
|
+
Gesture: import("@nodegui/nodegui").WidgetEventTypes.Gesture;
|
|
43
|
+
GestureOverride: import("@nodegui/nodegui").WidgetEventTypes.GestureOverride;
|
|
44
|
+
GrabKeyboard: import("@nodegui/nodegui").WidgetEventTypes.GrabKeyboard;
|
|
45
|
+
GrabMouse: import("@nodegui/nodegui").WidgetEventTypes.GrabMouse;
|
|
46
|
+
GraphicsSceneContextMenu: import("@nodegui/nodegui").WidgetEventTypes.GraphicsSceneContextMenu;
|
|
47
|
+
GraphicsSceneDragEnter: import("@nodegui/nodegui").WidgetEventTypes.GraphicsSceneDragEnter;
|
|
48
|
+
GraphicsSceneDragLeave: import("@nodegui/nodegui").WidgetEventTypes.GraphicsSceneDragLeave;
|
|
49
|
+
GraphicsSceneDragMove: import("@nodegui/nodegui").WidgetEventTypes.GraphicsSceneDragMove;
|
|
50
|
+
GraphicsSceneDrop: import("@nodegui/nodegui").WidgetEventTypes.GraphicsSceneDrop;
|
|
51
|
+
GraphicsSceneHelp: import("@nodegui/nodegui").WidgetEventTypes.GraphicsSceneHelp;
|
|
52
|
+
GraphicsSceneHoverEnter: import("@nodegui/nodegui").WidgetEventTypes.GraphicsSceneHoverEnter;
|
|
53
|
+
GraphicsSceneHoverLeave: import("@nodegui/nodegui").WidgetEventTypes.GraphicsSceneHoverLeave;
|
|
54
|
+
GraphicsSceneHoverMove: import("@nodegui/nodegui").WidgetEventTypes.GraphicsSceneHoverMove;
|
|
55
|
+
GraphicsSceneMouseDoubleClick: import("@nodegui/nodegui").WidgetEventTypes.GraphicsSceneMouseDoubleClick;
|
|
56
|
+
GraphicsSceneMouseMove: import("@nodegui/nodegui").WidgetEventTypes.GraphicsSceneMouseMove;
|
|
57
|
+
GraphicsSceneMousePress: import("@nodegui/nodegui").WidgetEventTypes.GraphicsSceneMousePress;
|
|
58
|
+
GraphicsSceneMouseRelease: import("@nodegui/nodegui").WidgetEventTypes.GraphicsSceneMouseRelease;
|
|
59
|
+
GraphicsSceneMove: import("@nodegui/nodegui").WidgetEventTypes.GraphicsSceneMove;
|
|
60
|
+
GraphicsSceneResize: import("@nodegui/nodegui").WidgetEventTypes.GraphicsSceneResize;
|
|
61
|
+
GraphicsSceneWheel: import("@nodegui/nodegui").WidgetEventTypes.GraphicsSceneWheel;
|
|
62
|
+
Hide: import("@nodegui/nodegui").WidgetEventTypes.Hide;
|
|
63
|
+
HideToParent: import("@nodegui/nodegui").WidgetEventTypes.HideToParent;
|
|
64
|
+
HoverEnter: import("@nodegui/nodegui").WidgetEventTypes.HoverEnter;
|
|
65
|
+
HoverLeave: import("@nodegui/nodegui").WidgetEventTypes.HoverLeave;
|
|
66
|
+
HoverMove: import("@nodegui/nodegui").WidgetEventTypes.HoverMove;
|
|
67
|
+
IconDrag: import("@nodegui/nodegui").WidgetEventTypes.IconDrag;
|
|
68
|
+
IconTextChange: import("@nodegui/nodegui").WidgetEventTypes.IconTextChange;
|
|
69
|
+
InputMethod: import("@nodegui/nodegui").WidgetEventTypes.InputMethod;
|
|
70
|
+
InputMethodQuery: import("@nodegui/nodegui").WidgetEventTypes.InputMethodQuery;
|
|
71
|
+
KeyboardLayoutChange: import("@nodegui/nodegui").WidgetEventTypes.KeyboardLayoutChange;
|
|
72
|
+
KeyPress: import("@nodegui/nodegui").WidgetEventTypes.KeyPress;
|
|
73
|
+
KeyRelease: import("@nodegui/nodegui").WidgetEventTypes.KeyRelease;
|
|
74
|
+
LanguageChange: import("@nodegui/nodegui").WidgetEventTypes.LanguageChange;
|
|
75
|
+
LayoutDirectionChange: import("@nodegui/nodegui").WidgetEventTypes.LayoutDirectionChange;
|
|
76
|
+
LayoutRequest: import("@nodegui/nodegui").WidgetEventTypes.LayoutRequest;
|
|
77
|
+
Leave: import("@nodegui/nodegui").WidgetEventTypes.Leave;
|
|
78
|
+
LeaveWhatsThisMode: import("@nodegui/nodegui").WidgetEventTypes.LeaveWhatsThisMode;
|
|
79
|
+
LocaleChange: import("@nodegui/nodegui").WidgetEventTypes.LocaleChange;
|
|
80
|
+
NonClientAreaMouseButtonDblClick: import("@nodegui/nodegui").WidgetEventTypes.NonClientAreaMouseButtonDblClick;
|
|
81
|
+
NonClientAreaMouseButtonPress: import("@nodegui/nodegui").WidgetEventTypes.NonClientAreaMouseButtonPress;
|
|
82
|
+
NonClientAreaMouseButtonRelease: import("@nodegui/nodegui").WidgetEventTypes.NonClientAreaMouseButtonRelease;
|
|
83
|
+
NonClientAreaMouseMove: import("@nodegui/nodegui").WidgetEventTypes.NonClientAreaMouseMove;
|
|
84
|
+
MacSizeChange: import("@nodegui/nodegui").WidgetEventTypes.MacSizeChange;
|
|
85
|
+
MetaCall: import("@nodegui/nodegui").WidgetEventTypes.MetaCall;
|
|
86
|
+
ModifiedChange: import("@nodegui/nodegui").WidgetEventTypes.ModifiedChange;
|
|
87
|
+
MouseButtonDblClick: import("@nodegui/nodegui").WidgetEventTypes.MouseButtonDblClick;
|
|
88
|
+
MouseButtonPress: import("@nodegui/nodegui").WidgetEventTypes.MouseButtonPress;
|
|
89
|
+
MouseButtonRelease: import("@nodegui/nodegui").WidgetEventTypes.MouseButtonRelease;
|
|
90
|
+
MouseMove: import("@nodegui/nodegui").WidgetEventTypes.MouseMove;
|
|
91
|
+
MouseTrackingChange: import("@nodegui/nodegui").WidgetEventTypes.MouseTrackingChange;
|
|
92
|
+
Move: import("@nodegui/nodegui").WidgetEventTypes.Move;
|
|
93
|
+
NativeGesture: import("@nodegui/nodegui").WidgetEventTypes.NativeGesture;
|
|
94
|
+
OrientationChange: import("@nodegui/nodegui").WidgetEventTypes.OrientationChange;
|
|
95
|
+
Paint: import("@nodegui/nodegui").WidgetEventTypes.Paint;
|
|
96
|
+
PaletteChange: import("@nodegui/nodegui").WidgetEventTypes.PaletteChange;
|
|
97
|
+
ParentAboutToChange: import("@nodegui/nodegui").WidgetEventTypes.ParentAboutToChange;
|
|
98
|
+
ParentChange: import("@nodegui/nodegui").WidgetEventTypes.ParentChange;
|
|
99
|
+
PlatformPanel: import("@nodegui/nodegui").WidgetEventTypes.PlatformPanel;
|
|
100
|
+
PlatformSurface: import("@nodegui/nodegui").WidgetEventTypes.PlatformSurface;
|
|
101
|
+
Polish: import("@nodegui/nodegui").WidgetEventTypes.Polish;
|
|
102
|
+
PolishRequest: import("@nodegui/nodegui").WidgetEventTypes.PolishRequest;
|
|
103
|
+
QueryWhatsThis: import("@nodegui/nodegui").WidgetEventTypes.QueryWhatsThis;
|
|
104
|
+
ReadOnlyChange: import("@nodegui/nodegui").WidgetEventTypes.ReadOnlyChange;
|
|
105
|
+
RequestSoftwareInputPanel: import("@nodegui/nodegui").WidgetEventTypes.RequestSoftwareInputPanel;
|
|
106
|
+
Resize: import("@nodegui/nodegui").WidgetEventTypes.Resize;
|
|
107
|
+
ScrollPrepare: import("@nodegui/nodegui").WidgetEventTypes.ScrollPrepare;
|
|
108
|
+
Scroll: import("@nodegui/nodegui").WidgetEventTypes.Scroll;
|
|
109
|
+
Shortcut: import("@nodegui/nodegui").WidgetEventTypes.Shortcut;
|
|
110
|
+
ShortcutOverride: import("@nodegui/nodegui").WidgetEventTypes.ShortcutOverride;
|
|
111
|
+
Show: import("@nodegui/nodegui").WidgetEventTypes.Show;
|
|
112
|
+
ShowToParent: import("@nodegui/nodegui").WidgetEventTypes.ShowToParent;
|
|
113
|
+
SockAct: import("@nodegui/nodegui").WidgetEventTypes.SockAct;
|
|
114
|
+
StateMachineSignal: import("@nodegui/nodegui").WidgetEventTypes.StateMachineSignal;
|
|
115
|
+
StateMachineWrapped: import("@nodegui/nodegui").WidgetEventTypes.StateMachineWrapped;
|
|
116
|
+
StatusTip: import("@nodegui/nodegui").WidgetEventTypes.StatusTip;
|
|
117
|
+
StyleChange: import("@nodegui/nodegui").WidgetEventTypes.StyleChange;
|
|
118
|
+
TabletMove: import("@nodegui/nodegui").WidgetEventTypes.TabletMove;
|
|
119
|
+
TabletPress: import("@nodegui/nodegui").WidgetEventTypes.TabletPress;
|
|
120
|
+
TabletRelease: import("@nodegui/nodegui").WidgetEventTypes.TabletRelease;
|
|
121
|
+
TabletEnterProximity: import("@nodegui/nodegui").WidgetEventTypes.TabletEnterProximity;
|
|
122
|
+
TabletLeaveProximity: import("@nodegui/nodegui").WidgetEventTypes.TabletLeaveProximity;
|
|
123
|
+
TabletTrackingChange: import("@nodegui/nodegui").WidgetEventTypes.TabletTrackingChange;
|
|
124
|
+
ThreadChange: import("@nodegui/nodegui").WidgetEventTypes.ThreadChange;
|
|
125
|
+
Timer: import("@nodegui/nodegui").WidgetEventTypes.Timer;
|
|
126
|
+
ToolBarChange: import("@nodegui/nodegui").WidgetEventTypes.ToolBarChange;
|
|
127
|
+
ToolTip: import("@nodegui/nodegui").WidgetEventTypes.ToolTip;
|
|
128
|
+
ToolTipChange: import("@nodegui/nodegui").WidgetEventTypes.ToolTipChange;
|
|
129
|
+
TouchBegin: import("@nodegui/nodegui").WidgetEventTypes.TouchBegin;
|
|
130
|
+
TouchCancel: import("@nodegui/nodegui").WidgetEventTypes.TouchCancel;
|
|
131
|
+
TouchEnd: import("@nodegui/nodegui").WidgetEventTypes.TouchEnd;
|
|
132
|
+
TouchUpdate: import("@nodegui/nodegui").WidgetEventTypes.TouchUpdate;
|
|
133
|
+
UngrabKeyboard: import("@nodegui/nodegui").WidgetEventTypes.UngrabKeyboard;
|
|
134
|
+
UngrabMouse: import("@nodegui/nodegui").WidgetEventTypes.UngrabMouse;
|
|
135
|
+
UpdateLater: import("@nodegui/nodegui").WidgetEventTypes.UpdateLater;
|
|
136
|
+
UpdateRequest: import("@nodegui/nodegui").WidgetEventTypes.UpdateRequest;
|
|
137
|
+
WhatsThis: import("@nodegui/nodegui").WidgetEventTypes.WhatsThis;
|
|
138
|
+
WhatsThisClicked: import("@nodegui/nodegui").WidgetEventTypes.WhatsThisClicked;
|
|
139
|
+
Wheel: import("@nodegui/nodegui").WidgetEventTypes.Wheel;
|
|
140
|
+
WinEventAct: import("@nodegui/nodegui").WidgetEventTypes.WinEventAct;
|
|
141
|
+
WindowActivate: import("@nodegui/nodegui").WidgetEventTypes.WindowActivate;
|
|
142
|
+
WindowBlocked: import("@nodegui/nodegui").WidgetEventTypes.WindowBlocked;
|
|
143
|
+
WindowDeactivate: import("@nodegui/nodegui").WidgetEventTypes.WindowDeactivate;
|
|
144
|
+
WindowIconChange: import("@nodegui/nodegui").WidgetEventTypes.WindowIconChange;
|
|
145
|
+
WindowStateChange: import("@nodegui/nodegui").WidgetEventTypes.WindowStateChange;
|
|
146
|
+
WindowTitleChange: import("@nodegui/nodegui").WidgetEventTypes.WindowTitleChange;
|
|
147
|
+
WindowUnblocked: import("@nodegui/nodegui").WidgetEventTypes.WindowUnblocked;
|
|
148
|
+
WinIdChange: import("@nodegui/nodegui").WidgetEventTypes.WinIdChange;
|
|
149
|
+
ZOrderChange: import("@nodegui/nodegui").WidgetEventTypes.ZOrderChange;
|
|
150
|
+
}>;
|
|
151
|
+
export declare class QPropertyAnimation extends NodeVariantAnimation {
|
|
152
|
+
native: NativeElement;
|
|
153
|
+
nodeParent?: QObject<never>;
|
|
154
|
+
constructor(parent?: QObject<never>);
|
|
155
|
+
setPropertyName(name: PropertyName): void;
|
|
156
|
+
propertyName(): PropertyName;
|
|
157
|
+
setTargetObject(object: QObject<never>): void;
|
|
158
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.QPropertyAnimation = exports.QPropertyAnimationEvents = void 0;
|
|
7
|
+
const addon_1 = __importDefault(require("./utils/addon"));
|
|
8
|
+
const QVariantAnimation_1 = require("./QVariantAnimation");
|
|
9
|
+
exports.QPropertyAnimationEvents = Object.freeze(Object.assign({}, QVariantAnimation_1.QVariantAnimationEvents));
|
|
10
|
+
class QPropertyAnimation extends QVariantAnimation_1.NodeVariantAnimation {
|
|
11
|
+
constructor(parent) {
|
|
12
|
+
let native;
|
|
13
|
+
if (parent) {
|
|
14
|
+
native = new addon_1.default.QPropertyAnimation(parent.native);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
native = new addon_1.default.QPropertyAnimation();
|
|
18
|
+
}
|
|
19
|
+
super(native);
|
|
20
|
+
this.native = native;
|
|
21
|
+
this.nodeParent = parent;
|
|
22
|
+
}
|
|
23
|
+
setPropertyName(name) {
|
|
24
|
+
this.native.setPropertyName(name);
|
|
25
|
+
}
|
|
26
|
+
propertyName() {
|
|
27
|
+
return this.native.propertyName();
|
|
28
|
+
}
|
|
29
|
+
setTargetObject(object) {
|
|
30
|
+
return this.native.setTargetObject(object.native);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.QPropertyAnimation = QPropertyAnimation;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { WidgetEventTypes, QObject } from '@nodegui/nodegui';
|
|
2
|
+
import { QAbstractAnimation } from './QAbstractAnimation';
|
|
3
|
+
export declare const QVariantAnimationEvents: Readonly<{
|
|
4
|
+
None: WidgetEventTypes.None;
|
|
5
|
+
ActionAdded: WidgetEventTypes.ActionAdded;
|
|
6
|
+
ActionChanged: WidgetEventTypes.ActionChanged;
|
|
7
|
+
ActionRemoved: WidgetEventTypes.ActionRemoved;
|
|
8
|
+
ActivationChange: WidgetEventTypes.ActivationChange;
|
|
9
|
+
ApplicationActivate: WidgetEventTypes.ApplicationActivate;
|
|
10
|
+
ApplicationActivated: WidgetEventTypes.ApplicationActivated;
|
|
11
|
+
ApplicationDeactivate: WidgetEventTypes.ApplicationDeactivate;
|
|
12
|
+
ApplicationFontChange: WidgetEventTypes.ApplicationFontChange;
|
|
13
|
+
ApplicationLayoutDirectionChange: WidgetEventTypes.ApplicationLayoutDirectionChange;
|
|
14
|
+
ApplicationPaletteChange: WidgetEventTypes.ApplicationPaletteChange;
|
|
15
|
+
ApplicationStateChange: WidgetEventTypes.ApplicationStateChange;
|
|
16
|
+
ApplicationWindowIconChange: WidgetEventTypes.ApplicationWindowIconChange;
|
|
17
|
+
ChildAdded: WidgetEventTypes.ChildAdded;
|
|
18
|
+
ChildPolished: WidgetEventTypes.ChildPolished;
|
|
19
|
+
ChildRemoved: WidgetEventTypes.ChildRemoved;
|
|
20
|
+
Clipboard: WidgetEventTypes.Clipboard;
|
|
21
|
+
Close: WidgetEventTypes.Close;
|
|
22
|
+
CloseSoftwareInputPanel: WidgetEventTypes.CloseSoftwareInputPanel;
|
|
23
|
+
ContentsRectChange: WidgetEventTypes.ContentsRectChange;
|
|
24
|
+
ContextMenu: WidgetEventTypes.ContextMenu;
|
|
25
|
+
CursorChange: WidgetEventTypes.CursorChange;
|
|
26
|
+
DeferredDelete: WidgetEventTypes.DeferredDelete;
|
|
27
|
+
DragEnter: WidgetEventTypes.DragEnter;
|
|
28
|
+
DragLeave: WidgetEventTypes.DragLeave;
|
|
29
|
+
DragMove: WidgetEventTypes.DragMove;
|
|
30
|
+
Drop: WidgetEventTypes.Drop;
|
|
31
|
+
DynamicPropertyChange: WidgetEventTypes.DynamicPropertyChange;
|
|
32
|
+
EnabledChange: WidgetEventTypes.EnabledChange;
|
|
33
|
+
Enter: WidgetEventTypes.Enter;
|
|
34
|
+
EnterWhatsThisMode: WidgetEventTypes.EnterWhatsThisMode;
|
|
35
|
+
Expose: WidgetEventTypes.Expose;
|
|
36
|
+
FileOpen: WidgetEventTypes.FileOpen;
|
|
37
|
+
FocusIn: WidgetEventTypes.FocusIn;
|
|
38
|
+
FocusOut: WidgetEventTypes.FocusOut;
|
|
39
|
+
FocusAboutToChange: WidgetEventTypes.FocusAboutToChange;
|
|
40
|
+
FontChange: WidgetEventTypes.FontChange;
|
|
41
|
+
Gesture: WidgetEventTypes.Gesture;
|
|
42
|
+
GestureOverride: WidgetEventTypes.GestureOverride;
|
|
43
|
+
GrabKeyboard: WidgetEventTypes.GrabKeyboard;
|
|
44
|
+
GrabMouse: WidgetEventTypes.GrabMouse;
|
|
45
|
+
GraphicsSceneContextMenu: WidgetEventTypes.GraphicsSceneContextMenu;
|
|
46
|
+
GraphicsSceneDragEnter: WidgetEventTypes.GraphicsSceneDragEnter;
|
|
47
|
+
GraphicsSceneDragLeave: WidgetEventTypes.GraphicsSceneDragLeave;
|
|
48
|
+
GraphicsSceneDragMove: WidgetEventTypes.GraphicsSceneDragMove;
|
|
49
|
+
GraphicsSceneDrop: WidgetEventTypes.GraphicsSceneDrop;
|
|
50
|
+
GraphicsSceneHelp: WidgetEventTypes.GraphicsSceneHelp;
|
|
51
|
+
GraphicsSceneHoverEnter: WidgetEventTypes.GraphicsSceneHoverEnter;
|
|
52
|
+
GraphicsSceneHoverLeave: WidgetEventTypes.GraphicsSceneHoverLeave;
|
|
53
|
+
GraphicsSceneHoverMove: WidgetEventTypes.GraphicsSceneHoverMove;
|
|
54
|
+
GraphicsSceneMouseDoubleClick: WidgetEventTypes.GraphicsSceneMouseDoubleClick;
|
|
55
|
+
GraphicsSceneMouseMove: WidgetEventTypes.GraphicsSceneMouseMove;
|
|
56
|
+
GraphicsSceneMousePress: WidgetEventTypes.GraphicsSceneMousePress;
|
|
57
|
+
GraphicsSceneMouseRelease: WidgetEventTypes.GraphicsSceneMouseRelease;
|
|
58
|
+
GraphicsSceneMove: WidgetEventTypes.GraphicsSceneMove;
|
|
59
|
+
GraphicsSceneResize: WidgetEventTypes.GraphicsSceneResize;
|
|
60
|
+
GraphicsSceneWheel: WidgetEventTypes.GraphicsSceneWheel;
|
|
61
|
+
Hide: WidgetEventTypes.Hide;
|
|
62
|
+
HideToParent: WidgetEventTypes.HideToParent;
|
|
63
|
+
HoverEnter: WidgetEventTypes.HoverEnter;
|
|
64
|
+
HoverLeave: WidgetEventTypes.HoverLeave;
|
|
65
|
+
HoverMove: WidgetEventTypes.HoverMove;
|
|
66
|
+
IconDrag: WidgetEventTypes.IconDrag;
|
|
67
|
+
IconTextChange: WidgetEventTypes.IconTextChange;
|
|
68
|
+
InputMethod: WidgetEventTypes.InputMethod;
|
|
69
|
+
InputMethodQuery: WidgetEventTypes.InputMethodQuery;
|
|
70
|
+
KeyboardLayoutChange: WidgetEventTypes.KeyboardLayoutChange;
|
|
71
|
+
KeyPress: WidgetEventTypes.KeyPress;
|
|
72
|
+
KeyRelease: WidgetEventTypes.KeyRelease;
|
|
73
|
+
LanguageChange: WidgetEventTypes.LanguageChange;
|
|
74
|
+
LayoutDirectionChange: WidgetEventTypes.LayoutDirectionChange;
|
|
75
|
+
LayoutRequest: WidgetEventTypes.LayoutRequest;
|
|
76
|
+
Leave: WidgetEventTypes.Leave;
|
|
77
|
+
LeaveWhatsThisMode: WidgetEventTypes.LeaveWhatsThisMode;
|
|
78
|
+
LocaleChange: WidgetEventTypes.LocaleChange;
|
|
79
|
+
NonClientAreaMouseButtonDblClick: WidgetEventTypes.NonClientAreaMouseButtonDblClick;
|
|
80
|
+
NonClientAreaMouseButtonPress: WidgetEventTypes.NonClientAreaMouseButtonPress;
|
|
81
|
+
NonClientAreaMouseButtonRelease: WidgetEventTypes.NonClientAreaMouseButtonRelease;
|
|
82
|
+
NonClientAreaMouseMove: WidgetEventTypes.NonClientAreaMouseMove;
|
|
83
|
+
MacSizeChange: WidgetEventTypes.MacSizeChange;
|
|
84
|
+
MetaCall: WidgetEventTypes.MetaCall;
|
|
85
|
+
ModifiedChange: WidgetEventTypes.ModifiedChange;
|
|
86
|
+
MouseButtonDblClick: WidgetEventTypes.MouseButtonDblClick;
|
|
87
|
+
MouseButtonPress: WidgetEventTypes.MouseButtonPress;
|
|
88
|
+
MouseButtonRelease: WidgetEventTypes.MouseButtonRelease;
|
|
89
|
+
MouseMove: WidgetEventTypes.MouseMove;
|
|
90
|
+
MouseTrackingChange: WidgetEventTypes.MouseTrackingChange;
|
|
91
|
+
Move: WidgetEventTypes.Move;
|
|
92
|
+
NativeGesture: WidgetEventTypes.NativeGesture;
|
|
93
|
+
OrientationChange: WidgetEventTypes.OrientationChange;
|
|
94
|
+
Paint: WidgetEventTypes.Paint;
|
|
95
|
+
PaletteChange: WidgetEventTypes.PaletteChange;
|
|
96
|
+
ParentAboutToChange: WidgetEventTypes.ParentAboutToChange;
|
|
97
|
+
ParentChange: WidgetEventTypes.ParentChange;
|
|
98
|
+
PlatformPanel: WidgetEventTypes.PlatformPanel;
|
|
99
|
+
PlatformSurface: WidgetEventTypes.PlatformSurface;
|
|
100
|
+
Polish: WidgetEventTypes.Polish;
|
|
101
|
+
PolishRequest: WidgetEventTypes.PolishRequest;
|
|
102
|
+
QueryWhatsThis: WidgetEventTypes.QueryWhatsThis;
|
|
103
|
+
ReadOnlyChange: WidgetEventTypes.ReadOnlyChange;
|
|
104
|
+
RequestSoftwareInputPanel: WidgetEventTypes.RequestSoftwareInputPanel;
|
|
105
|
+
Resize: WidgetEventTypes.Resize;
|
|
106
|
+
ScrollPrepare: WidgetEventTypes.ScrollPrepare;
|
|
107
|
+
Scroll: WidgetEventTypes.Scroll;
|
|
108
|
+
Shortcut: WidgetEventTypes.Shortcut;
|
|
109
|
+
ShortcutOverride: WidgetEventTypes.ShortcutOverride;
|
|
110
|
+
Show: WidgetEventTypes.Show;
|
|
111
|
+
ShowToParent: WidgetEventTypes.ShowToParent;
|
|
112
|
+
SockAct: WidgetEventTypes.SockAct;
|
|
113
|
+
StateMachineSignal: WidgetEventTypes.StateMachineSignal;
|
|
114
|
+
StateMachineWrapped: WidgetEventTypes.StateMachineWrapped;
|
|
115
|
+
StatusTip: WidgetEventTypes.StatusTip;
|
|
116
|
+
StyleChange: WidgetEventTypes.StyleChange;
|
|
117
|
+
TabletMove: WidgetEventTypes.TabletMove;
|
|
118
|
+
TabletPress: WidgetEventTypes.TabletPress;
|
|
119
|
+
TabletRelease: WidgetEventTypes.TabletRelease;
|
|
120
|
+
TabletEnterProximity: WidgetEventTypes.TabletEnterProximity;
|
|
121
|
+
TabletLeaveProximity: WidgetEventTypes.TabletLeaveProximity;
|
|
122
|
+
TabletTrackingChange: WidgetEventTypes.TabletTrackingChange;
|
|
123
|
+
ThreadChange: WidgetEventTypes.ThreadChange;
|
|
124
|
+
Timer: WidgetEventTypes.Timer;
|
|
125
|
+
ToolBarChange: WidgetEventTypes.ToolBarChange;
|
|
126
|
+
ToolTip: WidgetEventTypes.ToolTip;
|
|
127
|
+
ToolTipChange: WidgetEventTypes.ToolTipChange;
|
|
128
|
+
TouchBegin: WidgetEventTypes.TouchBegin;
|
|
129
|
+
TouchCancel: WidgetEventTypes.TouchCancel;
|
|
130
|
+
TouchEnd: WidgetEventTypes.TouchEnd;
|
|
131
|
+
TouchUpdate: WidgetEventTypes.TouchUpdate;
|
|
132
|
+
UngrabKeyboard: WidgetEventTypes.UngrabKeyboard;
|
|
133
|
+
UngrabMouse: WidgetEventTypes.UngrabMouse;
|
|
134
|
+
UpdateLater: WidgetEventTypes.UpdateLater;
|
|
135
|
+
UpdateRequest: WidgetEventTypes.UpdateRequest;
|
|
136
|
+
WhatsThis: WidgetEventTypes.WhatsThis;
|
|
137
|
+
WhatsThisClicked: WidgetEventTypes.WhatsThisClicked;
|
|
138
|
+
Wheel: WidgetEventTypes.Wheel;
|
|
139
|
+
WinEventAct: WidgetEventTypes.WinEventAct;
|
|
140
|
+
WindowActivate: WidgetEventTypes.WindowActivate;
|
|
141
|
+
WindowBlocked: WidgetEventTypes.WindowBlocked;
|
|
142
|
+
WindowDeactivate: WidgetEventTypes.WindowDeactivate;
|
|
143
|
+
WindowIconChange: WidgetEventTypes.WindowIconChange;
|
|
144
|
+
WindowStateChange: WidgetEventTypes.WindowStateChange;
|
|
145
|
+
WindowTitleChange: WidgetEventTypes.WindowTitleChange;
|
|
146
|
+
WindowUnblocked: WidgetEventTypes.WindowUnblocked;
|
|
147
|
+
WinIdChange: WidgetEventTypes.WinIdChange;
|
|
148
|
+
ZOrderChange: WidgetEventTypes.ZOrderChange;
|
|
149
|
+
}>;
|
|
150
|
+
export declare abstract class NodeVariantAnimation extends QAbstractAnimation {
|
|
151
|
+
setDuration(duration: number): void;
|
|
152
|
+
setStartValue(value: string | number): void;
|
|
153
|
+
setEndValue(value: string | number): void;
|
|
154
|
+
setKeyValueAt(step: number, value: string | number): void;
|
|
155
|
+
}
|
|
156
|
+
export declare class QVariantAnimation extends NodeVariantAnimation {
|
|
157
|
+
nodeParent?: QObject<never>;
|
|
158
|
+
constructor(parent?: QObject<never>);
|
|
159
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.QVariantAnimation = exports.NodeVariantAnimation = exports.QVariantAnimationEvents = void 0;
|
|
7
|
+
const nodegui_1 = require("@nodegui/nodegui");
|
|
8
|
+
const addon_1 = __importDefault(require("./utils/addon"));
|
|
9
|
+
const QAbstractAnimation_1 = require("./QAbstractAnimation");
|
|
10
|
+
exports.QVariantAnimationEvents = Object.freeze(Object.assign({}, nodegui_1.WidgetEventTypes));
|
|
11
|
+
class NodeVariantAnimation extends QAbstractAnimation_1.QAbstractAnimation {
|
|
12
|
+
setDuration(duration) {
|
|
13
|
+
var _a;
|
|
14
|
+
(_a = this.native) === null || _a === void 0 ? void 0 : _a.setDuration(duration);
|
|
15
|
+
}
|
|
16
|
+
setStartValue(value) {
|
|
17
|
+
var _a;
|
|
18
|
+
(_a = this.native) === null || _a === void 0 ? void 0 : _a.setStartValue(value);
|
|
19
|
+
}
|
|
20
|
+
setEndValue(value) {
|
|
21
|
+
var _a;
|
|
22
|
+
(_a = this.native) === null || _a === void 0 ? void 0 : _a.setEndValue(value);
|
|
23
|
+
}
|
|
24
|
+
setKeyValueAt(step, value) {
|
|
25
|
+
var _a;
|
|
26
|
+
(_a = this.native) === null || _a === void 0 ? void 0 : _a.setKeyValueAt(step, value);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.NodeVariantAnimation = NodeVariantAnimation;
|
|
30
|
+
class QVariantAnimation extends NodeVariantAnimation {
|
|
31
|
+
constructor(parent) {
|
|
32
|
+
let native;
|
|
33
|
+
if (parent) {
|
|
34
|
+
native = new addon_1.default.QVariantAnimation(parent.native);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
native = new addon_1.default.QVariantAnimation();
|
|
38
|
+
}
|
|
39
|
+
super(native);
|
|
40
|
+
this.native = native;
|
|
41
|
+
this.nodeParent = parent;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.QVariantAnimation = QVariantAnimation;
|