Class: Smagacor::CategoryShutterItem
- Defined in:
- lib/smagacor/smagacor-ui.rb
Overview
Widget for creating category shutter items easily.
Instance Method Summary collapse
-
#initialize(p, text, icon = nil, opts = 0) ⇒ CategoryShutterItem
constructor
Create a new category shutter item for category
textwithicon.
Constructor Details
#initialize(p, text, icon = nil, opts = 0) ⇒ CategoryShutterItem
Create a new category shutter item for category text with icon.
65 66 67 68 69 70 71 |
# File 'lib/smagacor/smagacor-ui.rb', line 65 def initialize( p, text, icon=nil, opts=0 ) super( p, text, icon, opts|LAYOUT_FILL_X|LAYOUT_TOP|LAYOUT_LEFT, 0, 0, 0, 0, 10, 10, 10, 10, 10, 10 ) .padTop = 2 .padBottom = 2 self.helpText = text self.tipText = text end |