GElement.swift 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * ImageMeter confidential
  3. *
  4. * Copyright (C) 2019 by Dirk Farin, Kronenstr. 49b, 70174 Stuttgart, Germany
  5. * All Rights Reserved.
  6. *
  7. * NOTICE: All information contained herein is, and remains the property
  8. * of Dirk Farin. The intellectual and technical concepts contained
  9. * herein are proprietary to Dirk Farin and are protected by trade secret
  10. * and copyright law.
  11. * Dissemination of this information or reproduction of this material
  12. * is strictly forbidden unless prior written permission is obtained
  13. * from Dirk Farin.
  14. */
  15. import Foundation
  16. public class GElement {
  17. var gelement : OpaquePointer;
  18. init (ptr : OpaquePointer) {
  19. gelement = ptr
  20. }
  21. deinit {
  22. IM_GElement_release(gelement)
  23. }
  24. func set_main_line_width_magnification(magnification : Float) {
  25. IM_GElement_set_main_line_width_magnification(gelement, magnification)
  26. }
  27. func is_GText() -> Bool {
  28. return IM_GElement_is_GText(gelement)
  29. }
  30. func getCPtr() -> OpaquePointer {
  31. return gelement
  32. }
  33. }