Module: VER::Methods::Views

Included in:
VER::Methods, Shortcuts
Defined in:
lib/ver/methods/views.rb

Instance Method Summary collapse

Instance Method Details

#view_closeObject



12
13
14
# File 'lib/ver/methods/views.rb', line 12

def view_close
  view.close
end

#view_createObject



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_nextObject



16
17
18
# File 'lib/ver/methods/views.rb', line 16

def view_focus_next
  view.focus_next
end

#view_focus_prevObject



20
21
22
# File 'lib/ver/methods/views.rb', line 20

def view_focus_prev
  view.focus_prev
end

#view_master_decObject



69
70
71
72
73
# File 'lib/ver/methods/views.rb', line 69

def view_master_dec
  master = layout.options[:master]
  layout.options[:master] -= 1 if master > 0
  layout.apply
end

#view_master_incObject



64
65
66
67
# File 'lib/ver/methods/views.rb', line 64

def view_master_inc
  layout.options[:master] += 1
  layout.apply
end

#view_oneObject



40
41
42
43
# File 'lib/ver/methods/views.rb', line 40

def view_one
  layout.options.merge! master: 1, stacking: 0
  layout.apply
end

#view_push_bottomObject



36
37
38
# File 'lib/ver/methods/views.rb', line 36

def view_push_bottom
  view.push_bottom
end

#view_push_downObject



28
29
30
# File 'lib/ver/methods/views.rb', line 28

def view_push_down
  view.push_down
end

#view_push_topObject



32
33
34
# File 'lib/ver/methods/views.rb', line 32

def view_push_top
  view.push_top
end

#view_push_upObject



24
25
26
# File 'lib/ver/methods/views.rb', line 24

def view_push_up
  view.push_up
end

#view_slave_decObject



58
59
60
61
62
# File 'lib/ver/methods/views.rb', line 58

def view_slave_dec
  stacking = layout.options[:stacking]
  layout.options[:stacking] -= 1 if stacking > 0
  layout.apply
end

#view_slave_incObject



50
51
52
53
54
55
56
# File 'lib/ver/methods/views.rb', line 50

def view_slave_inc
  stacking = layout.options[:stacking]
  unless stacking >= layout.views.size
    layout.options[:stacking] += 1
    layout.apply
  end
end

#view_twoObject



45
46
47
48
# File 'lib/ver/methods/views.rb', line 45

def view_two
  layout.options.merge! master: 1, stacking: 1
  layout.apply
end