1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- //
- // CPDFListViewConfig.swift
- // PDF Reader Pro
- //
- // Created by wanjun on 2023/10/11.
- //
- import Cocoa
- @objcMembers
- class CPDFListViewConfig: NSObject {
- var _annotationBorderOffset: NSNumber = 5
- var _annotationBorderColor: NSColor = NSColor(red: 82.0/255.0, green: 102.0/255.0, blue: 204.0/255.0, alpha: 1)
- var _dragHoverColor: NSColor = NSColor(red: 23/255.0, green: 112/255.0, blue: 244/255.0, alpha: 1.0)
- var isSaveDefault: Bool = false
- var _isSquareFromPolygon: Bool = false
- var _polylineSelectIndex: Int = 0
- var _polygonSelectIndex: Int = 0
- static let defaultManager: CPDFListViewConfig = {
- let config = CPDFListViewConfig()
- return config
- }()
-
- //Get、Set
-
- var annotationBorderOffset: NSNumber {
- get {
- return _annotationBorderOffset
- }
- set {
- _annotationBorderOffset = newValue
- }
- }
- var annotationBorderColor: NSColor {
- get {
- return _annotationBorderColor
- }
- set {
- _annotationBorderColor = newValue
- }
- }
- var dragHoverColor: NSColor {
- get {
- return _dragHoverColor
- }
- set {
- _dragHoverColor = newValue
- }
- }
-
- var isSquareFromPolygon: Bool {
- get {
- return _isSquareFromPolygon
- }
- set {
- _isSquareFromPolygon = newValue
- }
- }
-
- var polylineSelectIndex: Int {
- get {
- return _polylineSelectIndex
- }
- set {
- _polylineSelectIndex = newValue
- }
- }
-
- var polygonSelectIndex: Int {
- get {
- return _polygonSelectIndex
- }
- set {
- _polygonSelectIndex = newValue
- }
- }
- }
|