mirror of
https://github.com/rive-app/rive-ios.git
synced 2026-01-18 17:11:28 +01:00
45 lines
1.2 KiB
Objective-C
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
|