Sha256: 8054e1a197310621ea20b07872a93840c35c25bcb907bf22207edd6882dfcac9

Contents?: true

Size: 1.39 KB

Versions: 18

Compression:

Stored size: 1.39 KB

Contents

# @requires MotionKit::ConstraintsLayout
module MotionKit
  class ConstraintsLayout

    def content_compression_resistance_priority(value, for_orientation: orientation)
      orientation = Constraint.orientation_lookup(orientation)
    end

    # consistency with iOS methods:
    def content_compression_resistance_priority(value, for_axis: orientation)
      content_compression_resistance_priority(value, for_orientation: orientation)
    end

    def compression_priority(value, for_orientation: orientation)
      content_compression_resistance_priority(value, for_orientation: orientation)
    end

    # consistency with iOS methods:
    def compression_priority(value, for_axis: orientation)
      content_compression_resistance_priority(value, for_orientation: orientation)
    end

    def content_hugging_priority(value, for_orientation: orientation)
      orientation = Constraint.orientation_lookup(orientation)
    end

    # consistency with iOS methods:
    def content_hugging_priority(value, for_axis: orientation)
      content_hugging_priority(value, for_orientation: orientation)
    end

    def hugging_priority(value, for_orientation: orientation)
      content_hugging_priority(value, for_orientation: orientation)
    end

    # consistency with iOS methods:
    def hugging_priority(value, for_axis: orientation)
      content_hugging_priority(value, for_orientation: orientation)
    end

  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
motion-kit-0.10.11 lib/motion-kit-osx/layouts/constraints_layout.rb
motion-kit-0.10.10 lib/motion-kit-osx/layouts/constraints_layout.rb
motion-kit-0.10.9 lib/motion-kit-osx/layouts/constraints_layout.rb
motion-kit-0.10.8 lib/motion-kit-osx/layouts/constraints_layout.rb
motion-kit-0.10.7 lib/motion-kit-osx/layouts/constraints_layout.rb
motion-kit-0.10.6 lib/motion-kit-osx/layouts/constraints_layout.rb
motion-kit-0.10.5 lib/motion-kit-osx/layouts/constraints_layout.rb
motion-kit-0.10.4 lib/motion-kit-osx/layouts/constraints_layout.rb
motion-kit-0.10.3 lib/motion-kit-osx/layouts/constraints_layout.rb
motion-kit-0.10.2 lib/motion-kit-osx/layouts/constraints_layout.rb
motion-kit-0.10.1 lib/motion-kit-osx/layouts/constraints_layout.rb
motion-kit-0.10.0 lib/motion-kit-osx/layouts/constraints_layout.rb
motion-kit-0.9.6 lib/motion-kit-osx/layouts/constraints_layout.rb
motion-kit-0.9.4 lib/motion-kit-osx/layouts/constraints_layout.rb
motion-kit-0.9.3 lib/motion-kit-osx/layouts/constraints_layout.rb
motion-kit-0.9.2 lib/motion-kit-osx/layouts/constraints_layout.rb
motion-kit-0.9.1 lib/motion-kit-osx/layouts/constraints_layout.rb
motion-kit-0.9.0 lib/motion-kit-osx/layouts/constraints_layout.rb