• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021-2022 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
16DECLARE_SET_COMMAND(RSNodeSetBounds, SET_BOUNDS, Vector4f, SetBounds)
17DECLARE_DELTA_COMMAND(RSNodeSetBoundsDelta, SET_BOUNDS_DELTA, Vector4f, SetBounds, GetBounds)
18
19DECLARE_SET_COMMAND(RSNodeSetBoundsSize, SET_BOUNDS_SIZE, Vector2f, SetBoundsSize)
20DECLARE_DELTA_COMMAND(RSNodeSetBoundsSizeDelta, SET_BOUNDS_SIZE_DELTA, Vector2f, SetBoundsSize, GetBoundsSize)
21
22DECLARE_SET_COMMAND(RSNodeSetBoundsWidth, SET_BOUNDS_WIDTH, float, SetBoundsWidth)
23DECLARE_DELTA_COMMAND(RSNodeSetBoundsWidthDelta, SET_BOUNDS_WIDTH_DELTA, float, SetBoundsWidth, GetBoundsWidth)
24
25DECLARE_SET_COMMAND(RSNodeSetBoundsHeight, SET_BOUNDS_HEIGHT, float, SetBoundsHeight)
26DECLARE_DELTA_COMMAND(RSNodeSetBoundsHeightDelta, SET_BOUNDS_HEIGHT_DELTA, float, SetBoundsHeight, GetBoundsHeight)
27
28DECLARE_SET_COMMAND(RSNodeSetBoundsPosition, SET_BOUNDS_POSITION, Vector2f, SetBoundsPosition)
29DECLARE_DELTA_COMMAND(RSNodeSetBoundsPositionDelta, SET_BOUNDS_POSITION_DELTA, Vector2f, SetBoundsPosition, GetBoundsPosition)
30
31DECLARE_SET_COMMAND(RSNodeSetBoundsPositionX, SET_BOUNDS_POSITION_X, float, SetBoundsPositionX)
32DECLARE_DELTA_COMMAND(RSNodeSetBoundsPositionXDelta, SET_BOUNDS_POSITION_X_DELTA, float, SetBoundsPositionX, GetBoundsPositionX)
33
34DECLARE_SET_COMMAND(RSNodeSetBoundsPositionY, SET_BOUNDS_POSITION_Y, float, SetBoundsPositionY)
35DECLARE_DELTA_COMMAND(RSNodeSetBoundsPositionYDelta, SET_BOUNDS_POSITION_Y_DELTA, float, SetBoundsPositionY, GetBoundsPositionY)
36
37DECLARE_SET_COMMAND(RSNodeSetFrame, SET_FRAME, Vector4f, SetFrame)
38DECLARE_DELTA_COMMAND(RSNodeSetFrameDelta, SET_FRAME_DELTA, Vector4f, SetFrame, GetFrame)
39
40DECLARE_SET_COMMAND(RSNodeSetFrameSize, SET_FRAME_SIZE, Vector2f, SetFrameSize)
41DECLARE_DELTA_COMMAND(RSNodeSetFrameSizeDelta, SET_FRAME_SIZE_DELTA, Vector2f, SetFrameSize, GetFrameSize)
42
43DECLARE_SET_COMMAND(RSNodeSetFrameWidth, SET_FRAME_WIDTH, float, SetFrameWidth)
44DECLARE_DELTA_COMMAND(RSNodeSetFrameWidthDelta, SET_FRAME_WIDTH_DELTA, float, SetFrameWidth, GetFrameWidth)
45
46DECLARE_SET_COMMAND(RSNodeSetFrameHeight, SET_FRAME_HEIGHT, float, SetFrameHeight)
47DECLARE_DELTA_COMMAND(RSNodeSetFrameHeightDelta, SET_FRAME_HEIGHT_DELTA, float, SetFrameHeight, GetFrameHeight)
48
49DECLARE_SET_COMMAND(RSNodeSetFramePosition, SET_FRAME_POSITION, Vector2f, SetFramePosition)
50DECLARE_DELTA_COMMAND(RSNodeSetFramePositionDelta, SET_FRAME_POSITION_DELTA, Vector2f, SetFramePosition, GetFramePosition)
51
52DECLARE_SET_COMMAND(RSNodeSetFramePositionX, SET_FRAME_POSITION_X, float, SetFramePositionX)
53DECLARE_DELTA_COMMAND(RSNodeSetFramePositionXDelta, SET_FRAME_POSITION_X_DELTA, float, SetFramePositionX, GetFramePositionX)
54
55DECLARE_SET_COMMAND(RSNodeSetFramePositionY, SET_FRAME_POSITION_Y, float, SetFramePositionY)
56DECLARE_DELTA_COMMAND(RSNodeSetFramePositionYDelta, SET_FRAME_POSITION_Y_DELTA, float, SetFramePositionY, GetFramePositionY)
57
58DECLARE_SET_COMMAND(RSNodeSetPositionZ, SET_POSITION_Z, float, SetPositionZ)
59DECLARE_DELTA_COMMAND(RSNodeSetPositionZDelta, SET_POSITION_Z_DELTA, float, SetPositionZ, GetPositionZ)
60
61DECLARE_SET_COMMAND(RSNodeSetPivot, SET_PIVOT, Vector2f, SetPivot)
62DECLARE_DELTA_COMMAND(RSNodeSetPivotDelta, SET_PIVOT_DELTA, Vector2f, SetPivot, GetPivot)
63
64DECLARE_SET_COMMAND(RSNodeSetPivotX, SET_PIVOT_X, float, SetPivotX)
65DECLARE_DELTA_COMMAND(RSNodeSetPivotXDelta, SET_PIVOT_X_DELTA, float, SetPivotX, GetPivotX)
66
67DECLARE_SET_COMMAND(RSNodeSetPivotY, SET_PIVOT_Y, float, SetPivotY)
68DECLARE_DELTA_COMMAND(RSNodeSetPivotYDelta, SET_PIVOT_Y_DELTA, float, SetPivotY, GetPivotY)
69
70DECLARE_SET_COMMAND(RSNodeSetCornerRadius, SET_CORNER_RADIUS, float, SetCornerRadius)
71DECLARE_DELTA_COMMAND(RSNodeSetCornerRadiusDelta, SET_CORNER_RADIUS_DELTA, float, SetCornerRadius, GetCornerRadius)
72
73DECLARE_SET_COMMAND(RSNodeSetQuaternion, SET_QUATERNION, Quaternion, SetQuaternion)
74DECLARE_DELTA_COMMAND(RSNodeSetQuaternionDelta, SET_QUATERNION_DELTA, Quaternion, SetQuaternion, GetQuaternion)
75
76DECLARE_SET_COMMAND(RSNodeSetRotation, SET_ROTATION, float, SetRotation)
77DECLARE_DELTA_COMMAND(RSNodeSetRotationDelta, SET_ROTATION_DELTA, float, SetRotation, GetRotation)
78
79DECLARE_SET_COMMAND(RSNodeSetRotationX, SET_ROTATION_X, float, SetRotationX)
80DECLARE_DELTA_COMMAND(RSNodeSetRotationXDelta, SET_ROTATION_X_DELTA, float, SetRotationX, GetRotationX)
81
82DECLARE_SET_COMMAND(RSNodeSetRotationY, SET_ROTATION_Y, float, SetRotationY)
83DECLARE_DELTA_COMMAND(RSNodeSetRotationYDelta, SET_ROTATION_Y_DELTA, float, SetRotationY, GetRotationY)
84
85DECLARE_SET_COMMAND(RSNodeSetScale, SET_SCALE, Vector2f, SetScale)
86DECLARE_DELTA_COMMAND(RSNodeSetScaleDelta, SET_SCALE_DELTA, Vector2f, SetScale, GetScale)
87
88DECLARE_SET_COMMAND(RSNodeSetScaleX, SET_SCALE_X, float, SetScaleX)
89DECLARE_DELTA_COMMAND(RSNodeSetScaleXDelta, SET_SCALE_X_DELTA, float, SetScaleX, GetScaleX)
90
91DECLARE_SET_COMMAND(RSNodeSetScaleY, SET_SCALE_Y, float, SetScaleY)
92DECLARE_DELTA_COMMAND(RSNodeSetScaleYDelta, SET_SCALE_Y_DELTA, float, SetScaleY, GetScaleY)
93
94DECLARE_SET_COMMAND(RSNodeSetTranslate, SET_TRANSLATE, Vector2f, SetTranslate)
95DECLARE_DELTA_COMMAND(RSNodeSetTranslateDelta, SET_TRANSLATE_DELTA, Vector2f, SetTranslate, GetTranslate)
96
97DECLARE_SET_COMMAND(RSNodeSetTranslateX, SET_TRANSLATE_X, float, SetTranslateX)
98DECLARE_DELTA_COMMAND(RSNodeSetTranslateXDelta, SET_TRANSLATE_X_DELTA, float, SetTranslateX, GetTranslateX)
99
100DECLARE_SET_COMMAND(RSNodeSetTranslateY, SET_TRANSLATE_Y, float, SetTranslateY)
101DECLARE_DELTA_COMMAND(RSNodeSetTranslateYDelta, SET_TRANSLATE_Y_DELTA, float, SetTranslateY, GetTranslateY)
102
103DECLARE_SET_COMMAND(RSNodeSetTranslateZ, SET_TRANSLATE_Z, float, SetTranslateZ)
104DECLARE_DELTA_COMMAND(RSNodeSetTranslateZDelta, SET_TRANSLATE_Z_DELTA, float, SetTranslateZ, GetTranslateZ)
105
106DECLARE_SET_COMMAND(RSNodeSetAlpha, SET_ALPHA, float, SetAlpha)
107DECLARE_DELTA_COMMAND(RSNodeSetAlphaDelta, SET_ALPHA_DELTA, float, SetAlpha, GetAlpha)
108
109DECLARE_SET_COMMAND(RSNodeSetForegroundColor, SET_FG_COLOR, Color, SetForegroundColor)
110DECLARE_DELTA_COMMAND(RSNodeSetForegroundColorDelta, SET_FG_COLOR_DELTA, Color, SetForegroundColor, GetForegroundColor)
111
112DECLARE_SET_COMMAND(RSNodeSetBackgroundColor, SET_BG_COLOR, Color, SetBackgroundColor)
113DECLARE_DELTA_COMMAND(RSNodeSetBackgroundColorDelta, SET_BG_COLOR_DELTA, Color, SetBackgroundColor, GetBackgroundColor)
114
115DECLARE_SET_COMMAND(RSNodeSetBackgroundShader, SET_BG_SHADER, std::shared_ptr<RSShader>, SetBackgroundShader)
116// DECLARE_DELTA_COMMAND(RSNodeSetBackgroundShaderDelta, SET_BG_SHADER_DELTA, std::shared_ptr<RSShader>, SetBackgroundShader, GetBackgroundShader)
117
118DECLARE_SET_COMMAND(RSNodeSetBgImage, SET_BG_IMAGE, std::shared_ptr<RSImage>, SetBgImage)
119
120DECLARE_SET_COMMAND(RSNodeSetBgImageWidth, SET_BG_IMAGE_WIDTH, float, SetBgImageWidth)
121DECLARE_DELTA_COMMAND(RSNodeSetBgImageWidthDelta, SET_BG_IMAGE_WIDTH_DELTA, float, SetBgImageWidth, GetBgImageWidth)
122
123DECLARE_SET_COMMAND(RSNodeSetBgImageHeight, SET_BG_IMAGE_HEIGHT, float, SetBgImageHeight)
124DECLARE_DELTA_COMMAND(RSNodeSetBgImageHeightDelta, SET_BG_IMAGE_HEIGHT_DELTA, float, SetBgImageHeight, GetBgImageHeight)
125
126DECLARE_SET_COMMAND(RSNodeSetBgImagePositionX, SET_BG_IMAGE_POSITION_X, float, SetBgImagePositionX)
127DECLARE_DELTA_COMMAND(RSNodeSetBgImagePositionXDelta, SET_BG_IMAGE_POSITION_X_DELTA, float, SetBgImagePositionX, GetBgImagePositionX)
128
129DECLARE_SET_COMMAND(RSNodeSetBgImagePositionY, SET_BG_IMAGE_POSITION_Y, float, SetBgImagePositionY)
130DECLARE_DELTA_COMMAND(RSNodeSetBgImagePositionYDelta, SET_BG_IMAGE_POSITION_Y_DELTA, float, SetBgImagePositionY, GetBgImagePositionY)
131
132DECLARE_SET_COMMAND(RSNodeSetBorderColor, SET_BORDER_COLOR, Color, SetBorderColor)
133DECLARE_DELTA_COMMAND(RSNodeSetBorderColorDelta, SET_BORDER_COLOR_DELTA, Color, SetBorderColor, GetBorderColor)
134
135DECLARE_SET_COMMAND(RSNodeSetBorderWidth, SET_BORDER_WIDTH, float, SetBorderWidth)
136DECLARE_DELTA_COMMAND(RSNodeSetBorderWidthDelta, SET_BORDER_WIDTH_DELTA, float, SetBorderWidth, GetBorderWidth)
137
138DECLARE_SET_COMMAND(RSNodeSetBorderStyle, SET_BORDER_STYLE, BorderStyle, SetBorderStyle)
139
140DECLARE_SET_COMMAND(RSNodeSetSublayerTransform, SET_SUBLAYER_TRANSFORM, Matrix3f, SetSublayerTransform)
141DECLARE_DELTA_COMMAND(RSNodeSetSublayerTransformDelta, SET_SUBLAYER_TRANSFORM_DELTA, Matrix3f, SetSublayerTransform, GetSublayerTransform)
142
143DECLARE_SET_COMMAND(RSNodeSetBackgroundFilter, SET_BG_FILTER, std::shared_ptr<RSFilter>, SetBackgroundFilter)
144DECLARE_DELTA_COMMAND(RSNodeSetBackgroundFilterDelta, SET_BG_FILTER_DELTA, std::shared_ptr<RSFilter>, SetBackgroundFilter, GetBackgroundFilter)
145
146DECLARE_SET_COMMAND(RSNodeSetFilter, SET_FILTER, std::shared_ptr<RSFilter>, SetFilter)
147DECLARE_DELTA_COMMAND(RSNodeSetFilterDelta, SET_FILTER_DELTA, std::shared_ptr<RSFilter>, SetFilter, GetFilter)
148
149// DECLARE_SET_COMMAND(RSNodeSetCompositingFilter, SET_COMPOSITING_FILTER, std::shared_ptr<RSFilter>, SetFilter)
150// DECLARE_DELTA_COMMAND(RSNodeSetCompositingFilterDelta, SET_COMPOSITING_FILTER_DELTA, std::shared_ptr<RSFilter>, SetFilter, GetFilter)
151
152DECLARE_SET_COMMAND(RSNodeSetFrameGravity, SET_FRAME_GRAVITY, Gravity, SetFrameGravity)
153// DECLARE_DELTA_COMMAND(RSNodeSetFrameGravityDelta, SET_FRAME_GRAVITY_DELTA, Gravity, SetFrameGravity, GetFrameGravity)
154
155DECLARE_SET_COMMAND(RSNodeSetClipBounds, SET_CLIP_BOUNDS, std::shared_ptr<RSPath>, SetClipBounds)
156
157DECLARE_SET_COMMAND(RSNodeSetClipToBounds, SET_CLIP_TO_BOUNDS, bool, SetClipToBounds)
158
159DECLARE_SET_COMMAND(RSNodeSetClipToFrame, SET_CLIP_TO_FRAME, bool, SetClipToFrame)
160
161DECLARE_SET_COMMAND(RSNodeSetVisible, SET_VISIBLE, bool, SetVisible)
162
163DECLARE_SET_COMMAND(RSNodeSetShadowColor, SET_SHADOW_COLOR, Color, SetShadowColor)
164DECLARE_DELTA_COMMAND(RSNodeSetShadowColorDelta, SET_SHADOW_COLOR_DELTA, Color, SetShadowColor, GetShadowColor)
165
166DECLARE_SET_COMMAND(RSNodeSetShadowOffsetX, SET_SHADOW_OFFSET_X, float, SetShadowOffsetX)
167DECLARE_DELTA_COMMAND(RSNodeSetShadowOffsetXDelta, SET_SHADOW_OFFSET_X_DELTA, float, SetShadowOffsetX, GetShadowOffsetX)
168
169DECLARE_SET_COMMAND(RSNodeSetShadowOffsetY, SET_SHADOW_OFFSET_Y, float, SetShadowOffsetY)
170DECLARE_DELTA_COMMAND(RSNodeSetShadowOffsetYDelta, SET_SHADOW_OFFSET_Y_DELTA, float, SetShadowOffsetY, GetShadowOffsetY)
171
172DECLARE_SET_COMMAND(RSNodeSetShadowAlpha, SET_SHADOW_ALPHA, float, SetShadowAlpha)
173DECLARE_DELTA_COMMAND(RSNodeSetShadowAlphaDelta, SET_SHADOW_ALPHA_DELTA, float, SetShadowAlpha, GetShadowAlpha)
174
175DECLARE_SET_COMMAND(RSNodeSetShadowElevation, SET_SHADOW_ELEVATION, float, SetShadowElevation)
176DECLARE_DELTA_COMMAND(RSNodeSetShadowElevationDelta, SET_SHADOW_ELEVATION_DELTA, float, SetShadowElevation, GetShadowElevation)
177
178DECLARE_SET_COMMAND(RSNodeSetShadowRadius, SET_SHADOW_RADIUS, float, SetShadowRadius)
179DECLARE_DELTA_COMMAND(RSNodeSetShadowRadiusDelta, SET_SHADOW_RADIUS_DELTA, float, SetShadowRadius, GetShadowRadius)
180
181DECLARE_SET_COMMAND(RSNodeSetShadowPath, SET_SHADOW_PATH, std::shared_ptr<RSPath>, SetShadowPath)
182
183DECLARE_SET_COMMAND(RSNodeSetMask, SET_MASK, std::shared_ptr<RSMask>, SetMask)
184