Files
rive-ios/Source/Renderer/include/RiveArtboard.h
2022-07-11 12:05:24 -04:00

45 lines
1.2 KiB
Objective-C

//
// RiveArtboard.h
// RiveRuntime
//
// Created by Maxwell Talbot on 5/14/21.
// Copyright © 2021 Rive. All rights reserved.
//
#pragma once
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class RiveScene;
@class RiveLinearAnimationInstance;
@class RiveStateMachineInstance;
@class RiveRenderer;
// MARK: - RiveArtboard
//
@interface RiveArtboard : NSObject
- (NSString *)name;
- (CGRect)bounds;
- (RiveScene * __nullable)defaultScene:(NSError **)error;
- (NSInteger)animationCount;
- (NSArray<NSString *> *)animationNames;
- (RiveLinearAnimationInstance * __nullable)animationFromIndex:(NSInteger)index error:(NSError **)error;
- (RiveLinearAnimationInstance * __nullable)animationFromName:(NSString *)name error:(NSError **)error;
- (NSInteger)stateMachineCount;
- (NSArray<NSString *> *)stateMachineNames;
- (RiveStateMachineInstance * __nullable)defaultStateMachine;
- (RiveStateMachineInstance * __nullable)stateMachineFromIndex:(NSInteger)index error:(NSError **)error;
- (RiveStateMachineInstance * __nullable)stateMachineFromName:(NSString *)name error:(NSError **)error;
- (void)advanceBy:(double)elapsedSeconds;
- (void)draw:(RiveRenderer *)renderer;
@end
NS_ASSUME_NONNULL_END