Class: Gdk::Screen
- Inherits:
-
Object
- Object
- Gdk::Screen
- Defined in:
- lib/gdk3/screen.rb
Instance Method Summary collapse
- #get_monitor(window_or_x, y = nil) ⇒ Object
- #get_setting(key, type = nil) ⇒ Object
- #get_setting_raw ⇒ Object
Instance Method Details
#get_monitor(window_or_x, y = nil) ⇒ Object
30 31 32 33 34 35 36 37 38 |
# File 'lib/gdk3/screen.rb', line 30 def get_monitor(window_or_x, y=nil) if window_or_x.is_a?(Window) window = window_or_x get_monitor_at_window(window) else x = window_or_x get_monitor_at_point(x, y) end end |
#get_setting(key, type = nil) ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/gdk3/screen.rb', line 20 def get_setting(key, type=nil) value = GLib::Value.new(type || GLib::Type::STRING) found = get_setting_raw(key, value) if found value else nil end end |
#get_setting_raw ⇒ Object
19 |
# File 'lib/gdk3/screen.rb', line 19 alias_method :get_setting_raw, :get_setting |