2022-04-28 01:02:50 -07:00
|
|
|
/*
|
|
|
|
* Copyright 2022 Anthony Cohn-Richardby <anthonyc@gmx.co.uk>
|
|
|
|
*
|
|
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
|
|
*
|
|
|
|
* NetSurf is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* NetSurf is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2020-12-29 12:10:52 -08:00
|
|
|
#import <AppKit/AppKit.h>
|
2020-11-14 13:45:05 -08:00
|
|
|
|
|
|
|
@interface PlotView: NSView {
|
|
|
|
void *browser;
|
2020-11-25 12:15:47 -08:00
|
|
|
BOOL reallyDraw;
|
2020-11-30 12:02:41 -08:00
|
|
|
BOOL isDragging;
|
|
|
|
NSPoint dragStart;
|
2020-12-01 11:47:41 -08:00
|
|
|
NSSize lastSize;
|
2020-12-05 07:43:34 -08:00
|
|
|
BOOL showCaret;
|
|
|
|
NSRect caretRect;
|
2020-12-06 02:32:12 -08:00
|
|
|
BOOL didResize;
|
2020-11-14 13:45:05 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
-(void)setBrowser: (void*)aBrowser;
|
2020-12-05 07:43:34 -08:00
|
|
|
-(void)placeCaretAtX: (int)x y: (int)y height: (int)height;
|
|
|
|
-(void)removeCaret;
|
2021-02-10 11:15:59 -08:00
|
|
|
-(void)reload: (id)sender;
|
|
|
|
-(void)stopReloading: (id)sender;
|
2022-02-10 00:54:37 -08:00
|
|
|
-(void)showDropdownMenuWithOptions: (NSArray*)options atLocation: (NSPoint)location control: (struct form_control*)control;
|
2022-04-19 01:23:31 -07:00
|
|
|
-(void)zoomIn: (id)sender;
|
|
|
|
-(void)zoomOut: (id)sender;
|
|
|
|
-(void)resetZoom: (id)sender;
|
2020-11-14 13:45:05 -08:00
|
|
|
@end
|