summaryrefslogtreecommitdiff
path: root/platform/ios/Classes/MuAnnotSelectView.m
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-01-09 13:27:17 +0100
committerTor Andersson <tor.andersson@artifex.com>2017-01-09 17:46:26 +0100
commit9d96d035d3b7af53256ee64b5ddb0ad8bcf8df38 (patch)
tree408cbbb72315089db1b8efe58bce322f8734bb1b /platform/ios/Classes/MuAnnotSelectView.m
parent50b39c939345c36eb5e95c8a71ccdb8cd24c9aad (diff)
downloadmupdf-9d96d035d3b7af53256ee64b5ddb0ad8bcf8df38.tar.xz
Remove platform/ios directory.
The iOS viewer has been moved to its own git repository.
Diffstat (limited to 'platform/ios/Classes/MuAnnotSelectView.m')
-rw-r--r--platform/ios/Classes/MuAnnotSelectView.m39
1 files changed, 0 insertions, 39 deletions
diff --git a/platform/ios/Classes/MuAnnotSelectView.m b/platform/ios/Classes/MuAnnotSelectView.m
deleted file mode 100644
index a02adbf7..00000000
--- a/platform/ios/Classes/MuAnnotSelectView.m
+++ /dev/null
@@ -1,39 +0,0 @@
-#import "MuAnnotSelectView.h"
-
-@implementation MuAnnotSelectView
-{
- MuAnnotation *annot;
- CGSize pageSize;
- UIColor *color;
-}
-
-- (instancetype)initWithAnnot:(MuAnnotation *)_annot pageSize:(CGSize)_pageSize
-{
- self = [super initWithFrame:CGRectMake(0.0, 0.0, 100.0, 100.0)];
- if (self)
- {
- [self setOpaque:NO];
- annot = [_annot retain];
- pageSize = _pageSize;
- color = [[UIColor colorWithRed:0x44/255.0 green:0x44/255.0 blue:1.0 alpha:1.0] retain];
- }
- return self;
-}
-
--(void) dealloc
-{
- [annot release];
- [color release];
- [super dealloc];
-}
-
-- (void)drawRect:(CGRect)rect
-{
- CGSize scale = fitPageToScreen(pageSize, self.bounds.size);
- CGContextRef cref = UIGraphicsGetCurrentContext();
- CGContextScaleCTM(cref, scale.width, scale.height);
- [color set];
- CGContextStrokeRect(cref, annot.rect);
-}
-
-@end