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
@@ -11,10 +11,10 @@ module Fox
|
|
11
11
|
#
|
12
12
|
# The following messages are sent by FXArrowButton to its target:
|
13
13
|
#
|
14
|
-
# +SEL_KEYPRESS+::
|
15
|
-
# +SEL_KEYRELEASE+::
|
16
|
-
# +SEL_LEFTBUTTONPRESS+::
|
17
|
-
# +SEL_LEFTBUTTONRELEASE+::
|
14
|
+
# +SEL_KEYPRESS+:: sent when a key goes down; the message data is an FXEvent instance.
|
15
|
+
# +SEL_KEYRELEASE+:: sent when a key goes up; the message data is an FXEvent instance.
|
16
|
+
# +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
|
17
|
+
# +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
|
18
18
|
# +SEL_COMMAND+::
|
19
19
|
# sent when the button is clicked (or repeatedly while the button is held
|
20
20
|
# down, if the +ARROW_REPEAT+ option is in effect).
|
@@ -26,7 +26,7 @@ module Fox
|
|
26
26
|
# +ARROW_DOWN+:: arrow points down
|
27
27
|
# +ARROW_LEFT+:: arrow points left
|
28
28
|
# +ARROW_RIGHT+:: arrow points right
|
29
|
-
# +ARROW_AUTO+::
|
29
|
+
# +ARROW_AUTO+:: automatically fire when hovering mouse over button
|
30
30
|
# +ARROW_REPEAT+:: button repeats if held down
|
31
31
|
# +ARROW_AUTOGRAY+:: automatically gray out when not updated
|
32
32
|
# +ARROW_AUTOHIDE+:: automatically hide when not updated
|
@@ -59,7 +59,7 @@ module Fox
|
|
59
59
|
# Justification mode
|
60
60
|
attr_accessor :justify
|
61
61
|
|
62
|
-
# Fill color for the arrow
|
62
|
+
# Fill color for the arrow {FXColor}
|
63
63
|
attr_accessor :arrowColor
|
64
64
|
|
65
65
|
# Construct arrow button
|
data/rdoc-sources/FXBMPIcon.rb
CHANGED
@@ -23,12 +23,12 @@ module Fox
|
|
23
23
|
#
|
24
24
|
# ==== Parameters:
|
25
25
|
#
|
26
|
-
# +a+::
|
27
|
-
# +pix+::
|
28
|
-
# +clr+::
|
29
|
-
# +opts+::
|
30
|
-
# +width+::
|
31
|
-
# +height+::
|
26
|
+
# +a+:: an application instance {FXApp}
|
27
|
+
# +pix+:: a memory buffer formatted in BMP file format [String]
|
28
|
+
# +clr+:: transparency color {FXColor}
|
29
|
+
# +opts+:: options [Integer]
|
30
|
+
# +width+:: width [Integer]
|
31
|
+
# +height+:: height [Integer]
|
32
32
|
#
|
33
33
|
def initialize(a, pix=nil, clr=FXRGB(192,192,192), opts=0, width=1, height=1) # :yields: theBMPIcon
|
34
34
|
end
|
@@ -42,7 +42,7 @@ module Fox
|
|
42
42
|
#
|
43
43
|
# ==== Parameters:
|
44
44
|
#
|
45
|
-
# +store+::
|
45
|
+
# +store+:: stream from which to read the file data {FXStream}
|
46
46
|
#
|
47
47
|
def Fox.fxloadBMP(store); end
|
48
48
|
|
@@ -52,11 +52,11 @@ module Fox
|
|
52
52
|
#
|
53
53
|
# ==== Parameters:
|
54
54
|
#
|
55
|
-
# +store+::
|
56
|
-
# +data+::
|
57
|
-
# +transp+::
|
58
|
-
# +width+::
|
59
|
-
# +height+::
|
55
|
+
# +store+:: stream to which to write the image data {FXStream}
|
56
|
+
# +data+:: the image pixel data [String]
|
57
|
+
# +transp+:: transparency color {FXColor}
|
58
|
+
# +width+:: width [Integer]
|
59
|
+
# +height+:: height [Integer]
|
60
60
|
#
|
61
61
|
def Fox.fxsaveBMP(store, data, transp, width, height); end
|
62
62
|
|
data/rdoc-sources/FXBMPImage.rb
CHANGED
@@ -18,13 +18,13 @@ 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 BMP file format [String]
|
23
|
+
# +opts+:: options [Integer]
|
24
|
+
# +width+:: width [Integer]
|
25
|
+
# +height+:: height [Integer]
|
26
26
|
#
|
27
|
-
def initialize(a, pix=nil, opts=0, width=1, height=1)
|
27
|
+
def initialize(a, pix=nil, opts=0, width=1, height=1) # :yields: theBMPImage
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
data/rdoc-sources/FXBitmap.rb
CHANGED
@@ -11,10 +11,10 @@ module Fox
|
|
11
11
|
#
|
12
12
|
# === Image rendering hints
|
13
13
|
#
|
14
|
-
# +BITMAP_KEEP+::
|
15
|
-
# +BITMAP_OWNED+::
|
16
|
-
# +BITMAP_SHMI+::
|
17
|
-
# +BITMAP_SHMP+::
|
14
|
+
# +BITMAP_KEEP+:: Keep pixel data in client
|
15
|
+
# +BITMAP_OWNED+:: Pixel data is owned by image
|
16
|
+
# +BITMAP_SHMI+:: Using shared memory image
|
17
|
+
# +BITMAP_SHMP+:: Using shared memory pixmap
|
18
18
|
#
|
19
19
|
class FXBitmap < FXDrawable
|
20
20
|
|
@@ -27,7 +27,7 @@ module Fox
|
|
27
27
|
# is set. If the +BITMAP_OWNED+ flag _is_ set, but a +nil+ value for _pixels_
|
28
28
|
# is passed in, a pixel buffer will be automatically created and will be
|
29
29
|
# owned by the bitmap. The flags +BITMAP_SHMI+ and +BITMAP_SHMP+ may be
|
30
|
-
# specified for large bitmaps to instruct FXBitmap#render to use shared
|
30
|
+
# specified for large bitmaps to instruct {FXBitmap#render} to use shared
|
31
31
|
# memory to communicate with the server.
|
32
32
|
#
|
33
33
|
def initialize(app, pixels=nil, opts=0, width=1, height=1) # :yields: theBitmap
|
@@ -37,7 +37,7 @@ module Fox
|
|
37
37
|
# Populate the bitmap with new pixel data of the same size; it will assume
|
38
38
|
# ownership of the pixel data if the +BITMAP_OWNED+ option is passed in the _opts_.
|
39
39
|
# The server-side representation of the image, if it exists, is not updated;
|
40
|
-
# to update ther server-side representation, call #render.
|
40
|
+
# to update ther server-side representation, call {#render}.
|
41
41
|
#
|
42
42
|
def setData(pix, opts=0); end
|
43
43
|
|
@@ -45,7 +45,7 @@ module Fox
|
|
45
45
|
# Populate the bitmap with new pixel data of a new size; it will assume ownership
|
46
46
|
# of the pixel data if the +BITMAP_OWNED+ option is passed in the _opts_. The size of the server-
|
47
47
|
# side representation of the image, if it exists, is adjusted but the contents are
|
48
|
-
# not updated; to update the server-side representation, call #render.
|
48
|
+
# not updated; to update the server-side representation, call {#render}.
|
49
49
|
#
|
50
50
|
def setData(pix, opts, w, h); end
|
51
51
|
|
@@ -91,7 +91,7 @@ module Fox
|
|
91
91
|
|
92
92
|
#
|
93
93
|
# Rescale pixels image to the specified width and height; this calls
|
94
|
-
# #resize to adjust the client and server side representations.
|
94
|
+
# {#resize} to adjust the client and server side representations.
|
95
95
|
#
|
96
96
|
def scale(w, h); end
|
97
97
|
|
@@ -102,7 +102,7 @@ module Fox
|
|
102
102
|
def rotate(degrees); end
|
103
103
|
|
104
104
|
#
|
105
|
-
# Crop bitmap to given rectangle; this calls #resize to adjust the client
|
105
|
+
# Crop bitmap to given rectangle; this calls {#resize} to adjust the client
|
106
106
|
# and server side representations. The new bitmap may be smaller or larger
|
107
107
|
# than the old one; blank areas are filled with _color_. There must be at
|
108
108
|
# least one pixel of overlap between the old and the new bitmap.
|
@@ -6,13 +6,13 @@ module Fox
|
|
6
6
|
#
|
7
7
|
class FXBitmapFrame < FXFrame
|
8
8
|
|
9
|
-
# The current image being displayed
|
9
|
+
# The current image being displayed {FXBitmap}
|
10
10
|
attr_accessor :bitmap
|
11
11
|
|
12
|
-
# The color used for the "on" bits in the bitmap
|
12
|
+
# The color used for the "on" bits in the bitmap {FXColor}
|
13
13
|
attr_accessor :onColor
|
14
14
|
|
15
|
-
# The color used for the "off" bits in the bitmap
|
15
|
+
# The color used for the "off" bits in the bitmap {FXColor}
|
16
16
|
attr_accessor :offColor
|
17
17
|
|
18
18
|
#
|
@@ -7,28 +7,28 @@ module Fox
|
|
7
7
|
#
|
8
8
|
# === Bitmap alignment styles
|
9
9
|
#
|
10
|
-
# +BITMAPVIEW_NORMAL+::
|
11
|
-
# +BITMAPVIEW_CENTER_X+::
|
12
|
-
# +BITMAPVIEW_LEFT+::
|
13
|
-
# +BITMAPVIEW_RIGHT+::
|
14
|
-
# +BITMAPVIEW_CENTER_Y+::
|
15
|
-
# +BITMAPVIEW_TOP+::
|
16
|
-
# +BITMAPVIEW_BOTTOM+::
|
10
|
+
# +BITMAPVIEW_NORMAL+:: Normal mode is centered
|
11
|
+
# +BITMAPVIEW_CENTER_X+:: Centered horizontally
|
12
|
+
# +BITMAPVIEW_LEFT+:: Left-aligned
|
13
|
+
# +BITMAPVIEW_RIGHT+:: Right-aligned
|
14
|
+
# +BITMAPVIEW_CENTER_Y+:: Centered vertically
|
15
|
+
# +BITMAPVIEW_TOP+:: Top-aligned
|
16
|
+
# +BITMAPVIEW_BOTTOM+:: Bottom-aligned
|
17
17
|
#
|
18
18
|
# === Events
|
19
19
|
#
|
20
|
-
# +SEL_RIGHTBUTTONPRESS+::
|
21
|
-
# +SEL_RIGHTBUTTONRELEASE+::
|
20
|
+
# +SEL_RIGHTBUTTONPRESS+:: sent when the right mouse button goes down; the message data is an FXEvent instance.
|
21
|
+
# +SEL_RIGHTBUTTONRELEASE+:: sent when the right mouse button goes up; the message data is an FXEvent instance.
|
22
22
|
#
|
23
23
|
class FXBitmapView < FXScrollArea
|
24
24
|
|
25
|
-
# The bitmap
|
25
|
+
# The bitmap {FXBitmap}
|
26
26
|
attr_accessor :bitmap
|
27
27
|
|
28
|
-
# The color used for the "on" bits in the bitmap
|
28
|
+
# The color used for the "on" bits in the bitmap {FXColor}
|
29
29
|
attr_accessor :onColor
|
30
30
|
|
31
|
-
# The color used for the "off" bits in the bitmap
|
31
|
+
# The color used for the "off" bits in the bitmap {FXColor}
|
32
32
|
attr_accessor :offColor
|
33
33
|
|
34
34
|
# Current alignment [Integer]
|
data/rdoc-sources/FXButton.rb
CHANGED
@@ -21,11 +21,11 @@ module Fox
|
|
21
21
|
#
|
22
22
|
# The following messages are sent by FXButton to its target:
|
23
23
|
#
|
24
|
-
# +SEL_KEYPRESS+::
|
25
|
-
# +SEL_KEYRELEASE+::
|
26
|
-
# +SEL_LEFTBUTTONPRESS+::
|
27
|
-
# +SEL_LEFTBUTTONRELEASE+::
|
28
|
-
# +SEL_COMMAND+::
|
24
|
+
# +SEL_KEYPRESS+:: sent when a key goes down; the message data is an FXEvent instance.
|
25
|
+
# +SEL_KEYRELEASE+:: sent when a key goes up; the message data is an FXEvent instance.
|
26
|
+
# +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
|
27
|
+
# +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
|
28
|
+
# +SEL_COMMAND+:: sent when the button is clicked.
|
29
29
|
#
|
30
30
|
# === Button state bits
|
31
31
|
#
|
data/rdoc-sources/FXCanvas.rb
CHANGED
@@ -5,10 +5,10 @@ module Fox
|
|
5
5
|
#
|
6
6
|
# The following messages are sent by FXCanvas to its target:
|
7
7
|
#
|
8
|
-
# +SEL_KEYPRESS+::
|
9
|
-
# +SEL_KEYRELEASE+::
|
10
|
-
# +SEL_MOTION+::
|
11
|
-
# +SEL_PAINT+::
|
8
|
+
# +SEL_KEYPRESS+:: sent when a key goes down; the message data is an FXEvent instance.
|
9
|
+
# +SEL_KEYRELEASE+:: sent when a key goes up; the message data is an FXEvent instance.
|
10
|
+
# +SEL_MOTION+:: sent when the mouse moves; the message data is an FXEvent instance.
|
11
|
+
# +SEL_PAINT+:: sent when the canvas needs to be redrawn; the message data is an FXEvent instance.
|
12
12
|
|
13
13
|
class FXCanvas < FXWindow
|
14
14
|
# Construct new drawing canvas widget
|
@@ -17,11 +17,11 @@ module Fox
|
|
17
17
|
#
|
18
18
|
# The following messages are sent by FXCheckButton to its target:
|
19
19
|
#
|
20
|
-
# +SEL_KEYPRESS+::
|
21
|
-
# +SEL_KEYRELEASE+::
|
22
|
-
# +SEL_LEFTBUTTONPRESS+::
|
23
|
-
# +SEL_LEFTBUTTONRELEASE+::
|
24
|
-
# +SEL_COMMAND+::
|
20
|
+
# +SEL_KEYPRESS+:: sent when a key goes down; the message data is an FXEvent instance.
|
21
|
+
# +SEL_KEYRELEASE+:: sent when a key goes up; the message data is an FXEvent instance.
|
22
|
+
# +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
|
23
|
+
# +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
|
24
|
+
# +SEL_COMMAND+:: sent when the button is clicked.
|
25
25
|
#
|
26
26
|
# === CheckButton styles
|
27
27
|
#
|
@@ -38,10 +38,10 @@ module Fox
|
|
38
38
|
# Check button style [Integer]
|
39
39
|
attr_accessor :checkButtonStyle
|
40
40
|
|
41
|
-
# Box background color
|
41
|
+
# Box background color {FXColor}
|
42
42
|
attr_accessor :boxColor
|
43
43
|
|
44
|
-
# Box check color
|
44
|
+
# Box check color {FXColor}
|
45
45
|
attr_accessor :checkColor
|
46
46
|
|
47
47
|
# Construct new check button
|
data/rdoc-sources/FXChoiceBox.rb
CHANGED
@@ -13,16 +13,16 @@ module Fox
|
|
13
13
|
#
|
14
14
|
# ==== Parameters:
|
15
15
|
#
|
16
|
-
# +owner+::
|
17
|
-
# +caption+::
|
18
|
-
# +text+::
|
19
|
-
# +icon+::
|
20
|
-
# +choices+::
|
21
|
-
# +opts+::
|
22
|
-
# +x+::
|
23
|
-
# +y+::
|
24
|
-
# +width+::
|
25
|
-
# +height+::
|
16
|
+
# +owner+:: Owner for this dialog box [FXWindow or FXApp]
|
17
|
+
# +caption+:: Caption for this dialog box [String]
|
18
|
+
# +text+:: Message text for this dialog box [String]
|
19
|
+
# +icon+:: Icon for this dialog box {FXIcon}
|
20
|
+
# +choices+:: Array of strings containing choices [Array]
|
21
|
+
# +opts+:: Dialog box options [Integer]
|
22
|
+
# +x+:: x-coordinate
|
23
|
+
# +y+:: y-coordinate
|
24
|
+
# +width+:: width
|
25
|
+
# +height+:: height
|
26
26
|
#
|
27
27
|
def initialize(owner, caption, text, icon, choices, opts=0, x=0, y=0, width=0, height=0) # :yields: theChoiceBox
|
28
28
|
end
|
@@ -35,12 +35,12 @@ module Fox
|
|
35
35
|
#
|
36
36
|
# ==== Parameters:
|
37
37
|
#
|
38
|
-
# +owner+::
|
39
|
-
# +opts+::
|
40
|
-
# +caption+::
|
41
|
-
# +text+::
|
42
|
-
# +icon+::
|
43
|
-
# +choices+::
|
38
|
+
# +owner+:: Owner for this dialog box [FXWindow or FXApp]
|
39
|
+
# +opts+:: Dialog box options [Integer]
|
40
|
+
# +caption+:: Caption for this dialog box [String]
|
41
|
+
# +text+:: Message text for this dialog box [String]
|
42
|
+
# +icon+:: Icon for this dialog box {FXIcon}
|
43
|
+
# +choices+:: Array of strings containing choices [Array]
|
44
44
|
#
|
45
45
|
def FXChoiceBox.ask(owner, opts, caption, text, icon, choices); end
|
46
46
|
|
data/rdoc-sources/FXColorBar.rb
CHANGED
@@ -11,15 +11,15 @@ module Fox
|
|
11
11
|
#
|
12
12
|
# The following messages are sent by FXColorBar to its target:
|
13
13
|
#
|
14
|
-
# +SEL_CHANGED+::
|
15
|
-
# +SEL_COMMAND+::
|
16
|
-
# +SEL_LEFTBUTTONPRESS+::
|
17
|
-
# +SEL_LEFTBUTTONRELEASE+::
|
14
|
+
# +SEL_CHANGED+:: sent continuously while the user is dragging the spot around; the message data is a three-element array containing the hue, saturation and value values.
|
15
|
+
# +SEL_COMMAND+:: sent when the user releases the mouse button and "drops" the spot at its new location; the message data is a three-element array containing the hue, saturation and value values.
|
16
|
+
# +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
|
17
|
+
# +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
|
18
18
|
#
|
19
19
|
# === Color bar orientation
|
20
20
|
#
|
21
|
-
# +COLORBAR_HORIZONTAL+::
|
22
|
-
# +COLORBAR_VERTICAL+::
|
21
|
+
# +COLORBAR_HORIZONTAL+:: Color bar shown horizontally
|
22
|
+
# +COLORBAR_VERTICAL+:: Color bar shown vertically
|
23
23
|
|
24
24
|
class FXColorBar < FXFrame
|
25
25
|
|
@@ -33,13 +33,13 @@ module Fox
|
|
33
33
|
attr_accessor :val
|
34
34
|
|
35
35
|
# Color bar style (one of +COLORBAR_HORIZONTAL+ or +COLORBAR_VERTICAL+) [Integer]
|
36
|
-
attr_accessor
|
36
|
+
attr_accessor :barStyle
|
37
37
|
|
38
38
|
# Status line help text [String]
|
39
|
-
attr_accessor
|
39
|
+
attr_accessor :helpText
|
40
40
|
|
41
41
|
# Tool tip message [String]
|
42
|
-
attr_accessor
|
42
|
+
attr_accessor :tipText
|
43
43
|
|
44
44
|
# Construct color bar
|
45
45
|
def initialize(parent, target=nil, selector=0, opts=FRAME_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theColorBar
|
@@ -12,16 +12,16 @@ module Fox
|
|
12
12
|
#
|
13
13
|
# The following messages are sent by FXColorDialog to its target:
|
14
14
|
#
|
15
|
-
# +SEL_CHANGED+::
|
16
|
-
# +SEL_COMMAND+::
|
15
|
+
# +SEL_CHANGED+:: sent continuously, while the color selector's color is changing
|
16
|
+
# +SEL_COMMAND+:: sent when the new color is set
|
17
17
|
#
|
18
18
|
# === Message identifiers
|
19
19
|
#
|
20
|
-
# +ID_COLORSELECTOR+::
|
20
|
+
# +ID_COLORSELECTOR+:: used internally to identify messages from the FXColorSelector
|
21
21
|
|
22
22
|
class FXColorDialog < FXDialogBox
|
23
23
|
|
24
|
-
# The color
|
24
|
+
# The color {FXColor}
|
25
25
|
attr_accessor :rgba
|
26
26
|
|
27
27
|
# Only opaque colors allowed [Boolean]
|
data/rdoc-sources/FXColorList.rb
CHANGED
data/rdoc-sources/FXColorRing.rb
CHANGED
@@ -11,10 +11,10 @@ module Fox
|
|
11
11
|
#
|
12
12
|
# The following messages are sent by FXColorRing to its target:
|
13
13
|
#
|
14
|
-
# +SEL_CHANGED+::
|
15
|
-
# +SEL_COMMAND+::
|
16
|
-
# +SEL_LEFTBUTTONPRESS+::
|
17
|
-
# +SEL_LEFTBUTTONRELEASE+::
|
14
|
+
# +SEL_CHANGED+:: sent continuously while the user is dragging the spot around; the message data is a three-element array containing the hue, saturation and value values.
|
15
|
+
# +SEL_COMMAND+:: sent when the user releases the mouse button and "drops" the spot at its new location; the message data is a three-element array containing the hue, saturation and value values.
|
16
|
+
# +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
|
17
|
+
# +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
|
18
18
|
#
|
19
19
|
class FXColorRing < FXFrame
|
20
20
|
|
@@ -5,55 +5,55 @@ module Fox
|
|
5
5
|
#
|
6
6
|
# The following messages are sent by FXColorSelector to its target:
|
7
7
|
#
|
8
|
-
# +SEL_CHANGED+::
|
9
|
-
# +SEL_COMMAND+::
|
8
|
+
# +SEL_CHANGED+:: sent continuously, while the color is changing
|
9
|
+
# +SEL_COMMAND+:: sent when the new color is set
|
10
10
|
#
|
11
11
|
# === Message identifiers
|
12
12
|
#
|
13
|
-
# +ID_CUSTOM_FIRST+::
|
14
|
-
# +ID_CUSTOM_LAST+::
|
15
|
-
# +ID_RGB_RED_SLIDER+::
|
16
|
-
# +ID_RGB_GREEN_SLIDER+::
|
17
|
-
# +ID_RGB_BLUE_SLIDER+::
|
18
|
-
# +ID_RGB_RED_TEXT+::
|
19
|
-
# +ID_RGB_GREEN_TEXT+::
|
20
|
-
# +ID_RGB_BLUE_TEXT+::
|
21
|
-
# +ID_HSV_HUE_SLIDER+::
|
22
|
-
# +ID_HSV_SATURATION_SLIDER+::
|
23
|
-
# +ID_HSV_VALUE_SLIDER+::
|
24
|
-
# +ID_HSV_HUE_TEXT+::
|
25
|
-
# +ID_HSV_SATURATION_TEXT+::
|
26
|
-
# +ID_HSV_VALUE_TEXT+::
|
27
|
-
# +ID_CMY_CYAN_SLIDER+::
|
28
|
-
# +ID_CMY_MAGENTA_SLIDER+::
|
29
|
-
# +ID_CMY_YELLOW_SLIDER+::
|
30
|
-
# +ID_CMY_CYAN_TEXT+::
|
31
|
-
# +ID_CMY_MAGENTA_TEXT+::
|
32
|
-
# +ID_CMY_YELLOW_TEXT+::
|
33
|
-
# +ID_DIAL_WHEEL+::
|
34
|
-
# +ID_COLOR_BAR+::
|
35
|
-
# +ID_COLOR_LIST+::
|
36
|
-
# +ID_WELL_CHANGED+::
|
37
|
-
# +ID_COLOR+::
|
38
|
-
# +ID_ACTIVEPANE+::
|
39
|
-
# +ID_ALPHA_SLIDER+::
|
40
|
-
# +ID_ALPHA_TEXT+::
|
41
|
-
# +ID_ALPHA_LABEL+::
|
42
|
-
# +ID_COLORPICK+::
|
13
|
+
# +ID_CUSTOM_FIRST+:: x
|
14
|
+
# +ID_CUSTOM_LAST+:: x
|
15
|
+
# +ID_RGB_RED_SLIDER+:: x
|
16
|
+
# +ID_RGB_GREEN_SLIDER+:: x
|
17
|
+
# +ID_RGB_BLUE_SLIDER+:: x
|
18
|
+
# +ID_RGB_RED_TEXT+:: x
|
19
|
+
# +ID_RGB_GREEN_TEXT+:: x
|
20
|
+
# +ID_RGB_BLUE_TEXT+:: x
|
21
|
+
# +ID_HSV_HUE_SLIDER+:: x
|
22
|
+
# +ID_HSV_SATURATION_SLIDER+:: x
|
23
|
+
# +ID_HSV_VALUE_SLIDER+:: x
|
24
|
+
# +ID_HSV_HUE_TEXT+:: x
|
25
|
+
# +ID_HSV_SATURATION_TEXT+:: x
|
26
|
+
# +ID_HSV_VALUE_TEXT+:: x
|
27
|
+
# +ID_CMY_CYAN_SLIDER+:: x
|
28
|
+
# +ID_CMY_MAGENTA_SLIDER+:: x
|
29
|
+
# +ID_CMY_YELLOW_SLIDER+:: x
|
30
|
+
# +ID_CMY_CYAN_TEXT+:: x
|
31
|
+
# +ID_CMY_MAGENTA_TEXT+:: x
|
32
|
+
# +ID_CMY_YELLOW_TEXT+:: x
|
33
|
+
# +ID_DIAL_WHEEL+:: x
|
34
|
+
# +ID_COLOR_BAR+:: x
|
35
|
+
# +ID_COLOR_LIST+:: x
|
36
|
+
# +ID_WELL_CHANGED+:: x
|
37
|
+
# +ID_COLOR+:: x
|
38
|
+
# +ID_ACTIVEPANE+:: x
|
39
|
+
# +ID_ALPHA_SLIDER+:: x
|
40
|
+
# +ID_ALPHA_TEXT+:: x
|
41
|
+
# +ID_ALPHA_LABEL+:: x
|
42
|
+
# +ID_COLORPICK+:: x
|
43
43
|
|
44
44
|
class FXColorSelector < FXPacker
|
45
45
|
|
46
|
-
# The "Accept" button
|
47
|
-
attr_reader
|
46
|
+
# The "Accept" button {FXButton}
|
47
|
+
attr_reader :acceptButton
|
48
48
|
|
49
|
-
# The "Cancel" button
|
50
|
-
attr_reader
|
49
|
+
# The "Cancel" button {FXButton}
|
50
|
+
attr_reader :cancelButton
|
51
51
|
|
52
|
-
# The color
|
52
|
+
# The color {FXColor}
|
53
53
|
attr_accessor :rgba
|
54
54
|
|
55
55
|
# Only opaque colors allowed [Boolean]
|
56
|
-
attr_writer
|
56
|
+
attr_writer :opaqueOnly
|
57
57
|
|
58
58
|
# Construct a new color selector
|
59
59
|
def initialize(parent, target=nil, selector=0, opts=0, x=0, y=0, width=0, height=0) # :yields: theColorSelector
|