Class: Smagacor::CategoryShutterItem

Inherits:
FXShutterItem
  • Object
show all
Defined in:
lib/smagacor/smagacor-ui.rb

Overview

Widget for creating category shutter items easily.

Instance Method Summary collapse

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 )
  button.padTop = 2
  button.padBottom = 2
  self.helpText = text
  self.tipText = text
end