# File gglib/ext/widgets.rb, line 238 def initialize(name, x, y, len=12, theme=Themes::blank, w=nil,height=nil) if width!=nil and height!=nil super(name, x, y, x+w, y+h, theme) else @theme = theme.newInstance(self) #Get specialized instance early @theme.setCoords(1,1,1,1) super(name, x, y, x+@theme.width, y+@theme.height, theme) @theme.setCoords(@x1, @y1, @x2, @y2) end @textinput=Gosu::TextInput.new @offsety=((@theme.height-@theme.font.editable.height)/2).floor @maxlength=len @x=x @y=y @drawcursor=0 @realwidth=@x + TextPadding end