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