project_files/HedgewarsMobile/Classes/MGSplitViewController/MGSplitCornersView.h
author nemo
Sat, 27 Apr 2013 17:02:26 -0400
changeset 8940 181ea27122da
parent 8441 a00b0fa0dbd7
child 11115 3729ac42189b
permissions -rwxr-xr-x
This is something we need to check in all translations. Occasionally the source phrase ends w/ a space. Need to make sure translations take this into account.

//
//  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