Sha256: 7e7fe9067e4d15d9452ed02f96b8147f14dd5572409d5e37ed0326fc1e89ce56

Contents?: true

Size: 1.43 KB

Versions: 37

Compression:

Stored size: 1.43 KB

Contents

module Fox
  # Color item
  class FXColorItem < FXListItem
    # Item color [FXColor]
    attr_accessor :color
    
    # Return a new color item, initialized with the given text, color and
    # user data.
    def initialize(text, clr, data=nil) # :yields: theColorItem
    end
  end
  
  # Displays a list of colors
  class FXColorList < FXList

    #
    # Return an initially empty list of colors.
    #
    def initialize(p, target=nil, selector=0, opts=LIST_BROWSESELECT, x=0, y=0, width=0, height=0) # :yields: theColorList
    end

    #
    # Fill list by appending color items from array of strings and array of colors.
    #
    def fillItems(strings, colors=nil, ptr=nil, notify=false); end

    #
    # Insert item at index with given text, color, and user-data pointer
    #
    def insertItem(index, text, color=0, ptr=nil, notify=false); end

    #
    # Append new item with given text, color, and user-data pointer
    #
    def appendItem(text, color=0, ptr=nil, notify=false); end

    #
    # Prepend new item with given text, color, and user-data pointer
    #
    def prependItem(text, color=0, ptr=nil, notify=false); end

    #
    # Change item color for the item at _index_.
    # Raises IndexError if _index_ is out of bounds.
    #
    def setItemColor(index, color); end

    #
    # Return item color for the item at _index_.
    # Raises IndexError if _index_ is out of bounds.
    #
    def getItemColor(index); end
  end
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
fxruby-1.6.22.pre2-x86-mingw32 rdoc-sources/FXColorList.rb
fxruby-1.6.22.pre2 rdoc-sources/FXColorList.rb
fxrubi-1.6.22.pre1-x86-mingw32 rdoc-sources/FXColorList.rb
fxrubi-1.6.22.pre1 rdoc-sources/FXColorList.rb
fxruby-1.6.20-x86-mingw32 rdoc-sources/FXColorList.rb
fxruby-1.6.20-x86-linux rdoc-sources/FXColorList.rb
fxruby-1.6.20 rdoc-sources/FXColorList.rb
fxruby-1.6.20-universal-darwin-10 rdoc-sources/FXColorList.rb
fxruby-1.6.19-x86-mingw32 rdoc-sources/FXColorList.rb
fxruby-1.6.14-mswin32 rdoc-sources/FXColorList.rb
fxruby-1.6.13-mswin32 rdoc-sources/FXColorList.rb
fxruby-1.6.10 rdoc-sources/FXColorList.rb
fxruby-1.6.11 rdoc-sources/FXColorList.rb
fxruby-1.6.12 rdoc-sources/FXColorList.rb
fxruby-1.6.13 rdoc-sources/FXColorList.rb
fxruby-1.6.14-universal-darwin-9 rdoc-sources/FXColorList.rb
fxruby-1.6.15-universal-darwin-9 rdoc-sources/FXColorList.rb
fxruby-1.6.14 rdoc-sources/FXColorList.rb
fxruby-1.6.15 rdoc-sources/FXColorList.rb
fxruby-1.6.15-x86-mswin32-60 rdoc-sources/FXColorList.rb