pdf417view.h

来自「pdf417二维条码算法源程序」· C头文件 代码 · 共 62 行

H
62
字号
/*pdf417View.hpdf417View, An IBPalette for drawing pdf417 2D barcodesCopyright (C) 2005 Evan CourtneyThis library is free software; you can redistribute it and/ormodify it under the terms of the GNU Lesser General PublicLicense as published by the Free Software Foundation; eitherversion 2.1 of the License, or (at your option) any later version.This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNULesser General Public License for more details.You should have received a copy of the GNU Lesser General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA*/#import <Cocoa/Cocoa.h>#include "pdf417lib.h"#define NON_EMPTY_IMAGE				0#define EMPTY_IMAGE					1#define	ERROR_IMAGE					2@interface pdf417View : NSView {    NSImage	*pdf417Image;	pdf417param p;    BOOL	dragSessionInProgress;	int		errorLevel;	BOOL	isDragTarget;	BOOL	isDragSource;	int		imageState;	IBOutlet NSText* inString;}- (id) initWithFrame:(NSRect)frame;- (void)drawRect:(NSRect)rect;- (int)drawWithText:(NSString *)string;- (NSImage *)getImage;- (NSData *)makeEPS;- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender;- (void)draggingExited:(id <NSDraggingInfo>)sender;- (BOOL)prepareForDragOperation:(id <NSDraggingInfo>)sender;- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender;- (void)concludeDragOperation:(id <NSDraggingInfo>)sender;- (void)draw:(id)sender;- (void)setErrorLevel:(int)level;- (void)toggleTargetState;- (void)toggleSourceState;- (int)getErrorLevel;- (BOOL)getTargetState;- (BOOL)getSourceState;@end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?