Sha256: 1ff438db32feafe166b68905fc589ca3220f14fdf0b3624fa5d1b55a43445dac

Contents?: true

Size: 1.41 KB

Versions: 5

Compression:

Stored size: 1.41 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, tgt=nil, sel=0, opts=LIST_BROWSESELECT, x=0, y=0, w=0, h=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

5 entries across 5 versions & 1 rubygems

Version Path
fxruby-1.6.0 rdoc-sources/FXColorList.rb
fxruby-1.6.1 rdoc-sources/FXColorList.rb
fxruby-1.6.2 rdoc-sources/FXColorList.rb
fxruby-1.6.3 rdoc-sources/FXColorList.rb
fxruby-1.6.4 rdoc-sources/FXColorList.rb