Class: Fox::FXColorSelector
- Inherits:
-
FXPacker
- Object
- FXObject
- FXId
- FXDrawable
- FXWindow
- FXComposite
- FXPacker
- Fox::FXColorSelector
- Defined in:
- rdoc-sources/FXColorSelector.rb
Overview
Color selection widget
Events
The following messages are sent by FXColorSelector to its target:
SEL_CHANGED
-
sent continuously, while the color is changing
SEL_COMMAND
-
sent when the new color is set
Message identifiers
ID_CUSTOM_FIRST
-
x
ID_CUSTOM_LAST
-
x
ID_RGB_RED_SLIDER
-
x
ID_RGB_GREEN_SLIDER
-
x
ID_RGB_BLUE_SLIDER
-
x
ID_RGB_RED_TEXT
-
x
ID_RGB_GREEN_TEXT
-
x
ID_RGB_BLUE_TEXT
-
x
ID_HSV_HUE_SLIDER
-
x
ID_HSV_SATURATION_SLIDER
-
x
ID_HSV_VALUE_SLIDER
-
x
ID_HSV_HUE_TEXT
-
x
ID_HSV_SATURATION_TEXT
-
x
ID_HSV_VALUE_TEXT
-
x
ID_CMY_CYAN_SLIDER
-
x
ID_CMY_MAGENTA_SLIDER
-
x
ID_CMY_YELLOW_SLIDER
-
x
ID_CMY_CYAN_TEXT
-
x
ID_CMY_MAGENTA_TEXT
-
x
ID_CMY_YELLOW_TEXT
-
x
ID_DIAL_WHEEL
-
x
ID_COLOR_BAR
-
x
ID_COLOR_LIST
-
x
ID_WELL_CHANGED
-
x
ID_COLOR
-
x
ID_ACTIVEPANE
-
x
ID_ALPHA_SLIDER
-
x
ID_ALPHA_TEXT
-
x
ID_ALPHA_LABEL
-
x
ID_COLORPICK
-
x
Instance Attribute Summary collapse
-
#acceptButton ⇒ Object
readonly
The “Accept” button FXButton.
-
#cancelButton ⇒ Object
readonly
The “Cancel” button FXButton.
-
#opaqueOnly ⇒ Object
writeonly
Only opaque colors allowed [Boolean].
-
#rgba ⇒ Object
The color FXColor.
Attributes inherited from FXPacker
#baseColor, #borderColor, #borderWidth, #frameStyle, #hSpacing, #hiliteColor, #packingHints, #padBottom, #padLeft, #padRight, #padTop, #shadowColor, #vSpacing
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
Attributes inherited from FXId
Instance Method Summary collapse
-
#initialize(parent, target = nil, selector = 0, opts = 0, x = 0, y = 0, width = 0, height = 0) ⇒ FXColorSelector
constructor
Construct a new color selector.
-
#opaqueOnly? ⇒ Boolean
Return
true
if only opaque colors allowed.
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
Methods inherited from FXDrawable
Methods inherited from FXId
#create, #created?, #destroy, #detach, #runOnUiThread
Methods inherited from FXObject
#bind, #handle, #load, #save, subclasses
Constructor Details
#initialize(parent, target = nil, selector = 0, opts = 0, x = 0, y = 0, width = 0, height = 0) ⇒ FXColorSelector
Construct a new color selector
59 60 |
# File 'rdoc-sources/FXColorSelector.rb', line 59 def initialize(parent, target=nil, selector=0, opts=0, x=0, y=0, width=0, height=0) # :yields: theColorSelector end |
Instance Attribute Details
#acceptButton ⇒ Object (readonly)
The “Accept” button Fox::FXButton
47 48 49 |
# File 'rdoc-sources/FXColorSelector.rb', line 47 def acceptButton @acceptButton end |
#cancelButton ⇒ Object (readonly)
The “Cancel” button Fox::FXButton
50 51 52 |
# File 'rdoc-sources/FXColorSelector.rb', line 50 def cancelButton @cancelButton end |
#opaqueOnly=(value) ⇒ Object (writeonly)
Only opaque colors allowed [Boolean]
56 57 58 |
# File 'rdoc-sources/FXColorSelector.rb', line 56 def opaqueOnly=(value) @opaqueOnly = value end |
#rgba ⇒ Object
The color Fox::FXColor
53 54 55 |
# File 'rdoc-sources/FXColorSelector.rb', line 53 def rgba @rgba end |
Instance Method Details
#opaqueOnly? ⇒ Boolean
Return true
if only opaque colors allowed
63 |
# File 'rdoc-sources/FXColorSelector.rb', line 63 def opaqueOnly?() ; end |