Method: Core::GUI::Container#update
- Defined in:
- lib/gui/base.rb
#update ⇒ Object
187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
# File 'lib/gui/base.rb', line 187 def update # TODO scrollbar probably doesnt work .update .xoff, .yoff, .zoff = @xoff, @yoff, @zoff offset = .offset * -@ch @items.each { |item| item.xoff, item.zoff = @xoff, @zoff item.yoff = @yoff# + (offset/@ch) - @ch if item.y + item.yoff + item.h < .y + .yoff next end item.update } end |