Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
2f82b84dbThis file is pinned to the selected release. Download the original to open it in your design tool.
//
// EAGLEModule.h
// EAGLEView
//
// Created by Jens Willy Johannsen on 17/01/15.
// Copyright (c) 2015 Greener Pastures. All rights reserved.
//
#import <Foundation/Foundation.h>
@class EAGLESheet;
@class EAGLEPart;
@class EAGLESchematic;
@class DDXMLElement;
@interface EAGLEModule : NSObject
@property (copy) NSString *name;
@property (readonly) CGFloat dx; // Width (why width and height are not set on the module instance I don't know...)
@property (readonly) CGFloat dy; // Height
@property (readonly, strong) NSArray *parts; // Module: Contains EAGLEPart objects
@property (readonly, strong) NSArray *sheets; // Contains EAGLEModule objects
@property (readonly, strong) NSArray *ports; // Contains EAGLEModulePort objects
@property (readonly, weak) EAGLESheet *activeSheet; // The currently selected sheet
- (id)initFromXMLElement:(DDXMLElement*)element schematic:(EAGLESchematic*)schematic;
- (EAGLEPart*)partWithName:(NSString *)name;
@end