project_files/HedgewarsMobile/Classes/MGSplitViewController/MGSplitCornersView.h
branchios-revival
changeset 11115 3729ac42189b
parent 8441 a00b0fa0dbd7
equal deleted inserted replaced
11114:6a0bd9c6cc82 11115:3729ac42189b
     7 //
     7 //
     8 
     8 
     9 #import <UIKit/UIKit.h>
     9 #import <UIKit/UIKit.h>
    10 
    10 
    11 typedef enum _MGCornersPosition {
    11 typedef enum _MGCornersPosition {
    12     MGCornersPositionLeadingVertical    = 0, // top of screen for a left/right split.
    12 	MGCornersPositionLeadingVertical	= 0, // top of screen for a left/right split.
    13     MGCornersPositionTrailingVertical   = 1, // bottom 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.
    14 	MGCornersPositionLeadingHorizontal	= 2, // left of screen for a top/bottom split.
    15     MGCornersPositionTrailingHorizontal = 3  // right of screen for a top/bottom split.
    15 	MGCornersPositionTrailingHorizontal	= 3  // right of screen for a top/bottom split.
    16 } MGCornersPosition;
    16 } MGCornersPosition;
    17 
    17 
    18 @class MGSplitViewController;
    18 @class MGSplitViewController;
    19 @interface MGSplitCornersView : UIView {
    19 @interface MGSplitCornersView : UIView {
    20     float cornerRadius;
    20 	float cornerRadius;
    21     MGSplitViewController *splitViewController;
    21 	MGSplitViewController *__unsafe_unretained splitViewController;
    22     MGCornersPosition cornersPosition;
    22 	MGCornersPosition cornersPosition;
    23     UIColor *cornerBackgroundColor;
    23 	UIColor *cornerBackgroundColor;
    24 }
    24 }
    25 
    25 
    26 @property (nonatomic, assign) float cornerRadius;
    26 @property (nonatomic, assign) float cornerRadius;
    27 @property (nonatomic, assign) MGSplitViewController *splitViewController; // weak ref.
    27 @property (nonatomic, unsafe_unretained) MGSplitViewController *splitViewController; // weak ref.
    28 @property (nonatomic, assign) MGCornersPosition cornersPosition; // don't change this manually; let the splitViewController manage it.
    28 @property (nonatomic, assign) MGCornersPosition cornersPosition; // don't change this manually; let the splitViewController manage it.
    29 @property (nonatomic, retain) UIColor *cornerBackgroundColor;
    29 @property (nonatomic, strong) UIColor *cornerBackgroundColor;
    30 
    30 
    31 @end
    31 @end