1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-12 04:42:06 +00:00
serenity/Meta/Lagom/Contrib/MacPDF/MacPDFView.h

34 lines
690 B
Objective-C

/*
* Copyright (c) 2023, Nico Weber <thakis@chromium.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include "CocoaWrapper.h"
#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;
- (IBAction)goToNextPage:(id)sender;
- (IBAction)goToPreviousPage:(id)sender;
- (IBAction)toggleShowClippingPaths:(id)sender;
- (IBAction)toggleClipImages:(id)sender;
- (IBAction)toggleClipPaths:(id)sender;
- (IBAction)toggleClipText:(id)sender;
@end