Class: Fox::FXColorList

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

Overview

Displays a list of colors

Instance Attribute Summary

Attributes inherited from FXList

#anchorItem, #currentItem, #cursorItem, #font, #helpText, #listStyle, #numItems, #numVisible, #selBackColor, #selTextColor, #textColor

Attributes inherited from FXScrollArea

#contentHeight, #contentWidth, #horizontalScrollBar, #scrollStyle, #verticalScrollBar, #viewportHeight, #viewportWidth, #xPosition, #yPosition

Attributes inherited from FXWindow

#accelTable, #backColor, #defaultCursor, #dragCursor, #first, #focus, #key, #last, #layoutHints, #next, #numChildren, #owner, #parent, #prev, #root, #selector, #shell, #target, #x, #y

Attributes inherited from FXDrawable

#height, #visual, #width

Attributes inherited from FXId

#app, #userData, #xid

Instance Method Summary collapse

Methods inherited from FXList

#clearItems, #deselectItem, #disableItem, #each, #enableItem, #extendSelection, #extractItem, #findItem, #findItemByData, #first, #getItem, #getItemAt, #getItemData, #getItemHeight, #getItemIcon, #getItemText, #getItemWidth, #hitItem, #itemCurrent?, #itemEnabled?, #itemSelected?, #itemVisible?, #killSelection, #makeItemVisible, #moveItem, #removeItem, #selectItem, #setCurrentItem, #setItem, #setItemData, #setItemIcon, #setItemText, #sortItems, #toggleItem, #updateItem

Methods inherited from FXScrollArea

#horizontalScrollable?, #position, #scrollCorner, #setPosition, #verticalScrollable?

Methods inherited from FXComposite

#maxChildHeight, #maxChildWidth

Methods inherited from FXWindow

#acceptDrop, #acquireClipboard, #acquireSelection, #active?, #addHotKey, #after?, after?, #before?, before?, #beginDrag, #canFocus?, #changeFocus, #childAtIndex, #childOf?, #children, #clearDragRectangle, #clearShape, colorType, colorTypeName, commonAncestor, #composeContext, #composite?, #contains?, #containsChild?, #create, #createComposeContext, #cursorPosition, #default?, #defaultHeight, #defaultWidth, deleteType, deleteTypeName, #destroy, #destroyComposeContext, #detach, #didAccept, #disable, #doesSaveUnder?, #dragging?, #dropDisable, #dropEnable, #dropEnabled?, #dropFinished, #dropTarget?, #each_child, #each_child_recursive, #enable, #enabled?, #endDrag, #forceRefresh, #getChildAt, #getDNDData, #getHeightForWidth, #getWidthForHeight, #grab, #grabKeyboard, #grabbed?, #grabbedKeyboard?, #handleDrag, #hasClipboard?, #hasFocus?, #hasSelection?, #height, #height=, #hide, imageType, #inFocusChain?, #indexOfChild, #initial?, #inquireDNDAction, #inquireDNDTypes, #killFocus, #layout, #linkAfter, #linkBefore, #lower, #move, octetType, octetTypeName, #offeredDNDType?, #position, #raiseWindow, #recalc, #releaseClipboard, #releaseSelection, #remHotKey, #removeChild, #repaint, #reparent, #resize, #scroll, #setCursorPosition, #setDNDData, #setDefault, #setDragRectangle, #setFocus, #setInitial, #setShape, #shell?, #show, #shown?, stringType, textType, textTypeName, #tr, #translateCoordinatesFrom, #translateCoordinatesTo, #underCursor?, #ungrab, #ungrabKeyboard, #update, urilistType, urilistTypeName, utf16Type, utf16TypeName, utf8Type, utf8TypeName, #visible=, #width, #width=

Methods included from Responder2

#connect

Methods inherited from FXDrawable

#resize

Methods inherited from FXId

#create, #created?, #destroy, #detach, #runOnUiThread

Methods inherited from FXObject

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

Constructor Details

#initialize(p, target = nil, selector = 0, opts = LIST_BROWSESELECT, x = 0, y = 0, width = 0, height = 0) ⇒ FXColorList

Return an initially empty list of colors.



19
20
# File 'rdoc-sources/FXColorList.rb', line 19

def initialize(p, target=nil, selector=0, opts=LIST_BROWSESELECT, x=0, y=0, width=0, height=0) # :yields: theColorList
end

Instance Method Details

#appendItem(text, color = 0, ptr = nil, notify = false) ⇒ Object

Append new item with given text, color, and user-data pointer



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

def appendItem(text, color=0, ptr=nil, notify=false); end

#fillItems(strings, colors = nil, ptr = nil, notify = false) ⇒ Object

Fill list by appending color items from array of strings and array of colors.



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

def fillItems(strings, colors=nil, ptr=nil, notify=false); end

#getItemColor(index) ⇒ Object

Return item color for the item at index. Raises IndexError if index is out of bounds.



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

def getItemColor(index); end

#insertItem(index, text, color = 0, ptr = nil, notify = false) ⇒ Object

Insert item at index with given text, color, and user-data pointer



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

def insertItem(index, text, color=0, ptr=nil, notify=false); end

#prependItem(text, color = 0, ptr = nil, notify = false) ⇒ Object

Prepend new item with given text, color, and user-data pointer



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

def prependItem(text, color=0, ptr=nil, notify=false); end

#setItemColor(index, color) ⇒ Object

Change item color for the item at index. Raises IndexError if index is out of bounds.



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

def setItemColor(index, color); end