fxruby 1.6.22-x86-mingw32 → 1.6.23-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/1.8/fox16.so +0 -0
- data/lib/1.9/fox16.so +0 -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/FXId.rb
CHANGED
data/rdoc-sources/FXImage.rb
CHANGED
@@ -39,8 +39,8 @@ module Fox
|
|
39
39
|
|
40
40
|
class FXImage < FXDrawable
|
41
41
|
|
42
|
-
# [deprecated] Pixel data
|
43
|
-
attr_reader
|
42
|
+
# [deprecated] Pixel data {FXMemoryBuffer}
|
43
|
+
attr_reader :data
|
44
44
|
|
45
45
|
# Array of colors of all image pixels. Can also be written as String of raw [RGBA] values.
|
46
46
|
attr_accessor :pixels
|
@@ -55,16 +55,16 @@ module Fox
|
|
55
55
|
# If the +IMAGE_OWNED+ flag is set but a +nil+ pixel buffer is
|
56
56
|
# passed, a pixel buffer will be automatically created and will be owned
|
57
57
|
# by the image. The flags +IMAGE_SHMI+ and +IMAGE_SHMP+ may be specified for
|
58
|
-
# large images to instruct #render to use shared memory to communicate
|
58
|
+
# large images to instruct {#render} to use shared memory to communicate
|
59
59
|
# with the server.
|
60
60
|
#
|
61
61
|
# ==== Parameters:
|
62
62
|
#
|
63
|
-
# +a+::
|
64
|
-
# +pixels+::
|
65
|
-
# +opts+::
|
66
|
-
# +width+::
|
67
|
-
# +height+::
|
63
|
+
# +a+:: an application instance {FXApp}
|
64
|
+
# +pixels+:: pixels [Array of FXColor values or string of raw [RGBA] values]
|
65
|
+
# +opts+:: image options [Integer]
|
66
|
+
# +width+:: image width [Integer]
|
67
|
+
# +height+:: image height [Integer]
|
68
68
|
#
|
69
69
|
def initialize(a, pixels=nil, opts=0, width=1, height=1) # :yields: theImage
|
70
70
|
end
|
@@ -99,8 +99,8 @@ module Fox
|
|
99
99
|
#
|
100
100
|
# ==== Parameters:
|
101
101
|
#
|
102
|
-
# +x+::
|
103
|
-
# +y+::
|
102
|
+
# +x+:: x-coordinate of the pixel of interest [Integer]
|
103
|
+
# +y+:: y-coordinate of the pixel of interest [Integer]
|
104
104
|
#
|
105
105
|
def getPixel(x, y) ; end
|
106
106
|
|
@@ -109,9 +109,9 @@ module Fox
|
|
109
109
|
#
|
110
110
|
# ==== Parameters:
|
111
111
|
#
|
112
|
-
# +x+::
|
113
|
-
# +y+::
|
114
|
-
# +clr+::
|
112
|
+
# +x+:: x-coordinate of the pixel of interest [Integer]
|
113
|
+
# +y+:: y-coordinate of the pixel of interest [Integer]
|
114
|
+
# +clr+:: new color value for this pixel {FXColor}
|
115
115
|
#
|
116
116
|
def setPixel(x, y, clr) ; end
|
117
117
|
|
@@ -122,7 +122,7 @@ module Fox
|
|
122
122
|
# Restore client-side pixel buffer from image.
|
123
123
|
# This operation overwrites any current values for the client-side
|
124
124
|
# pixel buffer with values corresponding to the server-side image.
|
125
|
-
# If the image data is +nil+ at the time #restore is called, the
|
125
|
+
# If the image data is +nil+ at the time {#restore} is called, the
|
126
126
|
# image will first allocate an (owned) pixel buffer to use for this
|
127
127
|
# operation.
|
128
128
|
#
|
@@ -149,15 +149,15 @@ module Fox
|
|
149
149
|
# transform the image.
|
150
150
|
#
|
151
151
|
# The optional third argument specifies the _quality_ of the scaling algorithm
|
152
|
-
# used. By default, #scale uses a fast (but low quality) nearest-neighbor algorithm
|
152
|
+
# used. By default, {#scale} uses a fast (but low quality) nearest-neighbor algorithm
|
153
153
|
# for scaling the image to its new size. To use the higher-quality scaling algorithm
|
154
|
-
# from FOX 1.0, you should pass in a value of 1 as the third argument to #scale.
|
154
|
+
# from FOX 1.0, you should pass in a value of 1 as the third argument to {#scale}.
|
155
155
|
#
|
156
156
|
# ==== Parameters:
|
157
157
|
#
|
158
|
-
# +width+::
|
159
|
-
# +height+::
|
160
|
-
# +quality+::
|
158
|
+
# +width+:: new image width, in pixels [Integer]
|
159
|
+
# +height+:: new image height, in pixels [Integer]
|
160
|
+
# +quality+:: scaling algorithm quality, either 0 or 1 (see above) [Integer]
|
161
161
|
#
|
162
162
|
def scale(w, h, quality=0) ; end
|
163
163
|
|
@@ -167,8 +167,8 @@ module Fox
|
|
167
167
|
#
|
168
168
|
# ==== Parameters:
|
169
169
|
#
|
170
|
-
# +horizontal+::
|
171
|
-
# +vertical+::
|
170
|
+
# +horizontal+:: if +true+, the image will be flipped from left to right [Boolean]
|
171
|
+
# +vertical+:: if +true+, the image will be flipped from top to bottom [Boolean]
|
172
172
|
#
|
173
173
|
def mirror(horizontal, vertical) ; end
|
174
174
|
|
@@ -178,7 +178,7 @@ module Fox
|
|
178
178
|
#
|
179
179
|
# ==== Parameters:
|
180
180
|
#
|
181
|
-
# +degrees+::
|
181
|
+
# +degrees+:: number of degrees by which to rotate the image [Integer]
|
182
182
|
#
|
183
183
|
def rotate(degrees) ; end
|
184
184
|
|
@@ -191,11 +191,11 @@ module Fox
|
|
191
191
|
#
|
192
192
|
# ==== Parameters:
|
193
193
|
#
|
194
|
-
# +x+::
|
195
|
-
# +y+::
|
196
|
-
# +width+::
|
197
|
-
# +height+::
|
198
|
-
# +color+::
|
194
|
+
# +x+:: x-coordinate for top left corner of the clip rectangle [Integer]
|
195
|
+
# +y+:: y-coordinate for top left corner of the clip rectangle [Integer]
|
196
|
+
# +width+:: width of the clip rectangle [Integer]
|
197
|
+
# +height+:: height of the clip rectangle [Integer]
|
198
|
+
# +color+:: fill color for blank areas after crop {FXColor}
|
199
199
|
#
|
200
200
|
def crop(x, y, w, h, color=0) ; end
|
201
201
|
|
@@ -209,8 +209,8 @@ module Fox
|
|
209
209
|
#
|
210
210
|
# ==== Parameters:
|
211
211
|
#
|
212
|
-
# +color+:: the fade color
|
213
|
-
# +factor+::
|
212
|
+
# +color+:: the fade color {FXColor}
|
213
|
+
# +factor+:: fading factor [Integer]
|
214
214
|
#
|
215
215
|
def fade(color, factor=255); end
|
216
216
|
|
@@ -223,7 +223,7 @@ module Fox
|
|
223
223
|
# ==== Parameters:
|
224
224
|
#
|
225
225
|
# +shear+:: how far to shear [Integer]
|
226
|
-
# +color+::
|
226
|
+
# +color+:: fill color for areas outside the sheared image {FXColor}
|
227
227
|
#
|
228
228
|
def xshear(shear, color=0); end
|
229
229
|
|
@@ -236,7 +236,7 @@ module Fox
|
|
236
236
|
# ==== Parameters:
|
237
237
|
#
|
238
238
|
# +shear+:: how far to shear [Integer]
|
239
|
-
# +color+::
|
239
|
+
# +color+:: fill color for areas outside the sheared image {FXColor}
|
240
240
|
#
|
241
241
|
def yshear(shear, color=0); end
|
242
242
|
|
@@ -245,8 +245,8 @@ module Fox
|
|
245
245
|
#
|
246
246
|
# ==== Parameters:
|
247
247
|
#
|
248
|
-
# +left+:: starting color, for leftmost pixels
|
249
|
-
# +right+:: ending color, for rightmost pixels
|
248
|
+
# +left+:: starting color, for leftmost pixels {FXColor}
|
249
|
+
# +right+:: ending color, for rightmost pixels {FXColor}
|
250
250
|
#
|
251
251
|
def hgradient(left, right); end
|
252
252
|
|
@@ -255,8 +255,8 @@ module Fox
|
|
255
255
|
#
|
256
256
|
# ==== Parameters:
|
257
257
|
#
|
258
|
-
# +top+:: starting color, for topmost pixels
|
259
|
-
# +bottom+::
|
258
|
+
# +top+:: starting color, for topmost pixels {FXColor}
|
259
|
+
# +bottom+:: ending color, for bottommost pixels {FXColor}
|
260
260
|
#
|
261
261
|
def vgradient(top, bottom); end
|
262
262
|
|
@@ -265,10 +265,10 @@ module Fox
|
|
265
265
|
#
|
266
266
|
# ==== Parameters:
|
267
267
|
#
|
268
|
-
# +topleft+:: pixel color for top-left corner
|
269
|
-
# +topright+::
|
270
|
-
# +bottomleft+:: pixel color for bottom-left corner
|
271
|
-
# +bottomright+:: pixel color for bottom-right corner
|
268
|
+
# +topleft+:: pixel color for top-left corner {FXColor}
|
269
|
+
# +topright+:: pixel color for top-right corner {FXColor}
|
270
|
+
# +bottomleft+:: pixel color for bottom-left corner {FXColor}
|
271
|
+
# +bottomright+:: pixel color for bottom-right corner {FXColor}
|
272
272
|
#
|
273
273
|
def gradient(topleft, topright, bottomleft, bottomright); end
|
274
274
|
|
@@ -277,7 +277,7 @@ module Fox
|
|
277
277
|
#
|
278
278
|
# ==== Parameters:
|
279
279
|
#
|
280
|
-
# +color+::
|
280
|
+
# +color+:: the blended color {FXColor}
|
281
281
|
#
|
282
282
|
def blend(color); end
|
283
283
|
|
@@ -285,17 +285,17 @@ module Fox
|
|
285
285
|
# Save pixel data to a stream.
|
286
286
|
#
|
287
287
|
# Note that the base class version of
|
288
|
-
# #savePixels saves the pixel data as-is, without any image format
|
288
|
+
# {#savePixels} saves the pixel data as-is, without any image format
|
289
289
|
# specific information. For example, if you have a 1024x768 image
|
290
290
|
# without an alpha channel (and thus only the red, green and blue
|
291
291
|
# channels) the total number of bytes written to the stream will be
|
292
|
-
# 1024*768*3*8. The behavior of #savePixels is different for subclasses
|
293
|
-
# such as FXPNGImage, where #savePixels will instead save the image
|
292
|
+
# 1024*768*3*8. The behavior of {#savePixels} is different for subclasses
|
293
|
+
# such as FXPNGImage, where {#savePixels} will instead save the image
|
294
294
|
# data in a specific image file format (i.e. the PNG file format).
|
295
295
|
#
|
296
296
|
# ==== Parameters:
|
297
297
|
#
|
298
|
-
# +store+::
|
298
|
+
# +store+:: opened stream to which to save the pixel data {FXStream}
|
299
299
|
#
|
300
300
|
def savePixels(store) ; end
|
301
301
|
|
@@ -303,18 +303,18 @@ module Fox
|
|
303
303
|
# Load pixel data from a stream.
|
304
304
|
#
|
305
305
|
# Note that the base class version of
|
306
|
-
# #loadPixels expects to read the the pixel data in a neutral format
|
306
|
+
# {#loadPixels} expects to read the the pixel data in a neutral format
|
307
307
|
# (i.e. without any image format specific information). For example, if
|
308
308
|
# you have a 1024x768 image without an alpha channel (and thus only the
|
309
|
-
# red, green and blue channels), #loadPixels will attempt to read a total
|
310
|
-
# of 1024*768*3*8 bytes from the stream. The behavior of #loadPixels is
|
311
|
-
# different for subclasses such as FXPNGImage, where #loadPixels will instead
|
309
|
+
# red, green and blue channels), {#loadPixels} will attempt to read a total
|
310
|
+
# of 1024*768*3*8 bytes from the stream. The behavior of {#loadPixels} is
|
311
|
+
# different for subclasses such as FXPNGImage, where {#loadPixels} will instead
|
312
312
|
# expects to read the image data in a specific image file format (i.e. the
|
313
313
|
# PNG file format).
|
314
314
|
#
|
315
315
|
# ==== Parameters:
|
316
316
|
#
|
317
|
-
# +store+::
|
317
|
+
# +store+:: opened stream from which to read the pixel data {FXStream}
|
318
318
|
#
|
319
319
|
def loadPixels(store) ; end
|
320
320
|
end
|
@@ -4,7 +4,7 @@ module Fox
|
|
4
4
|
#
|
5
5
|
class FXImageFrame < FXFrame
|
6
6
|
|
7
|
-
# The current image being displayed
|
7
|
+
# The current image being displayed {FXImage}
|
8
8
|
attr_accessor :image
|
9
9
|
|
10
10
|
#
|
@@ -18,17 +18,17 @@ module Fox
|
|
18
18
|
#
|
19
19
|
# ==== Parameters:
|
20
20
|
#
|
21
|
-
# +p+:: the parent window for this image frame
|
22
|
-
# +img+:: the image to display
|
23
|
-
# +opts+::
|
24
|
-
# +x+::
|
25
|
-
# +y+::
|
26
|
-
# +width+::
|
27
|
-
# +height+::
|
28
|
-
# +padLeft+::
|
29
|
-
# +padRight+::
|
30
|
-
# +padTop+::
|
31
|
-
# +padBottom+::
|
21
|
+
# +p+:: the parent window for this image frame {FXComposite}
|
22
|
+
# +img+:: the image to display {FXImage}
|
23
|
+
# +opts+:: frame options [Integer]
|
24
|
+
# +x+:: initial x-position [Integer]
|
25
|
+
# +y+:: initial y-position [Integer]
|
26
|
+
# +width+:: initial width [Integer]
|
27
|
+
# +height+:: initial height [Integer]
|
28
|
+
# +padLeft+:: internal padding on the left side, in pixels [Integer]
|
29
|
+
# +padRight+:: internal padding on the right side, in pixels [Integer]
|
30
|
+
# +padTop+:: internal padding on the top side, in pixels [Integer]
|
31
|
+
# +padBottom+:: internal padding on the bottom side, in pixels [Integer]
|
32
32
|
#
|
33
33
|
def initialize(p, img, opts=FRAME_SUNKEN|FRAME_THICK, x=0, y=0, width=0, height=0, padLeft=0, padRight=0, padTop=0, padBottom=0) # :yields: theImageFrame
|
34
34
|
end
|
data/rdoc-sources/FXImageView.rb
CHANGED
@@ -4,22 +4,22 @@ module Fox
|
|
4
4
|
#
|
5
5
|
# === Image alignment styles
|
6
6
|
#
|
7
|
-
# +IMAGEVIEW_NORMAL+::
|
8
|
-
# +IMAGEVIEW_CENTER_X+::
|
9
|
-
# +IMAGEVIEW_LEFT+::
|
10
|
-
# +IMAGEVIEW_RIGHT+::
|
11
|
-
# +IMAGEVIEW_CENTER_Y+::
|
12
|
-
# +IMAGEVIEW_TOP+::
|
13
|
-
# +IMAGEVIEW_BOTTOM+::
|
7
|
+
# +IMAGEVIEW_NORMAL+:: Normal mode is centered
|
8
|
+
# +IMAGEVIEW_CENTER_X+:: Centered horizontally
|
9
|
+
# +IMAGEVIEW_LEFT+:: Left-aligned
|
10
|
+
# +IMAGEVIEW_RIGHT+:: Right-aligned
|
11
|
+
# +IMAGEVIEW_CENTER_Y+:: Centered vertically
|
12
|
+
# +IMAGEVIEW_TOP+:: Top-aligned
|
13
|
+
# +IMAGEVIEW_BOTTOM+:: Bottom-aligned
|
14
14
|
#
|
15
15
|
# === Events
|
16
16
|
#
|
17
|
-
# +SEL_RIGHTBUTTONPRESS+::
|
18
|
-
# +SEL_RIGHTBUTTONRELEASE+::
|
17
|
+
# +SEL_RIGHTBUTTONPRESS+:: sent when the right mouse button goes down; the message data is an FXEvent instance.
|
18
|
+
# +SEL_RIGHTBUTTONRELEASE+:: sent when the right mouse button goes up; the message data is an FXEvent instance.
|
19
19
|
#
|
20
20
|
class FXImageView < FXScrollArea
|
21
21
|
|
22
|
-
# The image
|
22
|
+
# The image {FXImage}
|
23
23
|
attr_accessor :image
|
24
24
|
|
25
25
|
# Current alignment [Integer]
|
@@ -6,10 +6,10 @@ module Fox
|
|
6
6
|
#
|
7
7
|
# === Input dialog options
|
8
8
|
#
|
9
|
-
# +INPUTDIALOG_STRING+::
|
10
|
-
# +INPUTDIALOG_INTEGER+::
|
11
|
-
# +INPUTDIALOG_REAL+::
|
12
|
-
# +INPUTDIALOG_PASSWORD+::
|
9
|
+
# +INPUTDIALOG_STRING+:: Ask for a string
|
10
|
+
# +INPUTDIALOG_INTEGER+:: Ask for an integer number
|
11
|
+
# +INPUTDIALOG_REAL+:: Ask for a real number
|
12
|
+
# +INPUTDIALOG_PASSWORD+:: Do not reveal key-in
|
13
13
|
#
|
14
14
|
class FXInputDialog < FXDialogBox
|
15
15
|
|
data/rdoc-sources/FXJPGIcon.rb
CHANGED
@@ -25,12 +25,12 @@ module Fox
|
|
25
25
|
#
|
26
26
|
# ==== Parameters:
|
27
27
|
#
|
28
|
-
# +a+::
|
29
|
-
# +pix+::
|
30
|
-
# +clr+::
|
31
|
-
# +opts+::
|
32
|
-
# +width+::
|
33
|
-
# +height+::
|
28
|
+
# +a+:: an application instance {FXApp}
|
29
|
+
# +pix+:: a memory buffer formatted in JPEG file format [String]
|
30
|
+
# +clr+:: transparency color {FXColor}
|
31
|
+
# +opts+:: options [Integer]
|
32
|
+
# +width+:: width [Integer]
|
33
|
+
# +height+:: height [Integer]
|
34
34
|
# +quality+:: JPEG image quality [Integer]
|
35
35
|
#
|
36
36
|
def initialize(a, pix=nil, clr=0, opts=0, width=1, height=1, quality=75) # :yields: theJPGIcon
|
@@ -44,7 +44,7 @@ module Fox
|
|
44
44
|
#
|
45
45
|
# ==== Parameters:
|
46
46
|
#
|
47
|
-
# +store+::
|
47
|
+
# +store+:: stream from which to read the file data {FXStream}
|
48
48
|
#
|
49
49
|
def Fox.fxloadJPG(store); end
|
50
50
|
|
@@ -54,12 +54,12 @@ module Fox
|
|
54
54
|
#
|
55
55
|
# ==== Parameters:
|
56
56
|
#
|
57
|
-
# +store+::
|
58
|
-
# +data+::
|
59
|
-
# +transp+::
|
60
|
-
# +width+::
|
61
|
-
# +height+::
|
62
|
-
# +quality+::
|
57
|
+
# +store+:: stream to which to write the image data {FXStream}
|
58
|
+
# +data+:: the image pixel data [String]
|
59
|
+
# +transp+:: transparency color {FXColor}
|
60
|
+
# +width+:: width [Integer]
|
61
|
+
# +height+:: height [Integer]
|
62
|
+
# +quality+:: image quality [Integer]
|
63
63
|
#
|
64
64
|
def Fox.fxsaveJPG(store, data, transp, width, height, quality); end
|
65
65
|
|
data/rdoc-sources/FXJPGImage.rb
CHANGED
@@ -25,11 +25,11 @@ module Fox
|
|
25
25
|
#
|
26
26
|
# ==== Parameters:
|
27
27
|
#
|
28
|
-
# +a+::
|
29
|
-
# +pix+::
|
30
|
-
# +opts+::
|
31
|
-
# +width+::
|
32
|
-
# +height+::
|
28
|
+
# +a+:: an application instance {FXApp}
|
29
|
+
# +pix+:: a memory buffer formatted in JPEG file format [String]
|
30
|
+
# +opts+:: options [Integer]
|
31
|
+
# +width+:: width [Integer]
|
32
|
+
# +height+:: height [Integer]
|
33
33
|
# +quality+:: JPEG image quality [Integer]
|
34
34
|
#
|
35
35
|
def initialize(a, pix=nil, opts=0, width=1, height=1, quality=75) # :yields: theJPGImage
|
data/rdoc-sources/FXKnob.rb
CHANGED
@@ -9,12 +9,12 @@ module Fox
|
|
9
9
|
#
|
10
10
|
# The following messages are sent by FXKnob 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 knob move; the message data is the new value of the knob.
|
20
20
|
# +SEL_CHANGED+::
|
@@ -23,11 +23,11 @@ module Fox
|
|
23
23
|
#
|
24
24
|
# === Knob Control styles
|
25
25
|
#
|
26
|
-
# +KNOB_NEEDLE+::
|
27
|
-
# +KNOB_DOT+::
|
28
|
-
# +KNOB_TICKS+::
|
29
|
-
# +KNOB_INDICATOR+::
|
30
|
-
# +KNOB_NORMAL+::
|
26
|
+
# +KNOB_NEEDLE+:: Use a needle as indicator
|
27
|
+
# +KNOB_DOT+:: Use a dot as indicator
|
28
|
+
# +KNOB_TICKS+:: Show ticks around the knob
|
29
|
+
# +KNOB_INDICATOR+:: Show only the indicator (like a speedometer)
|
30
|
+
# +KNOB_NORMAL+:: Normal knob looks
|
31
31
|
#
|
32
32
|
class FXKnob < FXFrame
|
33
33
|
|
@@ -46,7 +46,7 @@ module Fox
|
|
46
46
|
# Delta between ticks [Integer]
|
47
47
|
attr_accessor :tickDelta
|
48
48
|
|
49
|
-
# Indicator needle color
|
49
|
+
# Indicator needle color {FXColor}
|
50
50
|
attr_accessor :lineColor
|
51
51
|
|
52
52
|
# Help text displayed on the status line [String]
|
data/rdoc-sources/FXLabel.rb
CHANGED
@@ -41,13 +41,13 @@ module Fox
|
|
41
41
|
# The text for this label [String]
|
42
42
|
attr_accessor :text
|
43
43
|
|
44
|
-
# The icon for this label
|
44
|
+
# The icon for this label {FXIcon}
|
45
45
|
attr_accessor :icon
|
46
46
|
|
47
|
-
# The text font
|
47
|
+
# The text font {FXFont}
|
48
48
|
attr_accessor :font
|
49
49
|
|
50
|
-
# The text color
|
50
|
+
# The text color {FXColor}
|
51
51
|
attr_accessor :textColor
|
52
52
|
|
53
53
|
# Text justification mode [Integer]
|