Class: GGLib::Themes::SolidTheme
- Inherits:
-
DrawnTheme
- Object
- GGLib::Theme
- DrawnTheme
- GGLib::Themes::SolidTheme
- Defined in:
- lib/ext/themes.rb
Overview
–
SOLID THEME #
++
Instance Attribute Summary
Attributes inherited from DrawnTheme
Attributes inherited from GGLib::Theme
Instance Method Summary collapse
- #draw ⇒ Object
-
#initialize(color) ⇒ SolidTheme
constructor
A new instance of SolidTheme.
Methods inherited from DrawnTheme
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
#draw ⇒ Object
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 |