Sha256: bc253912d12e9b541e844e6b78c00d1359cea782a46e48c5389b0358e8d5c94b

Contents?: true

Size: 737 Bytes

Versions: 12

Compression:

Stored size: 737 Bytes

Contents

# Example:
#     Teacup::Stylesheet.new :main do
#       style :root,
#         # stays centered and grows in height
#         autoresizingMask: flexible_left|flexible_right|flexible_height
#     end
module Teacup
  class Stylesheet

    def none
      UIViewAutoresizingNone
    end

    def flexible_left
      UIViewAutoresizingFlexibleLeftMargin
    end

    def flexible_width
      UIViewAutoresizingFlexibleWidth
    end

    def flexible_right
      UIViewAutoresizingFlexibleRightMargin
    end

    def flexible_top
      UIViewAutoresizingFlexibleTopMargin
    end

    def flexible_height
      UIViewAutoresizingFlexibleHeight
    end

    def flexible_bottom
      UIViewAutoresizingFlexibleBottomMargin
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
teacup-1.3.4 lib/teacup/stylesheet_extensions/autoresize.rb
teacup-1.3.3 lib/teacup/stylesheet_extensions/autoresize.rb
teacup-1.3.2 lib/teacup/stylesheet_extensions/autoresize.rb
teacup-1.3.1 lib/teacup/stylesheet_extensions/autoresize.rb
teacup-1.3.0 lib/teacup/stylesheet_extensions/autoresize.rb
teacup-1.2.9 lib/teacup/stylesheet_extensions/autoresize.rb
teacup-1.2.8 lib/teacup/stylesheet_extensions/autoresize.rb
teacup-1.2.7 lib/teacup/stylesheet_extensions/autoresize.rb
teacup-1.2.5 lib/teacup/stylesheet_extensions/autoresize.rb
teacup-1.2.4 lib/teacup/stylesheet_extensions/autoresize.rb
teacup-1.2.3 lib/teacup/stylesheet_extensions/autoresize.rb
teacup-1.2.2 lib/teacup/stylesheet_extensions/autoresize.rb