Sha256: 2fcff5e97f85479d0dcf78dd1838ed7bfa0667ed39442bfc8e9f7f92ebcadc8c

Contents?: true

Size: 225 Bytes

Versions: 6

Compression:

Stored size: 225 Bytes

Contents

class UnderOs::Screen
  def self.size
    # TODO make it handle the screen orientation
    UnderOs::Point.new({
      x: UIScreen.mainScreen.bounds.size.width,
      y: UIScreen.mainScreen.bounds.size.height
    })
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
under-os-core-1.4.0 lib/under_os/screen.rb
under-os-1.3.0 lib/under_os/screen.rb
under-os-1.2.1 lib/under_os/screen.rb
under-os-1.2.0 lib/under_os/screen.rb
under-os-1.1.0 lib/under_os/screen.rb
under-os-1.0.0 lib/under_os/screen.rb