0001    //
0002    //  SnapKit
0003    //
0004    //  Copyright (c) 2011-2015 SnapKit Team - https://github.com/SnapKit
0005    //
0006    //  Permission is hereby granted, free of charge, to any person obtaining a copy
0007    //  of this software and associated documentation files (the "Software"), to deal
0008    //  in the Software without restriction, including without limitation the rights
0009    //  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
0010    //  copies of the Software, and to permit persons to whom the Software is
0011    //  furnished to do so, subject to the following conditions:
0012    //
0013    //  The above copyright notice and this permission notice shall be included in
0014    //  all copies or substantial portions of the Software.
0015    //
0016    //  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0017    //  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0018    //  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
0019    //  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0020    //  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
0021    //  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
0022    //  THE SOFTWARE.
0023    
0024    #if os(iOS) || os(tvOS)
0025    import UIKit
0026    public typealias EdgeInsets = UIEdgeInsets
0027    public func EdgeInsetsMake(top: CGFloat, left: CGFloat, bottom: CGFloat, right: CGFloat) -> EdgeInsets {
0028        return EdgeInsets(top: top, left: left, bottom: bottom, right: right)
0029    }
0030    public let EdgeInsetsZero = EdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
0031    #else
0032    import AppKit
0033    public typealias EdgeInsets
Constraint.swift:47
    public func updateOffset(amount: EdgeInsets) -> Void { fatalError("Must be implemented by Concrete subclass.") }
Constraint.swift:49
    public func updateInsets(amount: EdgeInsets) -> Void { fatalError("Must be implemented by Concrete subclass.") }
Constraint.swift:92
    internal override func updateOffset(amount: EdgeInsets) -> Void {
Constraint.swift:96
    internal override func updateInsets(amount: EdgeInsets) -> Void {
Constraint.swift:97
        self.constant = EdgeInsets(top: amount.top, left: amount.left, bottom: -amount.bottom, right: -amount.right)
Constraint.swift:437
        else if let insets = value as? EdgeInsets {
ConstraintDescription.swift:79
    func offset(amount: EdgeInsets) -> ConstraintDescriptionEditable
ConstraintDescription.swift:86
    func inset(amount: EdgeInsets) -> ConstraintDescriptionEditable
ConstraintDescription.swift:107
    func equalTo(other: EdgeInsets) -> ConstraintDescriptionEditable
ConstraintDescription.swift:122
    func lessThanOrEqualTo(other: EdgeInsets) -> ConstraintDescriptionEditable
ConstraintDescription.swift:137
    func greaterThanOrEqualTo(other: EdgeInsets) -> ConstraintDescriptionEditable
ConstraintDescription.swift:258
    internal func equalTo(other: EdgeInsets) -> ConstraintDescriptionEditable {
ConstraintDescription.swift:299
    internal func lessThanOrEqualTo(other: EdgeInsets) -> ConstraintDescriptionEditable {
ConstraintDescription.swift:340
    internal func greaterThanOrEqualTo(other: EdgeInsets) -> ConstraintDescriptionEditable {
ConstraintDescription.swift:406
    internal func offset(amount: EdgeInsets) -> ConstraintDescriptionEditable {
ConstraintDescription.swift:415
        self.constant = EdgeInsets(top: value, left: value, bottom: -value, right: -value)
ConstraintDescription.swift:420
        self.constant = EdgeInsets(top: value, left: value, bottom: -value, right: -value)
ConstraintDescription.swift:424
        self.constant = EdgeInsets(top: amount, left: amount, bottom: -amount, right: -amount)
ConstraintDescription.swift:429
        self.constant = EdgeInsets(top: value, left: value, bottom: -value, right: -value)
ConstraintDescription.swift:434
        self.constant = EdgeInsets(top: value, left: value, bottom: -value, right: -value)
ConstraintDescription.swift:437
    internal func inset(amount: EdgeInsets) -> ConstraintDescriptionEditable {
ConstraintDescription.swift:438
        self.constant = EdgeInsets(top: amount.top, left: amount.left, bottom: -amount.bottom, right: -amount.right)
ConstraintDescription.swift:593
    private func constrainTo(other: EdgeInsets, relation: ConstraintRelation) -> ConstraintDescription {
EdgeInsets.swift:34
public func EdgeInsetsMake(top: CGFloat, left: CGFloat, bottom: CGFloat, right: CGFloat) -> EdgeInsets {
EdgeInsets.swift:35
    return EdgeInsets(top: top, left: left, bottom: bottom, right: right)
EdgeInsets.swift:37
public let EdgeInsetsZero = EdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
= NSEdgeInsets 0034 public func EdgeInsetsMake(top: CGFloat, left: CGFloat, bottom: CGFloat, right: CGFloat) -> EdgeInsets { 0035 return EdgeInsets(top: top, left: left, bottom: bottom, right: right) 0036 } 0037 public let EdgeInsetsZero = EdgeInsets(top: 0, left: 0, bottom: 0, right: 0) 0038 #endif 0039