//
//  MPAbstractTextField.h
//  Memphis
//
//  Created by Dmitry Gaponenko on 6/6/14.
//  Copyright (c) 2014 MacPhun LLC. All rights reserved.
//

#import "MPLocalizedTextField.h"

typedef enum
{
	MPTextFieldTextAlignementLeft,
	MPTextFieldTextAlignementRight,
	MPTextFieldTextAlignementCenter
} MPTextFieldTextAlignement;

typedef enum
{
    MPTextFieldPictogramPositionTop,
    MPTextFieldPictogramPositionBottom,
    MPTextFieldPictogramPositionLeft,
    MPTextFieldPictogramPositionRight,
    MPTextFieldPictogramPositionCenter,
} MPTextFieldPictogramPosition;

IB_DESIGNABLE
@interface MPAbstractTextField : MPLocalizedTextField

@property(nonatomic, strong) IBInspectable NSImage *pictogram;
@property(nonatomic, assign) IBInspectable CGPoint textOffset;
@property(nonatomic, assign) IBInspectable MPTextFieldPictogramPosition pictogramPosition;
@property(nonatomic, assign) IBInspectable MPTextFieldTextAlignement alignment;

- (void)setPictogramName:(NSString *)pictogramImageName;

@end
