Source

CocoaPDF / TronPDFView.h

//
//  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>

extern NSString * TronPDFViewPageChangedNotification;
extern NSString * TronPDFViewScrollChangedNotification;

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

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

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

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

- (void)windowResized;

- (void)setScroll:(float)hPos verticalPosition:(float)vPos;

#pragma mark notificaitons
-(void)postPageChangeNotification;
-(void)postScrollChangeNotification;

#pragma mark PDFView wrapper
-(int) currPageNum;
-(void) goToNextPage:(id)sender;
-(void) goToPreviousPage:(id)sender;

-(double)currentHorizontalScrollPosition;
-(double)currentVerticalScrollPosition;

-(void)update;

#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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.