fxruby 1.6.22 → 1.6.23
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +14 -0
- data/.yardopts +8 -0
- data/History.txt +6 -0
- data/Manifest.txt +317 -24
- data/README.git +3 -0
- data/README.rdoc +537 -0
- data/Rakefile +62 -46
- data/Rakefile.cross +397 -0
- data/doap.rdf +3 -3
- data/doap.rdf.erb +87 -0
- data/examples/WhatAQuietStiff.rb +356 -0
- data/examples/canvasdemo.rb +88 -0
- data/examples/gdchart.rb +76 -0
- data/examples/gembrowser.rb +289 -0
- data/examples/rmagick.rb +44 -0
- data/lib/fox16/canvas.rb +606 -0
- data/lib/fox16/irb.rb +1 -0
- data/lib/fox16/splashscreen.rb +1 -0
- data/lib/fox16/tkcompat.rb +56 -0
- data/lib/fox16/version.rb +1 -1
- data/rdoc-sources/FX4Splitter.rb +44 -44
- data/rdoc-sources/FX7Segment.rb +3 -3
- data/rdoc-sources/FXAccelTable.rb +1 -1
- data/rdoc-sources/FXApp.rb +51 -51
- data/rdoc-sources/FXArrowButton.rb +6 -6
- data/rdoc-sources/FXBMPIcon.rb +12 -12
- data/rdoc-sources/FXBMPImage.rb +6 -6
- data/rdoc-sources/FXBitmap.rb +9 -9
- data/rdoc-sources/FXBitmapFrame.rb +3 -3
- data/rdoc-sources/FXBitmapView.rb +12 -12
- data/rdoc-sources/FXButton.rb +5 -5
- data/rdoc-sources/FXCanvas.rb +4 -4
- data/rdoc-sources/FXCheckButton.rb +7 -7
- data/rdoc-sources/FXChoiceBox.rb +16 -16
- data/rdoc-sources/FXColorBar.rb +9 -9
- data/rdoc-sources/FXColorDialog.rb +4 -4
- data/rdoc-sources/FXColorList.rb +1 -1
- data/rdoc-sources/FXColorRing.rb +4 -4
- data/rdoc-sources/FXColorSelector.rb +38 -38
- data/rdoc-sources/FXColorWell.rb +15 -15
- data/rdoc-sources/FXColorWheel.rb +8 -8
- data/rdoc-sources/FXComboBox.rb +24 -24
- data/rdoc-sources/FXCursor.rb +12 -12
- data/rdoc-sources/FXDC.rb +176 -176
- data/rdoc-sources/FXDCPrint.rb +20 -20
- data/rdoc-sources/FXDCWindow.rb +2 -2
- data/rdoc-sources/FXDataTarget.rb +1 -1
- data/rdoc-sources/FXDebugTarget.rb +1 -1
- data/rdoc-sources/FXDelegator.rb +2 -2
- data/rdoc-sources/FXDial.rb +9 -9
- data/rdoc-sources/FXDialogBox.rb +3 -3
- data/rdoc-sources/FXDict.rb +2 -3
- data/rdoc-sources/FXDirBox.rb +2 -2
- data/rdoc-sources/FXDirList.rb +14 -14
- data/rdoc-sources/FXDirSelector.rb +14 -14
- data/rdoc-sources/FXDockBar.rb +35 -35
- data/rdoc-sources/FXDockHandler.rb +2 -2
- data/rdoc-sources/FXDockSite.rb +11 -11
- data/rdoc-sources/FXDockTitle.rb +2 -2
- data/rdoc-sources/FXDocument.rb +2 -2
- data/rdoc-sources/FXDragCorner.rb +2 -2
- data/rdoc-sources/FXDrawable.rb +5 -5
- data/rdoc-sources/FXDriveBox.rb +3 -3
- data/rdoc-sources/FXFileDialog.rb +24 -24
- data/rdoc-sources/FXFileDict.rb +11 -11
- data/rdoc-sources/FXFileList.rb +25 -25
- data/rdoc-sources/FXFileSelector.rb +31 -31
- data/rdoc-sources/FXFileStream.rb +3 -3
- data/rdoc-sources/FXFoldingList.rb +76 -76
- data/rdoc-sources/FXFont.rb +133 -133
- data/rdoc-sources/FXFontDialog.rb +1 -1
- data/rdoc-sources/FXFontSelector.rb +14 -14
- data/rdoc-sources/FXFrame.rb +5 -5
- data/rdoc-sources/FXGIFCursor.rb +6 -6
- data/rdoc-sources/FXGIFIcon.rb +6 -6
- data/rdoc-sources/FXGIFImage.rb +5 -5
- data/rdoc-sources/FXGLContext.rb +1 -1
- data/rdoc-sources/FXGLObject.rb +8 -8
- data/rdoc-sources/FXGLShape.rb +23 -23
- data/rdoc-sources/FXGLViewer.rb +51 -51
- data/rdoc-sources/FXGLVisual.rb +1 -0
- data/rdoc-sources/FXGradientBar.rb +31 -31
- data/rdoc-sources/FXGroupBox.rb +6 -6
- data/rdoc-sources/FXHeader.rb +30 -33
- data/rdoc-sources/FXHorizontalFrame.rb +12 -12
- data/rdoc-sources/FXICOIcon.rb +14 -14
- data/rdoc-sources/FXICOImage.rb +5 -5
- data/rdoc-sources/FXIcon.rb +7 -7
- data/rdoc-sources/FXIconDict.rb +1 -0
- data/rdoc-sources/FXIconList.rb +60 -60
- data/rdoc-sources/FXId.rb +1 -1
- data/rdoc-sources/FXImage.rb +49 -49
- data/rdoc-sources/FXImageFrame.rb +12 -12
- data/rdoc-sources/FXImageView.rb +10 -10
- data/rdoc-sources/FXInputDialog.rb +4 -4
- data/rdoc-sources/FXJPGIcon.rb +13 -13
- data/rdoc-sources/FXJPGImage.rb +5 -5
- data/rdoc-sources/FXKnob.rb +12 -12
- data/rdoc-sources/FXLabel.rb +3 -3
- data/rdoc-sources/FXList.rb +31 -31
- data/rdoc-sources/FXListBox.rb +7 -7
- data/rdoc-sources/FXMDIChild.rb +24 -24
- data/rdoc-sources/FXMDIClient.rb +1 -1
- data/rdoc-sources/FXMatrix.rb +2 -2
- data/rdoc-sources/FXMemoryBuffer.rb +1 -1
- data/rdoc-sources/FXMemoryStream.rb +1 -1
- data/rdoc-sources/FXMenuButton.rb +20 -19
- data/rdoc-sources/FXMenuCaption.rb +9 -9
- data/rdoc-sources/FXMenuCascade.rb +1 -1
- data/rdoc-sources/FXMenuCheck.rb +2 -2
- data/rdoc-sources/FXMenuCommand.rb +1 -1
- data/rdoc-sources/FXMenuRadio.rb +2 -2
- data/rdoc-sources/FXMenuSeparator.rb +2 -2
- data/rdoc-sources/FXMenuTitle.rb +5 -5
- data/rdoc-sources/FXMessageBox.rb +16 -16
- data/rdoc-sources/FXOptionMenu.rb +14 -14
- data/rdoc-sources/FXPCXIcon.rb +12 -12
- data/rdoc-sources/FXPCXImage.rb +5 -5
- data/rdoc-sources/FXPNGIcon.rb +12 -12
- data/rdoc-sources/FXPNGImage.rb +5 -5
- data/rdoc-sources/FXPPMIcon.rb +6 -6
- data/rdoc-sources/FXPPMImage.rb +5 -5
- data/rdoc-sources/FXPacker.rb +4 -4
- data/rdoc-sources/FXPopup.rb +5 -5
- data/rdoc-sources/FXPrintDialog.rb +21 -21
- data/rdoc-sources/FXProgressBar.rb +10 -10
- data/rdoc-sources/FXProgressDialog.rb +3 -3
- data/rdoc-sources/FXQuatd.rb +19 -19
- data/rdoc-sources/FXQuatf.rb +23 -23
- data/rdoc-sources/FXRGBIcon.rb +13 -13
- data/rdoc-sources/FXRGBImage.rb +5 -5
- data/rdoc-sources/FXRadioButton.rb +10 -10
- data/rdoc-sources/FXRanged.rb +2 -2
- data/rdoc-sources/FXRangef.rb +2 -2
- data/rdoc-sources/FXRealSlider.rb +33 -33
- data/rdoc-sources/FXRealSpinner.rb +31 -31
- data/rdoc-sources/FXRecentFiles.rb +14 -14
- data/rdoc-sources/FXRectangle.rb +22 -22
- data/rdoc-sources/FXRegistry.rb +3 -3
- data/rdoc-sources/FXReplaceDialog.rb +20 -20
- data/rdoc-sources/FXRootWindow.rb +2 -2
- data/rdoc-sources/FXRuler.rb +28 -28
- data/rdoc-sources/FXRulerView.rb +5 -5
- data/rdoc-sources/FXScrollArea.rb +27 -27
- data/rdoc-sources/FXScrollBar.rb +26 -26
- data/rdoc-sources/FXScrollPane.rb +3 -3
- data/rdoc-sources/FXScrollWindow.rb +6 -6
- data/rdoc-sources/FXSearchDialog.rb +8 -8
- data/rdoc-sources/FXSeparator.rb +24 -24
- data/rdoc-sources/FXSettings.rb +44 -44
- data/rdoc-sources/FXShutter.rb +35 -35
- data/rdoc-sources/FXSize.rb +14 -14
- data/rdoc-sources/FXSlider.rb +33 -33
- data/rdoc-sources/FXSphered.rb +2 -2
- data/rdoc-sources/FXSpheref.rb +2 -2
- data/rdoc-sources/FXSpinner.rb +30 -30
- data/rdoc-sources/FXSplashWindow.rb +5 -5
- data/rdoc-sources/FXSplitter.rb +18 -18
- data/rdoc-sources/FXSpring.rb +15 -15
- data/rdoc-sources/FXStatusBar.rb +14 -14
- data/rdoc-sources/FXStatusLine.rb +7 -7
- data/rdoc-sources/FXStream.rb +20 -20
- data/rdoc-sources/FXSwitcher.rb +23 -23
- data/rdoc-sources/FXTGAIcon.rb +12 -12
- data/rdoc-sources/FXTGAImage.rb +5 -5
- data/rdoc-sources/FXTIFIcon.rb +13 -13
- data/rdoc-sources/FXTIFImage.rb +5 -5
- data/rdoc-sources/FXTabBar.rb +31 -31
- data/rdoc-sources/FXTabBook.rb +13 -13
- data/rdoc-sources/FXTabItem.rb +22 -22
- data/rdoc-sources/FXTable.rb +148 -148
- data/rdoc-sources/FXText.rb +91 -91
- data/rdoc-sources/FXTextField.rb +39 -39
- data/rdoc-sources/FXToggleButton.rb +32 -32
- data/rdoc-sources/FXToolBar.rb +25 -25
- data/rdoc-sources/FXToolBarGrip.rb +12 -12
- data/rdoc-sources/FXToolBarShell.rb +13 -13
- data/rdoc-sources/FXToolBarTab.rb +16 -16
- data/rdoc-sources/FXTopWindow.rb +18 -18
- data/rdoc-sources/FXTranslator.rb +1 -1
- data/rdoc-sources/FXTreeList.rb +66 -66
- data/rdoc-sources/FXTreeListBox.rb +20 -20
- data/rdoc-sources/FXTriStateButton.rb +23 -23
- data/rdoc-sources/FXVec2d.rb +1 -1
- data/rdoc-sources/FXVec2f.rb +1 -1
- data/rdoc-sources/FXVec3d.rb +1 -1
- data/rdoc-sources/FXVec3f.rb +1 -1
- data/rdoc-sources/FXVec4d.rb +1 -1
- data/rdoc-sources/FXVec4f.rb +1 -1
- data/rdoc-sources/FXVerticalFrame.rb +12 -12
- data/rdoc-sources/FXVisual.rb +19 -19
- data/rdoc-sources/FXWindow.rb +96 -96
- data/rdoc-sources/FXWizard.rb +9 -9
- data/rdoc-sources/FXXBMIcon.rb +7 -7
- data/rdoc-sources/FXXBMImage.rb +6 -6
- data/rdoc-sources/FXXPMIcon.rb +13 -13
- data/rdoc-sources/FXXPMImage.rb +5 -5
- data/rdoc-sources/Makefile +3 -3
- metadata +44 -31
- data/README +0 -39
- data/README.txt +0 -483
data/rdoc-sources/FXQuatd.rb
CHANGED
@@ -8,8 +8,8 @@ module Fox
|
|
8
8
|
#
|
9
9
|
# ==== Parameters:
|
10
10
|
#
|
11
|
-
# +axis+::
|
12
|
-
# +angle+::
|
11
|
+
# +axis+:: the rotation axis {FXVec3d}
|
12
|
+
# +angle+:: the rotation angle (in radians) [Float]
|
13
13
|
#
|
14
14
|
def initialize(axis, phi=0.0); end
|
15
15
|
|
@@ -18,10 +18,10 @@ module Fox
|
|
18
18
|
#
|
19
19
|
# ==== Parameters:
|
20
20
|
#
|
21
|
-
# +x+::
|
22
|
-
# +y+::
|
23
|
-
# +z+::
|
24
|
-
# +width+::
|
21
|
+
# +x+:: x [Float]
|
22
|
+
# +y+:: y [Float]
|
23
|
+
# +z+:: z [Float]
|
24
|
+
# +width+:: w [Float]
|
25
25
|
#
|
26
26
|
def initialize(x, y, z, w); end
|
27
27
|
|
@@ -33,9 +33,9 @@ module Fox
|
|
33
33
|
#
|
34
34
|
# ==== Parameters:
|
35
35
|
#
|
36
|
-
# +roll+::
|
37
|
-
# +pitch+::
|
38
|
-
# +yaw+::
|
36
|
+
# +roll+:: roll angle in radians [Float]
|
37
|
+
# +pitch+:: pitch angle in radians [Float]
|
38
|
+
# +yaw+:: yaw angle in radians [Float]
|
39
39
|
#
|
40
40
|
def initialize(roll, pitch, yaw); end
|
41
41
|
|
@@ -51,8 +51,8 @@ module Fox
|
|
51
51
|
#
|
52
52
|
# ==== Parameters:
|
53
53
|
#
|
54
|
-
# +axis+::
|
55
|
-
# +angle+::
|
54
|
+
# +axis+:: the rotation axis {FXVec3d}
|
55
|
+
# +angle+:: the rotation angle (in radians) [Float]
|
56
56
|
#
|
57
57
|
def setAxisAngle(axis, phi=0.0); end
|
58
58
|
|
@@ -71,9 +71,9 @@ module Fox
|
|
71
71
|
#
|
72
72
|
# ==== Parameters:
|
73
73
|
#
|
74
|
-
# +roll+::
|
75
|
-
# +pitch+::
|
76
|
-
# +yaw+::
|
74
|
+
# +roll+:: roll angle in radians [Float]
|
75
|
+
# +pitch+:: pitch angle in radians [Float]
|
76
|
+
# +yaw+:: yaw angle in radians [Float]
|
77
77
|
#
|
78
78
|
def setRollPitchYaw(roll, pitch, yaw); end
|
79
79
|
|
@@ -135,7 +135,7 @@ module Fox
|
|
135
135
|
#
|
136
136
|
# ==== Parameters:
|
137
137
|
#
|
138
|
-
# +vec+::
|
138
|
+
# +vec+:: the vector to be rotated {FXVec3d}
|
139
139
|
#
|
140
140
|
def *(vec); end
|
141
141
|
|
@@ -145,8 +145,8 @@ module Fox
|
|
145
145
|
#
|
146
146
|
# ==== Parameters:
|
147
147
|
#
|
148
|
-
# +a+::
|
149
|
-
# +b+::
|
148
|
+
# +a+:: {FXVec3d}
|
149
|
+
# +b+:: {FXVec3d}
|
150
150
|
#
|
151
151
|
def arc!(a, b); end
|
152
152
|
|
@@ -155,8 +155,8 @@ module Fox
|
|
155
155
|
#
|
156
156
|
# ==== Parameters:
|
157
157
|
#
|
158
|
-
# +u+::
|
159
|
-
# +v+::
|
158
|
+
# +u+:: {FXQuatd}
|
159
|
+
# +v+:: {FXQuatd}
|
160
160
|
# +f+:: [Float]
|
161
161
|
#
|
162
162
|
def lerp!(u, v, f); end
|
data/rdoc-sources/FXQuatf.rb
CHANGED
@@ -8,8 +8,8 @@ module Fox
|
|
8
8
|
#
|
9
9
|
# ==== Parameters:
|
10
10
|
#
|
11
|
-
# +axis+::
|
12
|
-
# +angle+::
|
11
|
+
# +axis+:: the rotation axis {FXVec3f}
|
12
|
+
# +angle+:: the rotation angle (in radians) [Float]
|
13
13
|
#
|
14
14
|
def initialize(axis, phi=0.0); end
|
15
15
|
|
@@ -18,9 +18,9 @@ module Fox
|
|
18
18
|
#
|
19
19
|
# ==== Parameters:
|
20
20
|
#
|
21
|
-
# +roll+::
|
22
|
-
# +pitch+::
|
23
|
-
# +yaw+::
|
21
|
+
# +roll+:: roll angle in radians [Float]
|
22
|
+
# +pitch+:: pitch angle in radians [Float]
|
23
|
+
# +yaw+:: yaw angle in radians [Float]
|
24
24
|
#
|
25
25
|
def initialize(roll, pitch, yaw); end
|
26
26
|
|
@@ -29,9 +29,9 @@ module Fox
|
|
29
29
|
#
|
30
30
|
# ==== Parameters:
|
31
31
|
#
|
32
|
-
# +ex+::
|
33
|
-
# +ey+::
|
34
|
-
# +ez+::
|
32
|
+
# +ex+:: x-axis {FXVec3f}
|
33
|
+
# +ey+:: y-axis {FXVec3f}
|
34
|
+
# +ez+:: z-axis {FXVec3f}
|
35
35
|
#
|
36
36
|
def initialize(ex, ey, ez); end
|
37
37
|
|
@@ -45,10 +45,10 @@ module Fox
|
|
45
45
|
#
|
46
46
|
# ==== Parameters:
|
47
47
|
#
|
48
|
-
# +x+::
|
49
|
-
# +y+::
|
50
|
-
# +z+::
|
51
|
-
# +width+::
|
48
|
+
# +x+:: x [Float]
|
49
|
+
# +y+:: y [Float]
|
50
|
+
# +z+:: z [Float]
|
51
|
+
# +width+:: w [Float]
|
52
52
|
#
|
53
53
|
def initialize(x, y, z, w); end
|
54
54
|
|
@@ -60,8 +60,8 @@ module Fox
|
|
60
60
|
#
|
61
61
|
# ==== Parameters:
|
62
62
|
#
|
63
|
-
# +axis+::
|
64
|
-
# +angle+::
|
63
|
+
# +axis+:: the rotation axis {FXVec3f}
|
64
|
+
# +angle+:: the rotation angle (in radians) [Float]
|
65
65
|
#
|
66
66
|
def setAxisAngle(axis, phi=0.0); end
|
67
67
|
|
@@ -80,9 +80,9 @@ module Fox
|
|
80
80
|
#
|
81
81
|
# ==== Parameters:
|
82
82
|
#
|
83
|
-
# +roll+::
|
84
|
-
# +pitch+::
|
85
|
-
# +yaw+::
|
83
|
+
# +roll+:: roll angle in radians [Float]
|
84
|
+
# +pitch+:: pitch angle in radians [Float]
|
85
|
+
# +yaw+:: yaw angle in radians [Float]
|
86
86
|
#
|
87
87
|
def setRollPitchYaw(roll, pitch, yaw); end
|
88
88
|
|
@@ -144,7 +144,7 @@ module Fox
|
|
144
144
|
#
|
145
145
|
# ==== Parameters:
|
146
146
|
#
|
147
|
-
# +vec+::
|
147
|
+
# +vec+:: the vector to be rotated {FXVec3f}
|
148
148
|
#
|
149
149
|
def *(vec); end
|
150
150
|
|
@@ -154,8 +154,8 @@ module Fox
|
|
154
154
|
#
|
155
155
|
# ==== Parameters:
|
156
156
|
#
|
157
|
-
# +a+::
|
158
|
-
# +b+::
|
157
|
+
# +a+:: {FXVec3f}
|
158
|
+
# +b+:: {FXVec3f}
|
159
159
|
#
|
160
160
|
def arc!(a, b); end
|
161
161
|
|
@@ -164,9 +164,9 @@ module Fox
|
|
164
164
|
#
|
165
165
|
# ==== Parameters:
|
166
166
|
#
|
167
|
-
# +u+::
|
168
|
-
# +v+::
|
169
|
-
# +f+::
|
167
|
+
# +u+:: {FXQuatf}
|
168
|
+
# +v+:: {FXQuatf}
|
169
|
+
# +f+:: [Float]
|
170
170
|
#
|
171
171
|
def lerp!(u, v, f); end
|
172
172
|
end
|
data/rdoc-sources/FXRGBIcon.rb
CHANGED
@@ -18,12 +18,12 @@ module Fox
|
|
18
18
|
#
|
19
19
|
# ==== Parameters:
|
20
20
|
#
|
21
|
-
# +a+::
|
22
|
-
# +pix+::
|
23
|
-
# +clr+::
|
24
|
-
# +opts+::
|
25
|
-
# +width+::
|
26
|
-
# +height+::
|
21
|
+
# +a+:: an application instance {FXApp}
|
22
|
+
# +pix+:: a memory buffer formatted in IRIS RGB file format [String]
|
23
|
+
# +clr+:: transparency color {FXColor}
|
24
|
+
# +opts+:: options [Integer]
|
25
|
+
# +width+:: width [Integer]
|
26
|
+
# +height+:: height [Integer]
|
27
27
|
#
|
28
28
|
def initialize(a, pix=nil, clr=0, opts=0, width=1, height=1) # :yields: theRGBIcon
|
29
29
|
end
|
@@ -37,7 +37,7 @@ module Fox
|
|
37
37
|
#
|
38
38
|
# ==== Parameters:
|
39
39
|
#
|
40
|
-
# +store+::
|
40
|
+
# +store+:: stream from which to read the file data {FXStream}
|
41
41
|
#
|
42
42
|
def Fox.fxloadRGB(store); end
|
43
43
|
|
@@ -47,12 +47,12 @@ module Fox
|
|
47
47
|
#
|
48
48
|
# ==== Parameters:
|
49
49
|
#
|
50
|
-
# +store+::
|
51
|
-
# +data+::
|
52
|
-
# +transp+::
|
53
|
-
# +opts+::
|
54
|
-
# +width+::
|
55
|
-
# +height+::
|
50
|
+
# +store+:: stream to which to write the file data {FXStream}
|
51
|
+
# +data+:: the image pixel data [String]
|
52
|
+
# +transp+:: transparency color {FXColor}
|
53
|
+
# +opts+:: options [Integer]
|
54
|
+
# +width+:: width [Integer]
|
55
|
+
# +height+:: height [Integer]
|
56
56
|
#
|
57
57
|
def Fox.fxsaveRGB(store, data, transp, width, height); end
|
58
58
|
|
data/rdoc-sources/FXRGBImage.rb
CHANGED
@@ -18,11 +18,11 @@ module Fox
|
|
18
18
|
#
|
19
19
|
# ==== Parameters:
|
20
20
|
#
|
21
|
-
# +a+::
|
22
|
-
# +pix+::
|
23
|
-
# +opts+::
|
24
|
-
# +width+::
|
25
|
-
# +height+::
|
21
|
+
# +a+:: an application instance {FXApp}
|
22
|
+
# +pix+:: a memory buffer formatted in IRIS RGB file format [String]
|
23
|
+
# +opts+:: options [Integer]
|
24
|
+
# +width+:: width [Integer]
|
25
|
+
# +height+:: height [Integer]
|
26
26
|
#
|
27
27
|
def initialize(a, pix=nil, opts=0, width=1, height=1) # :yields: theRGBImage
|
28
28
|
end
|
@@ -14,17 +14,17 @@ module Fox
|
|
14
14
|
#
|
15
15
|
# The following messages are sent by FXRadioButton to its target:
|
16
16
|
#
|
17
|
-
# +SEL_COMMAND+::
|
18
|
-
# +SEL_KEYPRESS+::
|
19
|
-
# +SEL_KEYRELEASE+::
|
20
|
-
# +SEL_LEFTBUTTONPRESS+::
|
21
|
-
# +SEL_LEFTBUTTONRELEASE+::
|
17
|
+
# +SEL_COMMAND+:: sent when the radio button is pressed.
|
18
|
+
# +SEL_KEYPRESS+:: sent when a key goes down; the message data is an FXEvent instance.
|
19
|
+
# +SEL_KEYRELEASE+:: sent when a key goes up; the message data is an FXEvent instance.
|
20
|
+
# +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
|
21
|
+
# +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
|
22
22
|
#
|
23
23
|
# === RadioButton flags
|
24
24
|
#
|
25
|
-
# +RADIOBUTTON_AUTOGRAY+::
|
26
|
-
# +RADIOBUTTON_AUTOHIDE+::
|
27
|
-
# +RADIOBUTTON_NORMAL+::
|
25
|
+
# +RADIOBUTTON_AUTOGRAY+:: Automatically gray out when not updated
|
26
|
+
# +RADIOBUTTON_AUTOHIDE+:: Automatically hide when not updated
|
27
|
+
# +RADIOBUTTON_NORMAL+:: <tt>JUSTIFY_NORMAL|ICON_BEFORE_TEXT</tt>
|
28
28
|
#
|
29
29
|
class FXRadioButton < FXLabel
|
30
30
|
|
@@ -34,10 +34,10 @@ module Fox
|
|
34
34
|
# Radio button style [Integer]
|
35
35
|
attr_accessor :radioButtonStyle
|
36
36
|
|
37
|
-
# Radio ball color
|
37
|
+
# Radio ball color {FXColor}
|
38
38
|
attr_accessor :radioColor
|
39
39
|
|
40
|
-
# Radio disk color
|
40
|
+
# Radio disk color {FXColor}
|
41
41
|
attr_accessor :diskColor
|
42
42
|
|
43
43
|
#
|
data/rdoc-sources/FXRanged.rb
CHANGED
@@ -4,10 +4,10 @@ module Fox
|
|
4
4
|
#
|
5
5
|
class FXRanged
|
6
6
|
|
7
|
-
# Lower corner of range
|
7
|
+
# Lower corner of range {FXVec3d}
|
8
8
|
attr_accessor :lower
|
9
9
|
|
10
|
-
# Upper corner of range
|
10
|
+
# Upper corner of range {FXVec3d}
|
11
11
|
attr_accessor :upper
|
12
12
|
|
13
13
|
# Default constructor
|
data/rdoc-sources/FXRangef.rb
CHANGED
@@ -4,10 +4,10 @@ module Fox
|
|
4
4
|
#
|
5
5
|
class FXRangef
|
6
6
|
|
7
|
-
# Lower corner of range
|
7
|
+
# Lower corner of range {FXVec3f}
|
8
8
|
attr_accessor :lower
|
9
9
|
|
10
|
-
# Upper corner of range
|
10
|
+
# Upper corner of range {FXVec3f}
|
11
11
|
attr_accessor :upper
|
12
12
|
|
13
13
|
# Default constructor
|
@@ -9,12 +9,12 @@ module Fox
|
|
9
9
|
#
|
10
10
|
# The following messages are sent by FXRealSlider to its target:
|
11
11
|
#
|
12
|
-
# +SEL_KEYPRESS+::
|
13
|
-
# +SEL_KEYRELEASE+::
|
14
|
-
# +SEL_LEFTBUTTONPRESS+::
|
15
|
-
# +SEL_LEFTBUTTONRELEASE+::
|
16
|
-
# +SEL_MIDDLEBUTTONPRESS+::
|
17
|
-
# +SEL_MIDDLEBUTTONRELEASE+::
|
12
|
+
# +SEL_KEYPRESS+:: sent when a key goes down; the message data is an FXEvent instance.
|
13
|
+
# +SEL_KEYRELEASE+:: sent when a key goes up; the message data is an FXEvent instance.
|
14
|
+
# +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
|
15
|
+
# +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
|
16
|
+
# +SEL_MIDDLEBUTTONPRESS+:: sent when the middle mouse button goes down; the message data is an FXEvent instance.
|
17
|
+
# +SEL_MIDDLEBUTTONRELEASE+:: sent when the middle mouse button goes up; the message data is an FXEvent instance.
|
18
18
|
# +SEL_COMMAND+::
|
19
19
|
# sent at the end of a slider move; the message data is the new position of the slider (a Float).
|
20
20
|
# +SEL_CHANGED+::
|
@@ -23,23 +23,23 @@ module Fox
|
|
23
23
|
#
|
24
24
|
# === Real slider control styles
|
25
25
|
#
|
26
|
-
# +REALSLIDER_HORIZONTAL+::
|
27
|
-
# +REALSLIDER_VERTICAL+::
|
28
|
-
# +REALSLIDER_ARROW_UP+::
|
29
|
-
# +REALSLIDER_ARROW_DOWN+::
|
30
|
-
# +REALSLIDER_ARROW_LEFT+::
|
31
|
-
# +REALSLIDER_ARROW_RIGHT+::
|
32
|
-
# +REALSLIDER_INSIDE_BAR+::
|
33
|
-
# +REALSLIDER_TICKS_TOP+::
|
34
|
-
# +REALSLIDER_TICKS_BOTTOM+::
|
35
|
-
# +REALSLIDER_TICKS_LEFT+::
|
36
|
-
# +REALSLIDER_TICKS_RIGHT+::
|
37
|
-
# +REALSLIDER_NORMAL+::
|
26
|
+
# +REALSLIDER_HORIZONTAL+:: RealSlider shown horizontally
|
27
|
+
# +REALSLIDER_VERTICAL+:: RealSlider shown vertically
|
28
|
+
# +REALSLIDER_ARROW_UP+:: RealSlider has arrow head pointing up
|
29
|
+
# +REALSLIDER_ARROW_DOWN+:: RealSlider has arrow head pointing down
|
30
|
+
# +REALSLIDER_ARROW_LEFT+:: RealSlider has arrow head pointing left
|
31
|
+
# +REALSLIDER_ARROW_RIGHT+:: RealSlider has arrow head pointing right
|
32
|
+
# +REALSLIDER_INSIDE_BAR+:: RealSlider is inside the slot rather than overhanging
|
33
|
+
# +REALSLIDER_TICKS_TOP+:: Ticks on the top of horizontal slider
|
34
|
+
# +REALSLIDER_TICKS_BOTTOM+:: Ticks on the bottom of horizontal slider
|
35
|
+
# +REALSLIDER_TICKS_LEFT+:: Ticks on the left of vertical slider
|
36
|
+
# +REALSLIDER_TICKS_RIGHT+:: Ticks on the right of vertical slider
|
37
|
+
# +REALSLIDER_NORMAL+:: same as <tt>REALSLIDER_HORIZONTAL</tt>
|
38
38
|
#
|
39
39
|
# === Message identifiers
|
40
40
|
#
|
41
|
-
# +ID_AUTOINC+::
|
42
|
-
# +ID_AUTODEC+::
|
41
|
+
# +ID_AUTOINC+:: x
|
42
|
+
# +ID_AUTODEC+:: x
|
43
43
|
#
|
44
44
|
class FXRealSlider < FXFrame
|
45
45
|
|
@@ -61,7 +61,7 @@ module Fox
|
|
61
61
|
# Delta between ticks [Float]
|
62
62
|
attr_accessor :tickDelta
|
63
63
|
|
64
|
-
# Color of the slot that the slider head moves in
|
64
|
+
# Color of the slot that the slider head moves in {FXColor}
|
65
65
|
attr_accessor :slotColor
|
66
66
|
|
67
67
|
# Status line help text for this slider [String]
|
@@ -75,18 +75,18 @@ module Fox
|
|
75
75
|
#
|
76
76
|
# ==== Parameters:
|
77
77
|
#
|
78
|
-
# +p+::
|
79
|
-
# +target+::
|
80
|
-
# +selector+::
|
81
|
-
# +opts+::
|
82
|
-
# +x+::
|
83
|
-
# +y+::
|
84
|
-
# +width+::
|
85
|
-
# +height+::
|
86
|
-
# +padLeft+::
|
87
|
-
# +padRight+::
|
88
|
-
# +padTop+::
|
89
|
-
# +padBottom+::
|
78
|
+
# +p+:: the parent window for this slider {FXComposite}
|
79
|
+
# +target+:: the message target, if any, for this slider {FXObject}
|
80
|
+
# +selector+:: the message identifier for this slider [Integer]
|
81
|
+
# +opts+:: slider options [Integer]
|
82
|
+
# +x+:: initial x-position, when the +LAYOUT_FIX_X+ layout hint is in effect [Integer]
|
83
|
+
# +y+:: initial y-position, when the +LAYOUT_FIX_Y+ layout hint is in effect [Integer]
|
84
|
+
# +width+:: initial width, when the +LAYOUT_FIX_WIDTH+ layout hint is in effect [Integer]
|
85
|
+
# +height+:: initial height, when the +LAYOUT_FIX_HEIGHT+ layout hint is in effect [Integer]
|
86
|
+
# +padLeft+:: internal padding on the left side, in pixels [Integer]
|
87
|
+
# +padRight+:: internal padding on the right side, in pixels [Integer]
|
88
|
+
# +padTop+:: internal padding on the top side, in pixels [Integer]
|
89
|
+
# +padBottom+:: internal padding on the bottom side, in pixels [Integer]
|
90
90
|
#
|
91
91
|
def initialize(p, target=nil, selector=0, opts=REALSLIDER_NORMAL, x=0, y=0, width=0, height=0, padLeft=0, padRight=0, padTop=0, padBottom=0) # :yields: theRealSlider
|
92
92
|
end
|
@@ -6,8 +6,8 @@ module Fox
|
|
6
6
|
#
|
7
7
|
# The following messages are sent by FXRealSpinner to its target:
|
8
8
|
#
|
9
|
-
# +SEL_KEYPRESS+::
|
10
|
-
# +SEL_KEYRELEASE+::
|
9
|
+
# +SEL_KEYPRESS+:: sent when a key goes down; the message data is an FXEvent instance.
|
10
|
+
# +SEL_KEYRELEASE+:: sent when a key goes up; the message data is an FXEvent instance.
|
11
11
|
# +SEL_COMMAND+::
|
12
12
|
# sent whenever the spinner's value changes; the message data is a Float
|
13
13
|
# indicating the new spinner value.
|
@@ -17,18 +17,18 @@ module Fox
|
|
17
17
|
#
|
18
18
|
# === Spinner options
|
19
19
|
#
|
20
|
-
# +REALSPIN_NORMAL+::
|
21
|
-
# +REALSPIN_CYCLIC+::
|
22
|
-
# +REALSPIN_NOTEXT+::
|
23
|
-
# +REALSPIN_NOMAX+::
|
24
|
-
# +REALSPIN_NOMIN+::
|
25
|
-
# +REALSPIN_LOG+::
|
20
|
+
# +REALSPIN_NORMAL+:: Normal, non-cyclic
|
21
|
+
# +REALSPIN_CYCLIC+:: Cyclic spinner
|
22
|
+
# +REALSPIN_NOTEXT+:: No text visible
|
23
|
+
# +REALSPIN_NOMAX+:: Spin all the way up to infinity
|
24
|
+
# +REALSPIN_NOMIN+:: Spin all the way down to -infinity
|
25
|
+
# +REALSPIN_LOG+:: Logarithmic rather than linear
|
26
26
|
#
|
27
27
|
# === Message identifiers
|
28
28
|
#
|
29
|
-
# +ID_INCREMENT+::
|
30
|
-
# +ID_DECREMENT+::
|
31
|
-
# +ID_ENTRY+::
|
29
|
+
# +ID_INCREMENT+:: x
|
30
|
+
# +ID_DECREMENT+:: x
|
31
|
+
# +ID_ENTRY+:: x
|
32
32
|
#
|
33
33
|
class FXRealSpinner < FXPacker
|
34
34
|
# Current value [Float]
|
@@ -37,7 +37,7 @@ module Fox
|
|
37
37
|
# Spinner range (low and high values) [Range]
|
38
38
|
attr_accessor :range
|
39
39
|
|
40
|
-
# Text font for this spinner
|
40
|
+
# Text font for this spinner {FXFont}
|
41
41
|
attr_accessor :font
|
42
42
|
|
43
43
|
# Status line help text for this spinner [String]
|
@@ -49,22 +49,22 @@ module Fox
|
|
49
49
|
# Spinner style [Integer]
|
50
50
|
attr_accessor :spinnerStyle
|
51
51
|
|
52
|
-
# Color of the "up" arrow
|
52
|
+
# Color of the "up" arrow {FXColor}
|
53
53
|
attr_accessor :upArrowColor
|
54
54
|
|
55
|
-
# Color of the "down" arrow
|
55
|
+
# Color of the "down" arrow {FXColor}
|
56
56
|
attr_accessor :downArrowColor
|
57
57
|
|
58
|
-
# Normal text color
|
58
|
+
# Normal text color {FXColor}
|
59
59
|
attr_accessor :textColor
|
60
60
|
|
61
|
-
# Background color for selected text
|
61
|
+
# Background color for selected text {FXColor}
|
62
62
|
attr_accessor :selBackColor
|
63
63
|
|
64
|
-
# Foreground color for selected text
|
64
|
+
# Foreground color for selected text {FXColor}
|
65
65
|
attr_accessor :selTextColor
|
66
66
|
|
67
|
-
# Cursor color
|
67
|
+
# Cursor color {FXColor}
|
68
68
|
attr_accessor :cursorColor
|
69
69
|
|
70
70
|
# Number of columns (i.e. width of spinner's text field, in terms of number of columns of 'm') [Integer]
|
@@ -78,19 +78,19 @@ module Fox
|
|
78
78
|
#
|
79
79
|
# ==== Parameters:
|
80
80
|
#
|
81
|
-
# +p+::
|
82
|
-
# +cols+::
|
83
|
-
# +target+::
|
84
|
-
# +selector+::
|
85
|
-
# +opts+::
|
86
|
-
# +x+::
|
87
|
-
# +y+::
|
88
|
-
# +width+::
|
89
|
-
# +height+::
|
90
|
-
# +padLeft+::
|
91
|
-
# +padRight+::
|
92
|
-
# +padTop+::
|
93
|
-
# +padBottom+::
|
81
|
+
# +p+:: the parent window for this spinner {FXComposite}
|
82
|
+
# +cols+:: number of columns to display in the text field [Integer]
|
83
|
+
# +target+:: the message target, if any, for this spinner {FXObject}
|
84
|
+
# +selector+:: the message identifier for this spinner [Integer]
|
85
|
+
# +opts+:: the options [Integer]
|
86
|
+
# +x+:: initial x-position [Integer]
|
87
|
+
# +y+:: initial y-position [Integer]
|
88
|
+
# +width+:: initial width [Integer]
|
89
|
+
# +height+:: initial height [Integer]
|
90
|
+
# +padLeft+:: internal padding on the left side, in pixels [Integer]
|
91
|
+
# +padRight+:: internal padding on the right side, in pixels [Integer]
|
92
|
+
# +padTop+:: internal padding on the top side, in pixels [Integer]
|
93
|
+
# +padBottom+:: internal padding on the bottom side, in pixels [Integer]
|
94
94
|
#
|
95
95
|
def initialize(p, cols, target=nil, selector=0, opts=REALSPIN_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theRealSpinner
|
96
96
|
end
|