Class: Fox::FXColorItem

Inherits:
FXListItem show all
Defined in:
rdoc-sources/FXColorList.rb

Overview

Color item

Instance Attribute Summary collapse

Attributes inherited from FXListItem

#data, #draggable, #enabled, #focus, #icon, #selected, #text

Instance Method Summary collapse

Methods inherited from FXListItem

#<=>, #create, #destroy, #detach, #draggable?, #enabled?, #getHeight, #getWidth, #hasFocus?, #selected?, #to_s

Methods inherited from FXObject

#bind, #handle, #load, #save, subclasses

Constructor Details

#initialize(text, clr, data = nil) ⇒ FXColorItem

Return a new color item, initialized with the given text, color and user data.



9
10
# File 'rdoc-sources/FXColorList.rb', line 9

def initialize(text, clr, data=nil) # :yields: theColorItem
end

Instance Attribute Details

#colorObject

Item color Fox::FXColor



5
6
7
# File 'rdoc-sources/FXColorList.rb', line 5

def color
  @color
end