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:
parent
3296fb0189
commit
f99771d46f
5 changed files with 13 additions and 14 deletions
29
Meta/Lagom/Contrib/MacPDF/MacPDFView.h
Normal file
29
Meta/Lagom/Contrib/MacPDF/MacPDFView.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue