Sha256: 99403897e6f6421c5b20f834f26b87b52e74c9b9def281342b3c26477bcd9c7c
Contents?: true
Size: 1.46 KB
Versions: 3
Compression:
Stored size: 1.46 KB
Contents
# @requires MotionKit::NSViewLayout module MotionKit class NSViewLayout def content_compression_resistance_priority(value, for_orientation: orientation) orientation = Constraint.orientation_lookup(orientation) target.setContentCompressionResistancePriority(value, forOrientation: axis) end def compression_priority(value, for_orientation: orientation) content_compression_resistance_priority(value, for_orientation: orientation) end def content_hugging_priority(value, for_orientation: orientation) orientation = Constraint.orientation_lookup(orientation) target.setContentHuggingPriority(value, forOrientation: axis) end def hugging_priority(value, for_orientation: orientation) content_hugging_priority(value, for_orientation: orientation) end ##| ##| Aliases for consistency with iOS versions: ##| def content_compression_resistance_priority(value, for_axis: orientation) content_compression_resistance_priority(value, for_orientation: orientation) end def compression_priority(value, for_axis: orientation) content_compression_resistance_priority(value, for_orientation: orientation) end def content_hugging_priority(value, for_axis: orientation) content_hugging_priority(value, for_orientation: orientation) end def hugging_priority(value, for_axis: orientation) content_hugging_priority(value, for_orientation: orientation) end end end
Version data entries
3 entries across 3 versions & 1 rubygems