Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

ZXDataMatrixEncoderContext.h 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright 2013 ZXing authors
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import "ZXEncodeHints.h"
  17. @class ZXDataMatrixSymbolInfo, ZXDimension;
  18. @interface ZXDataMatrixEncoderContext : NSObject
  19. @property (nonatomic, copy, readonly) NSMutableString *codewords;
  20. @property (nonatomic, copy, readonly) NSString *message;
  21. @property (nonatomic, assign) int newEncoding;
  22. @property (nonatomic, assign) int pos;
  23. @property (nonatomic, assign) int skipAtEnd;
  24. @property (nonatomic, assign) ZXDataMatrixSymbolShapeHint symbolShape;
  25. @property (nonatomic, strong) ZXDataMatrixSymbolInfo *symbolInfo;
  26. - (id)initWithMessage:(NSString *)msg;
  27. - (void)setSizeConstraints:(ZXDimension *)minSize maxSize:(ZXDimension *)maxSize;
  28. - (void)setSkipAtEnd:(int)count;
  29. - (unichar)currentChar;
  30. - (unichar)current;
  31. - (void)writeCodewords:(NSString *)codewords;
  32. - (void)writeCodeword:(unichar)codeword;
  33. - (int)codewordCount;
  34. - (void)signalEncoderChange:(int)encoding;
  35. - (void)resetEncoderSignal;
  36. - (BOOL)hasMoreCharacters;
  37. - (int)totalMessageCharCount;
  38. - (int)remainingCharacters;
  39. - (void)updateSymbolInfo;
  40. - (void)updateSymbolInfoWithLength:(int)len;
  41. - (void)resetSymbolInfo;
  42. @end