Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/zxing-cpp/wrappers/ios/Sources/Wrapper/Reader/ZXIPosition+Helper.mm @ 3:2c135c81b16c
MERGE: upstream PyMuPDF 1.26.4 with MuPDF 1.26.7
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:44:09 +0200 |
| parents | b50eed0cc0ef |
| children |
comparison
equal
deleted
inserted
replaced
| 0:6015a75abc2d | 3:2c135c81b16c |
|---|---|
| 1 // Copyright 2022 KURZ Digital Solutions GmbH | |
| 2 // | |
| 3 // SPDX-License-Identifier: Apache-2.0 | |
| 4 | |
| 5 | |
| 6 #import "ZXIPosition+Helper.h" | |
| 7 #import "ZXIPoint.h" | |
| 8 | |
| 9 @implementation ZXIPosition(Helper) | |
| 10 -(instancetype)initWithPosition:(ZXing::Position)position { | |
| 11 return [self initWithTopLeft:[[ZXIPoint alloc] initWithX:position.topLeft().x y:position.topLeft().y] | |
| 12 topRight:[[ZXIPoint alloc] initWithX:position.topRight().x y:position.topRight().y] | |
| 13 bottomRight:[[ZXIPoint alloc] initWithX:position.bottomRight().x y:position.bottomRight().y] | |
| 14 bottomLeft:[[ZXIPoint alloc] initWithX:position.bottomLeft().x y:position.bottomLeft().y]]; | |
| 15 } | |
| 16 | |
| 17 @end |
