Class: GGLib::Themes::SolidTheme

Inherits:
DrawnTheme show all
Defined in:
lib/ext/themes.rb

Overview

SOLID THEME                              #

++

Instance Attribute Summary

Attributes inherited from DrawnTheme

#font

Attributes inherited from GGLib::Theme

#name

Instance Method Summary collapse

Methods inherited from DrawnTheme

#height, #newInstance, #width

Methods inherited from GGLib::Theme

#height, #request, #setDefaultState, #setDownState, #setOverState, #width

Constructor Details

#initialize(color) ⇒ SolidTheme

Returns a new instance of SolidTheme.



403
404
405
406
407
# File 'lib/ext/themes.rb', line 403

def initialize(color)
  font = DefaultFontGroup
  super("Solid.Generic", font)
  @color = color
end

Instance Method Details

#drawObject



408
409
410
# File 'lib/ext/themes.rb', line 408

def draw 
  $window.draw_quad(x1, y1, @color, x2, y1, @color, x1, y2, @color, x2, y2, @color, ZOrder::Widget) 
end