# rbGooey. -- Game GUI library to be used with rubygame
# Copyright (C) 2006 Han 'kiba' Dao
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#This is class TextSprite which deal with text rect information
class TextSprite
attr_accessor :rect
def initialize textrender_obj
@text = textrender_obj
@rect = rect
setup
end
def setup
@rect = []
end
def add x , y , render
@rect << Rubygame::Rect.new(x,y,*render.size)
end
end