mirror of
https://github.com/dyne/FreeJ.git
synced 2026-02-11 23:30:50 +01:00
45 lines
859 B
Objective-C
45 lines
859 B
Objective-C
//
|
|
// CVFilterPanel.h
|
|
// freej
|
|
//
|
|
// Created by xant on 2/26/09.
|
|
// Copyright 2009 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#ifndef __CV_FILTERPANEL_H__
|
|
#define __CV_FILTERPANEL_H__
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
typedef struct __FilterParams {
|
|
int nParams;
|
|
struct __ParamDescr {
|
|
char *label;
|
|
double min;
|
|
double max;
|
|
} params[3];
|
|
} FilterParams;
|
|
|
|
@interface CVFilterBox : NSView
|
|
{
|
|
NSTrackingArea *trackingArea;
|
|
}
|
|
- (void)mouseExited:(NSEvent *)theEvent;
|
|
/*
|
|
- (void)mouseEntered:(NSEvent *)theEvent;
|
|
- (void)mouseDown:(NSEvent *)theEvent;
|
|
*/
|
|
@end
|
|
|
|
@interface CVFilterPanel : NSWindowController {
|
|
NSView *layer;
|
|
IBOutlet CVFilterBox *mainView;
|
|
}
|
|
- (void)show;
|
|
- (id)initWithName:(NSString *)name;
|
|
- (void)setLayer:(NSView *)lay;
|
|
- (FilterParams *)getFilterParamsDescriptorAtIndex:(int)index;
|
|
- (IBAction)setFilterParameter:(id)sender;
|
|
@end
|
|
|
|
#endif |