Sha256: ad41e0817be44f1151ec56efe16f2d4737fbf240a3b41e31ef5321568bcfd7d6

Contents?: true

Size: 281 Bytes

Versions: 6

Compression:

Stored size: 281 Bytes

Contents

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

  def x
    @view.style.left
  end

  def x=(position)
    @view.style.left = position
  end

  def y
    @view.style.top
  end

  def y=(position)
    @view.style.top = position
  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/position.rb
under-os-1.3.0 lib/under_os/ui/utils/position.rb
under-os-1.2.1 lib/under_os/ui/utils/position.rb
under-os-1.2.0 lib/under_os/ui/utils/position.rb
under-os-1.1.0 lib/under_os/ui/utils/position.rb
under-os-1.0.0 lib/under_os/ui/utils/position.rb