1 /*
2  * Copyright (c) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef FUSION_DATA_BINDING_H
17 #define FUSION_DATA_BINDING_H
18 #include <cinttypes>
19 
20 #include "drag_data.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 struct CShadowInfo {
27     int32_t x;
28     int32_t y;
29 };
30 
31 struct CDragData {
32     struct CShadowInfo shadowInfo;
33     const uint8_t *buffer;
34     size_t bufSize;
35     int32_t sourceType;
36     int32_t dragNum;
37     int32_t pointerId;
38     int32_t displayX;
39     int32_t displayY;
40     int32_t displayId;
41     bool hasCanceledAnimation;
42 };
43 
44 struct CDragData* CDragDataFree(struct CDragData *cdrag);
45 
46 #ifdef __cplusplus
47 }
48 #endif /* __cplusplus */
49 #endif // FUSION_DATA_BINDING_H
50