Class: Shoes::Swt::ShoesLayout

Inherits:
Swt::Widgets::Layout
  • Object
show all
Defined in:
shoes-swt/lib/shoes/swt/shoes_layout.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#gui_appObject

Returns the value of attribute gui_app.



6
7
8
# File 'shoes-swt/lib/shoes/swt/shoes_layout.rb', line 6

def gui_app
  @gui_app
end

Instance Method Details

#layout(*_dontcare) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'shoes-swt/lib/shoes/swt/shoes_layout.rb', line 8

def layout(*_dontcare)
  height, scroll_height, is_scrolling = gather_height_info(@gui_app.dsl)
  set_heights(@gui_app.dsl, @gui_app.real, height, scroll_height)

  if is_scrolling
    show_scrollbar(vertical_scrollbar, height, scroll_height)
  else
    hide_scrollbar(vertical_scrollbar, @gui_app.real)
  end
end