project_files/HedgewarsMobile/MGSplitCornersView.h
changeset 6659 a6030b32b222
parent 6658 2cccf6b2b89d
child 6660 99ecc7e17c4f
equal deleted inserted replaced
6658:2cccf6b2b89d 6659:a6030b32b222
     1 //
       
     2 //  MGSplitCornersView.h
       
     3 //  MGSplitView
       
     4 //
       
     5 //  Created by Matt Gemmell on 28/07/2010.
       
     6 //  Copyright 2010 Instinctive Code.
       
     7 //
       
     8 
       
     9 #import <UIKit/UIKit.h>
       
    10 
       
    11 typedef enum _MGCornersPosition {
       
    12 	MGCornersPositionLeadingVertical	= 0, // top of screen for a left/right split.
       
    13 	MGCornersPositionTrailingVertical	= 1, // bottom of screen for a left/right split.
       
    14 	MGCornersPositionLeadingHorizontal	= 2, // left of screen for a top/bottom split.
       
    15 	MGCornersPositionTrailingHorizontal	= 3  // right of screen for a top/bottom split.
       
    16 } MGCornersPosition;
       
    17 
       
    18 @class MGSplitViewController;
       
    19 @interface MGSplitCornersView : UIView {
       
    20 	float cornerRadius;
       
    21 	MGSplitViewController *splitViewController;
       
    22 	MGCornersPosition cornersPosition;
       
    23 	UIColor *cornerBackgroundColor;
       
    24 }
       
    25 
       
    26 @property (nonatomic, assign) float cornerRadius;
       
    27 @property (nonatomic, assign) MGSplitViewController *splitViewController; // weak ref.
       
    28 @property (nonatomic, assign) MGCornersPosition cornersPosition; // don't change this manually; let the splitViewController manage it.
       
    29 @property (nonatomic, retain) UIColor *cornerBackgroundColor;
       
    30 
       
    31 @end