rive_rs/shapes/paint/radial_gradient.rs
1// Copyright 2021 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5use crate::core::{Core, ObjectRef, OnAdded};
6use crate::shapes::paint::LinearGradient;
7
8#[derive(Debug, Default)]
9pub struct RadialGradient {
10 linear_gradient: LinearGradient,
11}
12
13impl Core for RadialGradient {
14 parent_types![(linear_gradient, LinearGradient)];
15
16 properties!(linear_gradient);
17}
18
19impl OnAdded for ObjectRef<'_, RadialGradient> {
20 on_added!(LinearGradient);
21}