//
//  CRMaterialView.h
//  CRGraphics
//
//  Created by Yaroslav Glushchenko on 3/6/10.
//  Copyright 2010 Corner-A. All rights reserved.
//

@class CRMaterial;

//////////////////////////////////////////////////////////////////////
// CRMaterial viewer
//////////////////////////////////////////////////////////////////////
@interface CRMaterialView : CRControl
{
@private
	BOOL						enabled;
	BOOL						justDetached;
	CRMaterial*					material;
	NSEvent*					mouseDownEvent;

@public
	CRAttachedWindowController* attachmentController;
}

@property (nonatomic, assign) BOOL			enabled;
@property (nonatomic, assign) BOOL			supportsDrop;
@property (nonatomic, assign) BOOL			supportsEdit;
@property (nonatomic, assign) id			dragController;
@property (nonatomic, strong) CRMaterial*	material;

@end