project_files/HedgewarsMobile/Classes/MGSplitViewController/MGSplitCornersView.h
author koda
Thu, 09 Feb 2012 19:05:52 +0100
changeset 6659 a6030b32b222
parent 6658 project_files/HedgewarsMobile/MGSplitCornersView.h@2cccf6b2b89d
child 8441 a00b0fa0dbd7
permissions -rwxr-xr-x
move the classes recently added to a proper folder

//
//  MGSplitCornersView.h
//  MGSplitView
//
//  Created by Matt Gemmell on 28/07/2010.
//  Copyright 2010 Instinctive Code.
//

#import <UIKit/UIKit.h>

typedef enum _MGCornersPosition {
	MGCornersPositionLeadingVertical	= 0, // top of screen for a left/right split.
	MGCornersPositionTrailingVertical	= 1, // bottom of screen for a left/right split.
	MGCornersPositionLeadingHorizontal	= 2, // left of screen for a top/bottom split.
	MGCornersPositionTrailingHorizontal	= 3  // right of screen for a top/bottom split.
} MGCornersPosition;

@class MGSplitViewController;
@interface MGSplitCornersView : UIView {
	float cornerRadius;
	MGSplitViewController *splitViewController;
	MGCornersPosition cornersPosition;
	UIColor *cornerBackgroundColor;
}

@property (nonatomic, assign) float cornerRadius;
@property (nonatomic, assign) MGSplitViewController *splitViewController; // weak ref.
@property (nonatomic, assign) MGCornersPosition cornersPosition; // don't change this manually; let the splitViewController manage it.
@property (nonatomic, retain) UIColor *cornerBackgroundColor;

@end