mirror of
https://github.com/thes3m/XNI
synced 2024-12-26 13:26:06 +01:00
35 lines
876 B
C
35 lines
876 B
C
|
//
|
||
|
// Rectangle.h
|
||
|
// XNI
|
||
|
//
|
||
|
// Created by Matej Jan on 22.7.10.
|
||
|
// Copyright 2010 Retronator, Razum. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
|
||
|
#import "Retronator.Xni.Framework.classes.h"
|
||
|
|
||
|
@interface Rectangle : NSObject {
|
||
|
RectangleStruct data;
|
||
|
}
|
||
|
|
||
|
- (id) initWithX:(int)x Y:(int)y Width:(int)width Height:(int)height;
|
||
|
- (id) initWithStruct:(RectangleStruct*) rectangleStruct;
|
||
|
- (id) initWithRectangle:(Rectangle*) rectangle;
|
||
|
|
||
|
+ (Rectangle*) rectangleWithX:(int)x Y:(int)y Width:(int)width Height:(int)height;
|
||
|
+ (Rectangle*) rectangleWithStruct:(RectangleStruct*) rectangleStruct;
|
||
|
+ (Rectangle*) rectangleWithRectangle:(Rectangle*) rectangle;
|
||
|
|
||
|
@property (nonatomic) int x;
|
||
|
@property (nonatomic) int y;
|
||
|
@property (nonatomic) int width;
|
||
|
@property (nonatomic) int height;
|
||
|
|
||
|
@property (nonatomic, readonly) RectangleStruct *data;
|
||
|
|
||
|
+ (Rectangle*) empty;
|
||
|
|
||
|
@end
|