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/FXGIFCursor.rb
CHANGED
@@ -23,11 +23,11 @@ module Fox
|
|
23
23
|
#
|
24
24
|
# ==== Parameters:
|
25
25
|
#
|
26
|
-
# +store+::
|
27
|
-
# +data+::
|
28
|
-
# +width+::
|
29
|
-
# +height+::
|
30
|
-
# +fast+::
|
26
|
+
# +store+:: stream to which to write the image data {FXStream}
|
27
|
+
# +data+:: the image pixel data [Array of FXColor]
|
28
|
+
# +width+:: width [Integer]
|
29
|
+
# +height+:: height [Integer]
|
30
|
+
# +fast+:: if +true+, use faster Floyd-Steinberg algorithm [Boolean]
|
31
31
|
#
|
32
32
|
def Fox.fxsaveGIF(store, data, width, height, fast=true); end
|
33
33
|
|
@@ -39,7 +39,7 @@ module Fox
|
|
39
39
|
#
|
40
40
|
# ==== Parameters:
|
41
41
|
#
|
42
|
-
# +store+::
|
42
|
+
# +store+:: stream from which to read the file data {FXStream}
|
43
43
|
#
|
44
44
|
def Fox.fxloadGIF(store); end
|
45
45
|
|
data/rdoc-sources/FXGIFIcon.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 GIF 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: theGIFIcon
|
29
29
|
end
|
data/rdoc-sources/FXGIFImage.rb
CHANGED
@@ -16,11 +16,11 @@ module Fox
|
|
16
16
|
#
|
17
17
|
# ==== Parameters:
|
18
18
|
#
|
19
|
-
# +a+::
|
20
|
-
# +pix+::
|
21
|
-
# +opts+::
|
22
|
-
# +width+::
|
23
|
-
# +height+::
|
19
|
+
# +a+:: an application instance {FXApp}
|
20
|
+
# +pix+:: a memory buffer formatted in GIF file format [String]
|
21
|
+
# +opts+:: options [Integer]
|
22
|
+
# +width+:: width [Integer]
|
23
|
+
# +height+:: height [Integer]
|
24
24
|
#
|
25
25
|
def initialize(a, pix=nil, opts=0, width=1, height=1) # :yields: theGIFImage
|
26
26
|
end
|
data/rdoc-sources/FXGLContext.rb
CHANGED
data/rdoc-sources/FXGLObject.rb
CHANGED
@@ -24,7 +24,7 @@ module Fox
|
|
24
24
|
#
|
25
25
|
# ==== Parameters:
|
26
26
|
#
|
27
|
-
# +viewer+::
|
27
|
+
# +viewer+:: the viewer window into which we're drawing {FXGLViewer}
|
28
28
|
#
|
29
29
|
def draw(viewer); end
|
30
30
|
|
@@ -33,7 +33,7 @@ module Fox
|
|
33
33
|
#
|
34
34
|
# ==== Parameters:
|
35
35
|
#
|
36
|
-
# +viewer+::
|
36
|
+
# +viewer+:: the viewer window into which we're drawing {FXGLViewer}
|
37
37
|
#
|
38
38
|
def hit(viewer); end
|
39
39
|
|
@@ -53,11 +53,11 @@ module Fox
|
|
53
53
|
#
|
54
54
|
# ==== Parameters:
|
55
55
|
#
|
56
|
-
# +viewer+::
|
57
|
-
# +fx+::
|
58
|
-
# +fy+::
|
59
|
-
# +tx+::
|
60
|
-
# +ty+::
|
56
|
+
# +viewer+:: the viewer window in which we're dragging {FXGLViewer}
|
57
|
+
# +fx+:: x-coordinate for position we're dragging from [Integer]
|
58
|
+
# +fy+:: y-coordinate for position we're dragging from [Integer]
|
59
|
+
# +tx+:: x-coordinate for position we're dragging to [Integer]
|
60
|
+
# +ty+:: y-coordinate for position we're dragging to [Integer]
|
61
61
|
#
|
62
62
|
def drag(viewer, fx, fy, tx, ty); end
|
63
63
|
|
@@ -67,7 +67,7 @@ module Fox
|
|
67
67
|
#
|
68
68
|
# ==== Parameters:
|
69
69
|
#
|
70
|
-
# +path+::
|
70
|
+
# +path+:: an array of integers [Array]
|
71
71
|
#
|
72
72
|
def identify(path); end
|
73
73
|
end
|
data/rdoc-sources/FXGLShape.rb
CHANGED
@@ -4,38 +4,38 @@ module Fox
|
|
4
4
|
#
|
5
5
|
# === Shape drawing options
|
6
6
|
#
|
7
|
-
# +SURFACE_SINGLESIDED+::
|
8
|
-
# +SURFACE_DUALSIDED+::
|
9
|
-
# +SHADING_NONE+::
|
10
|
-
# +SHADING_SMOOTH+::
|
11
|
-
# +SHADING_FLAT+::
|
12
|
-
# +FACECULLING_OFF+::
|
13
|
-
# +FACECULLING_ON+::
|
14
|
-
# +STYLE_SURFACE+::
|
15
|
-
# +STYLE_WIREFRAME+::
|
16
|
-
# +STYLE_POINTS+::
|
17
|
-
# +STYLE_BOUNDBOX+::
|
7
|
+
# +SURFACE_SINGLESIDED+:: Single-sided [both sides same]
|
8
|
+
# +SURFACE_DUALSIDED+:: Dual-sided surface
|
9
|
+
# +SHADING_NONE+:: No light source
|
10
|
+
# +SHADING_SMOOTH+:: Smooth shaded
|
11
|
+
# +SHADING_FLAT+:: Flag shaded
|
12
|
+
# +FACECULLING_OFF+:: No face culling
|
13
|
+
# +FACECULLING_ON+:: Cull backward facing surfaces
|
14
|
+
# +STYLE_SURFACE+:: Draw filled surfaces
|
15
|
+
# +STYLE_WIREFRAME+:: Draw wire frame
|
16
|
+
# +STYLE_POINTS+:: Draw as points
|
17
|
+
# +STYLE_BOUNDBOX+:: Draw bounding box
|
18
18
|
#
|
19
19
|
# === Message identifiers
|
20
20
|
#
|
21
|
-
# +ID_SHADEOFF+::
|
22
|
-
# +ID_SHADEON+::
|
23
|
-
# +ID_SHADESMOOTH+::
|
24
|
-
# +ID_TOGGLE_SIDED+::
|
25
|
-
# +ID_TOGGLE_CULLING+::
|
26
|
-
# +ID_STYLE_POINTS+::
|
27
|
-
# +ID_STYLE_WIREFRAME+::
|
28
|
-
# +ID_STYLE_SURFACE+::
|
29
|
-
# +ID_STYLE_BOUNDINGBOX+::
|
30
|
-
# +ID_FRONT_MATERIAL+::
|
31
|
-
# +ID_BACK_MATERIAL+::
|
21
|
+
# +ID_SHADEOFF+:: x
|
22
|
+
# +ID_SHADEON+:: x
|
23
|
+
# +ID_SHADESMOOTH+:: x
|
24
|
+
# +ID_TOGGLE_SIDED+:: x
|
25
|
+
# +ID_TOGGLE_CULLING+:: x
|
26
|
+
# +ID_STYLE_POINTS+:: x
|
27
|
+
# +ID_STYLE_WIREFRAME+:: x
|
28
|
+
# +ID_STYLE_SURFACE+:: x
|
29
|
+
# +ID_STYLE_BOUNDINGBOX+:: x
|
30
|
+
# +ID_FRONT_MATERIAL+:: x
|
31
|
+
# +ID_BACK_MATERIAL+:: x
|
32
32
|
#
|
33
33
|
class FXGLShape < FXGLObject
|
34
34
|
|
35
35
|
# Tool tip message for this shape [String]
|
36
36
|
attr_accessor :tipText
|
37
37
|
|
38
|
-
# Position
|
38
|
+
# Position {FXVec3f}
|
39
39
|
attr_accessor :position
|
40
40
|
|
41
41
|
#
|
data/rdoc-sources/FXGLViewer.rb
CHANGED
@@ -31,19 +31,19 @@ module Fox
|
|
31
31
|
|
32
32
|
# OpenGL Light Source
|
33
33
|
class FXLight
|
34
|
-
# Ambient light color
|
34
|
+
# Ambient light color {FXVec4f}
|
35
35
|
attr_accessor :ambient
|
36
36
|
|
37
|
-
# Diffuse light color
|
37
|
+
# Diffuse light color {FXVec4f}
|
38
38
|
attr_accessor :diffuse
|
39
39
|
|
40
|
-
# Specular light color
|
40
|
+
# Specular light color {FXVec4f}
|
41
41
|
attr_accessor :specular
|
42
42
|
|
43
|
-
# Light position
|
43
|
+
# Light position {FXVec4f}
|
44
44
|
attr_accessor :position
|
45
45
|
|
46
|
-
# Spot direction
|
46
|
+
# Spot direction {FXVec3f}
|
47
47
|
attr_accessor :direction
|
48
48
|
|
49
49
|
# Spotlight exponent [Float]
|
@@ -67,16 +67,16 @@ module Fox
|
|
67
67
|
|
68
68
|
# OpenGL Material Description
|
69
69
|
class FXMaterial
|
70
|
-
# Ambient material color
|
70
|
+
# Ambient material color {FXVec4f}
|
71
71
|
attr_accessor :ambient
|
72
72
|
|
73
|
-
# Diffuse material color
|
73
|
+
# Diffuse material color {FXVec4f}
|
74
74
|
attr_accessor :diffuse
|
75
75
|
|
76
|
-
# Specular material color
|
76
|
+
# Specular material color {FXVec4f}
|
77
77
|
attr_accessor :specular
|
78
78
|
|
79
|
-
# Emissive material color
|
79
|
+
# Emissive material color {FXVec4f}
|
80
80
|
attr_accessor :emission
|
81
81
|
|
82
82
|
# Specular shininess [Float]
|
@@ -93,44 +93,44 @@ module Fox
|
|
93
93
|
#
|
94
94
|
# The following messages are sent by FXGLViewer to its message target:
|
95
95
|
#
|
96
|
-
# +SEL_KEYPRESS+::
|
97
|
-
# +SEL_KEYRELEASE+::
|
98
|
-
# +SEL_LEFTBUTTONPRESS+::
|
99
|
-
# +SEL_LEFTBUTTONRELEASE+::
|
100
|
-
# +SEL_MIDDLEBUTTONPRESS+::
|
101
|
-
# +SEL_MIDDLEBUTTONRELEASE+::
|
102
|
-
# +SEL_RIGHTBUTTONPRESS+::
|
103
|
-
# +SEL_RIGHTBUTTONRELEASE+::
|
104
|
-
# +SEL_MOTION+::
|
105
|
-
# +SEL_MOUSEWHEEL+::
|
106
|
-
# +SEL_CLICKED+::
|
107
|
-
# +SEL_DOUBLECLICKED+::
|
108
|
-
# +SEL_TRIPLECLICKED+::
|
109
|
-
# +SEL_PICKED+::
|
110
|
-
# +SEL_SELECTED+::
|
111
|
-
# +SEL_DESELECTED+::
|
112
|
-
# +SEL_LASSOED+::
|
113
|
-
# +SEL_INSERTED+::
|
114
|
-
# +SEL_DELETED+::
|
115
|
-
# +SEL_DRAGGED+::
|
116
|
-
# +SEL_COMMAND+::
|
117
|
-
# +SEL_CHANGED+::
|
96
|
+
# +SEL_KEYPRESS+:: sent when a key goes down; the message data is an FXEvent instance.
|
97
|
+
# +SEL_KEYRELEASE+:: sent when a key goes up; the message data is an FXEvent instance.
|
98
|
+
# +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
|
99
|
+
# +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
|
100
|
+
# +SEL_MIDDLEBUTTONPRESS+:: sent when the middle mouse button goes down; the message data is an FXEvent instance.
|
101
|
+
# +SEL_MIDDLEBUTTONRELEASE+:: sent when the middle mouse button goes up; the message data is an FXEvent instance.
|
102
|
+
# +SEL_RIGHTBUTTONPRESS+:: sent when the right mouse button goes down; the message data is an FXEvent instance.
|
103
|
+
# +SEL_RIGHTBUTTONRELEASE+:: sent when the right mouse button goes up; the message data is an FXEvent instance.
|
104
|
+
# +SEL_MOTION+:: sent when the mouse pointer is moved; the message data is an FXEvent instance.
|
105
|
+
# +SEL_MOUSEWHEEL+:: sent when the mouse wheel is spun; the message data is an FXEvent instance.
|
106
|
+
# +SEL_CLICKED+:: sent when the mouse is single-clicked somewhere in the widget; the message data is a reference to the clicked object (possibly +nil+)
|
107
|
+
# +SEL_DOUBLECLICKED+:: sent when the mouse is double-clicked somewhere in the widget; the message data is a reference to the clicked object (possibly +nil+)
|
108
|
+
# +SEL_TRIPLECLICKED+:: sent when the mouse is triple-clicked somewhere in the widget; the message data is a reference to the clicked object (possibly +nil+)
|
109
|
+
# +SEL_PICKED+:: sent when an object is picked; the message data is an FXEvent instance.
|
110
|
+
# +SEL_SELECTED+:: sent when object(s) are selected in the viewer; the message data is an array of references to the selected objects.
|
111
|
+
# +SEL_DESELECTED+:: sent when object(s) are deselected in the viewer; the message data is an array of references to the deselected objects.
|
112
|
+
# +SEL_LASSOED+:: sent when a lasso-selection has been completed; the message data is an FXEvent instance.
|
113
|
+
# +SEL_INSERTED+:: sent when the viewer receives a +SEL_INSERTED+ message.
|
114
|
+
# +SEL_DELETED+:: sent when the viewer receives a +SEL_COMMAND+ message with the +ID_DELETE_SEL+ identifier; the message data is an array of references to the selected object(s).
|
115
|
+
# +SEL_DRAGGED+:: sent when the selected object is dragged around in the viewer; the message data is a reference to the selected object.
|
116
|
+
# +SEL_COMMAND+:: sent when the mouse is clicked somewhere in the widget; the message data is a reference to the clicked object (possibly +nil+)
|
117
|
+
# +SEL_CHANGED+:: sent when the selection changes; the message data is a reference to the newly selected object (or +nil+).
|
118
118
|
#
|
119
119
|
# === FXGLViewer options
|
120
120
|
#
|
121
|
-
# +VIEWER_LIGHTING+::
|
122
|
-
# +VIEWER_FOG+::
|
123
|
-
# +VIEWER_DITHER+::
|
121
|
+
# +VIEWER_LIGHTING+:: Lighting is on
|
122
|
+
# +VIEWER_FOG+:: Fog mode on
|
123
|
+
# +VIEWER_DITHER+:: Dithering
|
124
124
|
#
|
125
125
|
# === Projection modes (class constants)
|
126
126
|
#
|
127
|
-
# +PARALLEL+::
|
128
|
-
# +PERSPECTIVE+::
|
127
|
+
# +PARALLEL+:: Parallel projection
|
128
|
+
# +PERSPECTIVE+:: Perspective projection
|
129
129
|
#
|
130
130
|
# === Message identifiers
|
131
131
|
#
|
132
|
-
# +ID_PERSPECTIVE+::
|
133
|
-
# +ID_PARALLEL+::
|
132
|
+
# +ID_PERSPECTIVE+:: x
|
133
|
+
# +ID_PARALLEL+:: x
|
134
134
|
# +ID_FRONT+:: x
|
135
135
|
# +ID_BACK+:: x
|
136
136
|
# +ID_LEFT+:: x
|
@@ -179,10 +179,10 @@ module Fox
|
|
179
179
|
# Size of pixel in model coordinates [Float]
|
180
180
|
attr_reader :modelPix
|
181
181
|
|
182
|
-
# The viewport for this viewer
|
182
|
+
# The viewport for this viewer {FXViewport}
|
183
183
|
attr_reader :viewport
|
184
184
|
|
185
|
-
# Default object material setting
|
185
|
+
# Default object material setting {FXMaterial}
|
186
186
|
attr_accessor :material
|
187
187
|
|
188
188
|
# Camera field of view angle (in degrees) [Float]
|
@@ -194,19 +194,19 @@ module Fox
|
|
194
194
|
# Target point distance [Float]
|
195
195
|
attr_accessor :distance
|
196
196
|
|
197
|
-
# Current scaling factors
|
197
|
+
# Current scaling factors {FXVec3f}
|
198
198
|
attr_accessor :scale
|
199
199
|
|
200
|
-
# Camera orientation
|
200
|
+
# Camera orientation {FXQuatf}
|
201
201
|
attr_accessor :orientation
|
202
202
|
|
203
|
-
# Object center
|
203
|
+
# Object center {FXVec3f}
|
204
204
|
attr_accessor :center
|
205
205
|
|
206
|
-
# Eyesight vector
|
206
|
+
# Eyesight vector {FXVec3f}
|
207
207
|
attr_reader :eyeVector
|
208
208
|
|
209
|
-
# Eye position
|
209
|
+
# Eye position {FXVec3f}
|
210
210
|
attr_reader :eyePosition
|
211
211
|
|
212
212
|
# Status line help text [String]
|
@@ -215,22 +215,22 @@ module Fox
|
|
215
215
|
# Tool tip text [String]
|
216
216
|
attr_accessor :tipText
|
217
217
|
|
218
|
-
# The current transformation matrix
|
218
|
+
# The current transformation matrix {FXMat4f}
|
219
219
|
attr_reader :transform
|
220
220
|
|
221
|
-
# The inverse of the current transformation matrix
|
221
|
+
# The inverse of the current transformation matrix {FXMat4f}
|
222
222
|
attr_reader :invTransform
|
223
223
|
|
224
|
-
# The current scene object
|
224
|
+
# The current scene object {FXGLObject}
|
225
225
|
attr_accessor :scene
|
226
226
|
|
227
|
-
# The selection
|
227
|
+
# The selection {FXGLObject}
|
228
228
|
attr_accessor :selection
|
229
229
|
|
230
230
|
# The projection mode (either +FXGLViewer::PERSPECTIVE+ or +FXGLViewer::PARALLEL+)
|
231
231
|
attr_accessor :projection
|
232
232
|
|
233
|
-
# Global ambient light color
|
233
|
+
# Global ambient light color {FXMat4f}
|
234
234
|
attr_accessor :ambientColor
|
235
235
|
|
236
236
|
# The maximum hits, i.e. the maximum size of the pick buffer [Integer].
|
@@ -240,7 +240,7 @@ module Fox
|
|
240
240
|
# Set turbo mode [Boolean]
|
241
241
|
attr_writer :turboMode
|
242
242
|
|
243
|
-
# Light source settings
|
243
|
+
# Light source settings {FXLight}
|
244
244
|
attr_accessor :light
|
245
245
|
|
246
246
|
# Returns the FXDragType for FXGLObject
|
data/rdoc-sources/FXGLVisual.rb
CHANGED
@@ -16,10 +16,10 @@ module Fox
|
|
16
16
|
# Upper value [Float]
|
17
17
|
attr_accessor :upper
|
18
18
|
|
19
|
-
# Lower color
|
19
|
+
# Lower color {FXColor}
|
20
20
|
attr_accessor :lowerColor
|
21
21
|
|
22
|
-
# Upper color
|
22
|
+
# Upper color {FXColor}
|
23
23
|
attr_accessor :upperColor
|
24
24
|
|
25
25
|
# Blend mode [Integer]
|
@@ -34,43 +34,43 @@ module Fox
|
|
34
34
|
#
|
35
35
|
# The following messages are sent by FXGradientBar to its target:
|
36
36
|
#
|
37
|
-
# +SEL_LEFTBUTTONPRESS+::
|
38
|
-
# +SEL_LEFTBUTTONRELEASE+::
|
39
|
-
# +SEL_CHANGED+::
|
40
|
-
# +SEL_SELECTED+::
|
41
|
-
# +SEL_DESELECTED+::
|
37
|
+
# +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
|
38
|
+
# +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
|
39
|
+
# +SEL_CHANGED+:: sent when anything about a segment changes; the message data is an integer indicating the segment number
|
40
|
+
# +SEL_SELECTED+:: sent when one or more segments are selected.
|
41
|
+
# +SEL_DESELECTED+:: sent when one or more segments are deselected.
|
42
42
|
#
|
43
43
|
# === Gradient bar orientation
|
44
44
|
#
|
45
|
-
# +GRADIENTBAR_HORIZONTAL+::
|
46
|
-
# +GRADIENTBAR_VERTICAL+::
|
47
|
-
# +GRADIENTBAR_NO_CONTROLS+::
|
48
|
-
# +GRADIENTBAR_CONTROLS_TOP+::
|
49
|
-
# +GRADIENTBAR_CONTROLS_BOTTOM+::
|
50
|
-
# +GRADIENTBAR_CONTROLS_LEFT+::
|
51
|
-
# +GRADIENTBAR_CONTROLS_RIGHT+::
|
45
|
+
# +GRADIENTBAR_HORIZONTAL+:: Gradient bar shown horizontally
|
46
|
+
# +GRADIENTBAR_VERTICAL+:: Gradient bar shown vertically
|
47
|
+
# +GRADIENTBAR_NO_CONTROLS+:: No controls shown
|
48
|
+
# +GRADIENTBAR_CONTROLS_TOP+:: Controls on top
|
49
|
+
# +GRADIENTBAR_CONTROLS_BOTTOM+:: Controls on bottom
|
50
|
+
# +GRADIENTBAR_CONTROLS_LEFT+:: Controls on left
|
51
|
+
# +GRADIENTBAR_CONTROLS_RIGHT+:: Controls on right
|
52
52
|
#
|
53
53
|
# === Blend modes
|
54
54
|
#
|
55
|
-
# +GRADIENT_BLEND_LINEAR+::
|
56
|
-
# +GRADIENT_BLEND_POWER+::
|
57
|
-
# +GRADIENT_BLEND_SINE+::
|
58
|
-
# +GRADIENT_BLEND_INCREASING+::
|
59
|
-
# +GRADIENT_BLEND_DECREASING+::
|
55
|
+
# +GRADIENT_BLEND_LINEAR+:: Linear blend
|
56
|
+
# +GRADIENT_BLEND_POWER+:: Power law blend
|
57
|
+
# +GRADIENT_BLEND_SINE+:: Sine blend
|
58
|
+
# +GRADIENT_BLEND_INCREASING+:: Quadratic increasing blend
|
59
|
+
# +GRADIENT_BLEND_DECREASING+:: Quadratic decreasing blend
|
60
60
|
#
|
61
61
|
# === Message identifiers
|
62
62
|
#
|
63
|
-
# +ID_LOWER_COLOR+::
|
64
|
-
# +ID_UPPER_COLOR+::
|
65
|
-
# +ID_BLEND_LINEAR+::
|
66
|
-
# +ID_BLEND_POWER+::
|
67
|
-
# +ID_BLEND_SINE+::
|
68
|
-
# +ID_BLEND_INCREASING+::
|
69
|
-
# +ID_BLEND_DECREASING+::
|
70
|
-
# +ID_RECENTER+::
|
71
|
-
# +ID_SPLIT+::
|
72
|
-
# +ID_MERGE+::
|
73
|
-
# +ID_UNIFORM+::
|
63
|
+
# +ID_LOWER_COLOR+:: write me
|
64
|
+
# +ID_UPPER_COLOR+:: write me
|
65
|
+
# +ID_BLEND_LINEAR+:: write me
|
66
|
+
# +ID_BLEND_POWER+:: write me
|
67
|
+
# +ID_BLEND_SINE+:: write me
|
68
|
+
# +ID_BLEND_INCREASING+:: write me
|
69
|
+
# +ID_BLEND_DECREASING+:: write me
|
70
|
+
# +ID_RECENTER+:: write me
|
71
|
+
# +ID_SPLIT+:: write me
|
72
|
+
# +ID_MERGE+:: write me
|
73
|
+
# +ID_UNIFORM+:: write me
|
74
74
|
#
|
75
75
|
class FXGradientBar < FXFrame
|
76
76
|
|
@@ -82,7 +82,7 @@ module Fox
|
|
82
82
|
#
|
83
83
|
attr_accessor :barStyle
|
84
84
|
|
85
|
-
# Selection color
|
85
|
+
# Selection color {FXColor}
|
86
86
|
attr_accessor :selectColor
|
87
87
|
|
88
88
|
# Status line help text [String]
|