Class: GGLib::DrawnTheme
Direct Known Subclasses
Themes::RubygooLabelTheme, Themes::RubygooTextTheme, Themes::RubygooTheme, Themes::ShadeCheckGenCTheme, Themes::ShadeCheckGenTheme, Themes::ShadeLabelTheme, Themes::ShadeTheme, Themes::SolidTheme
Instance Attribute Summary collapse
-
#font ⇒ Object
readonly
Returns the value of attribute font.
Attributes inherited from Theme
Instance Method Summary collapse
- #draw(x1, y1, x2, y2, state) ⇒ Object
- #height ⇒ Object
-
#initialize(name, font) ⇒ DrawnTheme
constructor
A new instance of DrawnTheme.
- #newInstance(obj) ⇒ Object
- #width ⇒ Object
Methods inherited from Theme
#request, #setDefaultState, #setDownState, #setOverState
Constructor Details
#initialize(name, font) ⇒ DrawnTheme
Returns a new instance of DrawnTheme.
38 39 40 41 |
# File 'lib/theme.rb', line 38 def initialize(name, font) @name = name @font = font end |
Instance Attribute Details
#font ⇒ Object (readonly)
Returns the value of attribute font.
37 38 39 |
# File 'lib/theme.rb', line 37 def font @font end |
Instance Method Details
#draw(x1, y1, x2, y2, state) ⇒ Object
51 52 |
# File 'lib/theme.rb', line 51 def draw(x1, y1, x2, y2, state) end |
#height ⇒ Object
48 49 50 |
# File 'lib/theme.rb', line 48 def height return 50 end |
#newInstance(obj) ⇒ Object
42 43 44 |
# File 'lib/theme.rb', line 42 def newInstance(obj) return DrawnThemeInstance.new(self, obj) end |
#width ⇒ Object
45 46 47 |
# File 'lib/theme.rb', line 45 def width return 200 end |