forked from larskanis/fxruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FXColorSelector.rb
executable file
·65 lines (58 loc) · 1.65 KB
/
FXColorSelector.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
module Fox
# 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
class FXColorSelector < FXPacker
# The "Accept" button {FXButton}
attr_reader :acceptButton
# The "Cancel" button {FXButton}
attr_reader :cancelButton
# The color {FXColor}
attr_accessor :rgba
# Only opaque colors allowed [Boolean]
attr_writer :opaqueOnly
# Construct a new color selector
def initialize(parent, target=nil, selector=0, opts=0, x=0, y=0, width=0, height=0) # :yields: theColorSelector
end
# Return +true+ if only opaque colors allowed
def opaqueOnly?() ; end
end
end