Class: GGLib::DrawnTheme
Instance Attribute Summary collapse
Attributes inherited from Theme
#name
Instance Method Summary
collapse
Methods inherited from Theme
#request, #setDefaultState, #setDownState, #setOverState
Constructor Details
#initialize(name, font) ⇒ 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
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
|