module Rabbit::ScreenInfo

Public Instance Methods

default_screen() click to toggle source
# File lib/rabbit/utils.rb, line 367
def default_screen
  Gdk::Screen.default
end
mm_to_inch(mm) click to toggle source
# File lib/rabbit/utils.rb, line 399
def mm_to_inch(mm)
  mm / 25.4
end
screen_depth() click to toggle source
# File lib/rabbit/utils.rb, line 395
def screen_depth
  default_screen.system_visual.depth
end
screen_height() click to toggle source
# File lib/rabbit/utils.rb, line 379
def screen_height
  default_screen.height
end
screen_height_mm() click to toggle source
# File lib/rabbit/utils.rb, line 383
def screen_height_mm
  default_screen.height_mm
end
screen_width() click to toggle source
# File lib/rabbit/utils.rb, line 371
def screen_width
  default_screen.width
end
screen_width_mm() click to toggle source
# File lib/rabbit/utils.rb, line 375
def screen_width_mm
  default_screen.width_mm
end
screen_x_resolution() click to toggle source
# File lib/rabbit/utils.rb, line 387
def screen_x_resolution
  screen_width / mm_to_inch(screen_width_mm)
end
screen_y_resolution() click to toggle source
# File lib/rabbit/utils.rb, line 391
def screen_y_resolution
  screen_height / mm_to_inch(screen_height_mm)
end