Class: Wnck::Window
- Inherits:
-
Object
- Object
- Wnck::Window
- Defined in:
- lib/wnck.rb
Instance Attribute Summary collapse
-
#handle ⇒ Object
readonly
Returns the value of attribute handle.
-
#screen ⇒ Object
readonly
Returns the value of attribute screen.
Class Method Summary collapse
Instance Method Summary collapse
- #actions ⇒ Object
- #close ⇒ Object
- #fullscreen=(v) ⇒ Object
- #icon_name ⇒ Object
-
#initialize(handle) ⇒ Window
constructor
A new instance of Window.
- #make_above ⇒ Object
- #make_below ⇒ Object
- #maximize ⇒ Object
- #maximize_horizontally ⇒ Object
- #maximize_vertically ⇒ Object
- #minimize ⇒ Object
- #name ⇒ Object
- #pin ⇒ Object
- #shade ⇒ Object
- #skip_pager=(v) ⇒ Object
- #skip_tasklist=(v) ⇒ Object
- #stick ⇒ Object
- #unmake_above ⇒ Object
- #unmake_below ⇒ Object
- #unmaximize ⇒ Object
- #unmaximize_horizontally ⇒ Object
- #unmaximize_vertically ⇒ Object
- #unminimize(ts) ⇒ Object
- #unpin ⇒ Object
- #unshade ⇒ Object
- #unstick ⇒ Object
Constructor Details
Instance Attribute Details
#handle ⇒ Object (readonly)
Returns the value of attribute handle.
255 256 257 |
# File 'lib/wnck.rb', line 255 def handle @handle end |
#screen ⇒ Object (readonly)
Returns the value of attribute screen.
255 256 257 |
# File 'lib/wnck.rb', line 255 def screen @screen end |
Class Method Details
.get(xid) ⇒ Object
261 262 263 264 265 266 |
# File 'lib/wnck.rb', line 261 def self.get(xid) screen = prepare_screen(screen) h = Wnck::wnck_window_get(xid) return nil if h.null? Window.new(h) end |
.new(handle) ⇒ Object
249 250 251 252 253 |
# File 'lib/wnck.rb', line 249 def self.new(handle) return get(handle) if handle.kind_of? Integer return nil if handle.null? super handle end |
Instance Method Details
#actions ⇒ Object
291 |
# File 'lib/wnck.rb', line 291 def actions() Wnck::wnck_window_get_actions(@handle) end |
#close ⇒ Object
285 |
# File 'lib/wnck.rb', line 285 def close() Wnck::wnck_window_close(@handle) end |
#fullscreen=(v) ⇒ Object
296 |
# File 'lib/wnck.rb', line 296 def fullscreen=(v) Wnck::wnck_window_set_fullscreen(@handle, v) end |
#icon_name ⇒ Object
293 |
# File 'lib/wnck.rb', line 293 def icon_name() Wnck::wnck_window_get_name(@handle) end |
#make_above ⇒ Object
281 |
# File 'lib/wnck.rb', line 281 def make_above() Wnck::wnck_window_make_above(@handle) end |
#make_below ⇒ Object
284 |
# File 'lib/wnck.rb', line 284 def make_below() Wnck::wnck_window_make_below(@handle) end |
#maximize ⇒ Object
273 |
# File 'lib/wnck.rb', line 273 def maximize() Wnck::wnck_window_maximize(@handle) end |
#maximize_horizontally ⇒ Object
268 |
# File 'lib/wnck.rb', line 268 def maximize_horizontally() Wnck::wnck_window_maximize_horizontally(@handle) end |
#maximize_vertically ⇒ Object
271 |
# File 'lib/wnck.rb', line 271 def maximize_vertically() Wnck::wnck_window_maximize_vertically(@handle) end |
#minimize ⇒ Object
286 |
# File 'lib/wnck.rb', line 286 def minimize() Wnck::wnck_window_minimize(@handle) end |
#name ⇒ Object
292 |
# File 'lib/wnck.rb', line 292 def name() Wnck::wnck_window_get_name(@handle) end |
#pin ⇒ Object
277 |
# File 'lib/wnck.rb', line 277 def pin() Wnck::wnck_window_pin(@handle) end |
#shade ⇒ Object
275 |
# File 'lib/wnck.rb', line 275 def shade() Wnck::wnck_window_shade(@handle) end |
#skip_pager=(v) ⇒ Object
294 |
# File 'lib/wnck.rb', line 294 def skip_pager=(v) Wnck::wnck_window_set_skip_pager(@handle, v) end |
#skip_tasklist=(v) ⇒ Object
295 |
# File 'lib/wnck.rb', line 295 def skip_tasklist=(v) Wnck::wnck_window_set_skip_tasklist(@handle, v) end |
#stick ⇒ Object
279 |
# File 'lib/wnck.rb', line 279 def stick() Wnck::wnck_window_stick(@handle) end |
#unmake_above ⇒ Object
282 |
# File 'lib/wnck.rb', line 282 def unmake_above() Wnck::wnck_window_unmake_above(@handle) end |
#unmake_below ⇒ Object
283 |
# File 'lib/wnck.rb', line 283 def unmake_below() Wnck::wnck_window_unmake_below(@handle) end |
#unmaximize ⇒ Object
274 |
# File 'lib/wnck.rb', line 274 def unmaximize() Wnck::wnck_window_unmaximize(@handle) end |
#unmaximize_horizontally ⇒ Object
270 |
# File 'lib/wnck.rb', line 270 def unmaximize_horizontally() Wnck::wnck_window_unmaximize_horizontally(@handle) end |
#unmaximize_vertically ⇒ Object
272 |
# File 'lib/wnck.rb', line 272 def unmaximize_vertically() Wnck::wnck_window_unmaximize_vertically(@handle) end |
#unminimize(ts) ⇒ Object
269 |
# File 'lib/wnck.rb', line 269 def unminimize() Wnck::wnck_window_unminimize(@handle) end |
#unpin ⇒ Object
278 |
# File 'lib/wnck.rb', line 278 def unpin() Wnck::wnck_window_unpin(@handle) end |
#unshade ⇒ Object
276 |
# File 'lib/wnck.rb', line 276 def unshade() Wnck::wnck_window_unshade(@handle) end |
#unstick ⇒ Object
280 |
# File 'lib/wnck.rb', line 280 def unstick() Wnck::wnck_window_unstick(@handle) end |