Class: WMCtrl::Desktop
Instance Method Summary collapse
- #geometry_height ⇒ Object
- #geometry_width ⇒ Object
-
#workarea_height ⇒ Integer
Height of workarea.
-
#workarea_width ⇒ Integer
Width of workarea.
-
#workarea_x ⇒ Integer
X coordinate of Top left corner of workarea.
-
#workarea_y ⇒ Integer
Y coordinate of Top left corner of workarea.
Methods inherited from DataHash
Constructor Details
This class inherits a constructor from WMCtrl::DataHash
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class WMCtrl::DataHash
Instance Method Details
#geometry_height ⇒ Object
31 32 33 |
# File 'lib/wmctrl/wmctrl.rb', line 31 def geometry_height self[:geometry][1] end |
#geometry_width ⇒ Object
27 28 29 |
# File 'lib/wmctrl/wmctrl.rb', line 27 def geometry_width self[:geometry][0] end |
#workarea_height ⇒ Integer
Returns Height of workarea.
51 52 53 |
# File 'lib/wmctrl/wmctrl.rb', line 51 def workarea_height self[:workarea][3] end |
#workarea_width ⇒ Integer
Returns Width of workarea.
46 47 48 |
# File 'lib/wmctrl/wmctrl.rb', line 46 def workarea_width self[:workarea][2] end |
#workarea_x ⇒ Integer
Returns X coordinate of Top left corner of workarea.
36 37 38 |
# File 'lib/wmctrl/wmctrl.rb', line 36 def workarea_x self[:workarea][0] end |
#workarea_y ⇒ Integer
Returns Y coordinate of Top left corner of workarea.
41 42 43 |
# File 'lib/wmctrl/wmctrl.rb', line 41 def workarea_y self[:workarea][1] end |