Method: Core::GUI::Container#draw

Defined in:
lib/gui/base.rb

#drawObject



202
203
204
205
206
207
208
209
210
211
# File 'lib/gui/base.rb', line 202

def draw
  @scrollbar.draw
  @bg.draw(@x+@xoff, @y+@yoff, Core::GUI_Z, (@w-24)/@bg.width.to_f, @h/@bg.height.to_f)
  @items.each { |item|
    if item.y + item.yoff + item.h < @scrollbar.y + @scrollbar.yoff
      next
    end
    item.draw
  }
end