rive_rs/animation/
state_machine_layer.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::animation::StateMachineComponent;
6use crate::core::{Core, ObjectRef, OnAdded};
7
8#[derive(Debug, Default)]
9pub struct StateMachineLayer {
10    state_machine_component: StateMachineComponent,
11}
12
13impl Core for StateMachineLayer {
14    parent_types![(state_machine_component, StateMachineComponent)];
15
16    properties!(state_machine_component);
17}
18
19impl OnAdded for ObjectRef<'_, StateMachineLayer> {
20    on_added!(StateMachineComponent);
21}