Sha256: da8cd2af1561d0cb80fca5acb7f557021447f385c424bff74421ac51b07bad7e

Contents?: true

Size: 269 Bytes

Versions: 6

Compression:

Stored size: 269 Bytes

Contents

class UnderOs::UI::Size < UnderOs::Point
  def initialize(view)
    @view = view
  end

  def x
    @view.style.width
  end

  def x=(size)
    @view.style.width = size
  end

  def y
    @view.style.height
  end

  def y=(size)
    @view.style.height = size
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
under-os-ui-1.4.0 lib/under_os/ui/utils/size.rb
under-os-1.3.0 lib/under_os/ui/utils/size.rb
under-os-1.2.1 lib/under_os/ui/utils/size.rb
under-os-1.2.0 lib/under_os/ui/utils/size.rb
under-os-1.1.0 lib/under_os/ui/utils/size.rb
under-os-1.0.0 lib/under_os/ui/utils/size.rb