1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +00:00

MacPDF: Rename LagomPDFView to MacPDFView

This commit is contained in:
Nico Weber 2023-09-30 18:55:00 -04:00 committed by Andrew Kaster
parent 3296fb0189
commit f99771d46f
5 changed files with 13 additions and 14 deletions

View file

@ -0,0 +1,29 @@
/*
* 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