1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-14 09:51:00 +00:00
serenity/Meta/Lagom/Contrib/MacPDF/MacPDFView.h
2023-09-30 19:37:26 -06:00

29 lines
540 B
Objective-C

/*
* Copyright (c) 2023, Nico Weber <thakis@chromium.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
// Several AK types conflict with MacOS types.
#define FixedPoint FixedPointMacOS
#import <Cocoa/Cocoa.h>
#undef FixedPoint
#include <AK/WeakPtr.h>
#include <LibPDF/Document.h>
@protocol MacPDFViewDelegate
- (void)pageChanged;
@end
@interface MacPDFView : NSView
- (void)setDocument:(WeakPtr<PDF::Document>)doc;
- (void)goToPage:(int)page;
- (int)page;
- (void)setDelegate:(id<MacPDFViewDelegate>)delegate;
@end