Source

CocoaPDF / TronPDFView.h

Full commit
//
//  TronPDFView.h
//  cocoapdf
//
//  Created by Quincy on 10-07-25.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "MyPDFDoc.h"

#include <PDF/PDFView.h>

@interface TronPDFView : NSView {
    pdftron::PDF::PDFView * _tronPDFView;
    std::vector<char> _buf;
}

@property (nonatomic) pdftron::PDF::PDFView * tronPDFView;

- (pdftron::PDF::PDFView *) getPDFView;

- (void)setDocument:(MyPDFDoc*) myDoc;

- (void)windowResized:(NSNotification *)notification;

- (void)SetScroll:(float)hPos vPos:(float)vPos;

#pragma mark c callbacks 
void beginRendering(void* data);
void endRendering(void* data, bool canceled);
void currPageProc(int current_page, int num_pages, void *data);
void cp_1_pixel(const char * src, char * dst, int i, int j, int width, int height);

@end