1 /*
2  * Copyright (C) 2024 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.systemui.surfaceeffects.glowboxeffect
18 
19 /** Parameters used to play [GlowBoxEffect]. */
20 data class GlowBoxConfig(
21     /** Start center position X in px. */
22     val startCenterX: Float,
23     /** Start center position Y in px. */
24     val startCenterY: Float,
25     /** End center position X in px. */
26     val endCenterX: Float,
27     /** End center position Y in px. */
28     val endCenterY: Float,
29     /** Width of the box in px. */
30     val width: Float,
31     /** Height of the box in px. */
32     val height: Float,
33     /** Color of the box in ARGB, Apply alpha value if needed. */
34     val color: Int,
35     /** Amount of blur (or glow) of the box. */
36     val blurAmount: Float,
37     /**
38      * Duration of the animation. Note that the full duration of the animation is
39      * [duration] + [easeInDuration] + [easeOutDuration].
40      */
41     val duration: Long,
42     /** Ease in duration of the animation. */
43     val easeInDuration: Long,
44     /** Ease out duration of the animation. */
45     val easeOutDuration: Long,
46 )
47