|
//
// CircularLevelView.h
// Level
//
// Created by joel johnson on 7/8/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CircularLevelView : UIView {
CGRect horizontalLevelPosition;
CGRect verticalLevelPosition;
CGRect circularLevelPosition;
UIAccelerometer *myAccelerometer;
CGPoint levelPosition;
float tiltDirection;
float tiltMagnitude;
}
@property CGRect horizontalLevelPosition;
@property CGRect verticalLevelPosition;
@property CGRect circularLevelPosition;
-(void)updateElementPositioning;
-(void) drawCircularLevel:(CGContextRef)context :(CGRect)rect :(float) circleMargin;
-(void) drawRectangularLevel:(CGContextRef)context :(CGRect) rect :(float)rectangularMargin :(float)position;
-(CGRect)resizeRect:(CGRect)sourceRect Factor:(float)resizeFactor;
-(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration;
@end
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.