Module: VER::Methods::Views
- Included in:
- VER::Methods, Shortcuts
- Defined in:
- lib/ver/methods/views.rb
Instance Method Summary collapse
- #view_close ⇒ Object
- #view_create ⇒ Object
- #view_find_or_create(file) ⇒ Object
- #view_focus_next ⇒ Object
- #view_focus_prev ⇒ Object
- #view_master_dec ⇒ Object
- #view_master_inc ⇒ Object
- #view_one ⇒ Object
- #view_push_bottom ⇒ Object
- #view_push_down ⇒ Object
- #view_push_top ⇒ Object
- #view_push_up ⇒ Object
- #view_slave_dec ⇒ Object
- #view_slave_inc ⇒ Object
- #view_two ⇒ Object
Instance Method Details
#view_close ⇒ Object
12 13 14 |
# File 'lib/ver/methods/views.rb', line 12 def view_close view.close end |
#view_create ⇒ Object
8 9 10 |
# File 'lib/ver/methods/views.rb', line 8 def view_create view.create end |
#view_find_or_create(file) ⇒ Object
4 5 6 |
# File 'lib/ver/methods/views.rb', line 4 def view_find_or_create(file) view.find_or_create(file) end |
#view_focus_next ⇒ Object
16 17 18 |
# File 'lib/ver/methods/views.rb', line 16 def view_focus_next view.focus_next end |
#view_focus_prev ⇒ Object
20 21 22 |
# File 'lib/ver/methods/views.rb', line 20 def view_focus_prev view.focus_prev end |
#view_master_dec ⇒ Object
69 70 71 72 73 |
# File 'lib/ver/methods/views.rb', line 69 def view_master_dec master = layout.[:master] layout.[:master] -= 1 if master > 0 layout.apply end |
#view_master_inc ⇒ Object
64 65 66 67 |
# File 'lib/ver/methods/views.rb', line 64 def view_master_inc layout.[:master] += 1 layout.apply end |
#view_one ⇒ Object
40 41 42 43 |
# File 'lib/ver/methods/views.rb', line 40 def view_one layout..merge! master: 1, stacking: 0 layout.apply end |
#view_push_bottom ⇒ Object
36 37 38 |
# File 'lib/ver/methods/views.rb', line 36 def view_push_bottom view.push_bottom end |
#view_push_down ⇒ Object
28 29 30 |
# File 'lib/ver/methods/views.rb', line 28 def view_push_down view.push_down end |
#view_push_top ⇒ Object
32 33 34 |
# File 'lib/ver/methods/views.rb', line 32 def view_push_top view.push_top end |
#view_push_up ⇒ Object
24 25 26 |
# File 'lib/ver/methods/views.rb', line 24 def view_push_up view.push_up end |
#view_slave_dec ⇒ Object
58 59 60 61 62 |
# File 'lib/ver/methods/views.rb', line 58 def view_slave_dec stacking = layout.[:stacking] layout.[:stacking] -= 1 if stacking > 0 layout.apply end |
#view_slave_inc ⇒ Object
50 51 52 53 54 55 56 |
# File 'lib/ver/methods/views.rb', line 50 def view_slave_inc stacking = layout.[:stacking] unless stacking >= layout.views.size layout.[:stacking] += 1 layout.apply end end |
#view_two ⇒ Object
45 46 47 48 |
# File 'lib/ver/methods/views.rb', line 45 def view_two layout..merge! master: 1, stacking: 1 layout.apply end |