fxruby 1.6.22 → 1.6.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. data/.gitignore +14 -0
  2. data/.yardopts +8 -0
  3. data/History.txt +6 -0
  4. data/Manifest.txt +317 -24
  5. data/README.git +3 -0
  6. data/README.rdoc +537 -0
  7. data/Rakefile +62 -46
  8. data/Rakefile.cross +397 -0
  9. data/doap.rdf +3 -3
  10. data/doap.rdf.erb +87 -0
  11. data/examples/WhatAQuietStiff.rb +356 -0
  12. data/examples/canvasdemo.rb +88 -0
  13. data/examples/gdchart.rb +76 -0
  14. data/examples/gembrowser.rb +289 -0
  15. data/examples/rmagick.rb +44 -0
  16. data/lib/fox16/canvas.rb +606 -0
  17. data/lib/fox16/irb.rb +1 -0
  18. data/lib/fox16/splashscreen.rb +1 -0
  19. data/lib/fox16/tkcompat.rb +56 -0
  20. data/lib/fox16/version.rb +1 -1
  21. data/rdoc-sources/FX4Splitter.rb +44 -44
  22. data/rdoc-sources/FX7Segment.rb +3 -3
  23. data/rdoc-sources/FXAccelTable.rb +1 -1
  24. data/rdoc-sources/FXApp.rb +51 -51
  25. data/rdoc-sources/FXArrowButton.rb +6 -6
  26. data/rdoc-sources/FXBMPIcon.rb +12 -12
  27. data/rdoc-sources/FXBMPImage.rb +6 -6
  28. data/rdoc-sources/FXBitmap.rb +9 -9
  29. data/rdoc-sources/FXBitmapFrame.rb +3 -3
  30. data/rdoc-sources/FXBitmapView.rb +12 -12
  31. data/rdoc-sources/FXButton.rb +5 -5
  32. data/rdoc-sources/FXCanvas.rb +4 -4
  33. data/rdoc-sources/FXCheckButton.rb +7 -7
  34. data/rdoc-sources/FXChoiceBox.rb +16 -16
  35. data/rdoc-sources/FXColorBar.rb +9 -9
  36. data/rdoc-sources/FXColorDialog.rb +4 -4
  37. data/rdoc-sources/FXColorList.rb +1 -1
  38. data/rdoc-sources/FXColorRing.rb +4 -4
  39. data/rdoc-sources/FXColorSelector.rb +38 -38
  40. data/rdoc-sources/FXColorWell.rb +15 -15
  41. data/rdoc-sources/FXColorWheel.rb +8 -8
  42. data/rdoc-sources/FXComboBox.rb +24 -24
  43. data/rdoc-sources/FXCursor.rb +12 -12
  44. data/rdoc-sources/FXDC.rb +176 -176
  45. data/rdoc-sources/FXDCPrint.rb +20 -20
  46. data/rdoc-sources/FXDCWindow.rb +2 -2
  47. data/rdoc-sources/FXDataTarget.rb +1 -1
  48. data/rdoc-sources/FXDebugTarget.rb +1 -1
  49. data/rdoc-sources/FXDelegator.rb +2 -2
  50. data/rdoc-sources/FXDial.rb +9 -9
  51. data/rdoc-sources/FXDialogBox.rb +3 -3
  52. data/rdoc-sources/FXDict.rb +2 -3
  53. data/rdoc-sources/FXDirBox.rb +2 -2
  54. data/rdoc-sources/FXDirList.rb +14 -14
  55. data/rdoc-sources/FXDirSelector.rb +14 -14
  56. data/rdoc-sources/FXDockBar.rb +35 -35
  57. data/rdoc-sources/FXDockHandler.rb +2 -2
  58. data/rdoc-sources/FXDockSite.rb +11 -11
  59. data/rdoc-sources/FXDockTitle.rb +2 -2
  60. data/rdoc-sources/FXDocument.rb +2 -2
  61. data/rdoc-sources/FXDragCorner.rb +2 -2
  62. data/rdoc-sources/FXDrawable.rb +5 -5
  63. data/rdoc-sources/FXDriveBox.rb +3 -3
  64. data/rdoc-sources/FXFileDialog.rb +24 -24
  65. data/rdoc-sources/FXFileDict.rb +11 -11
  66. data/rdoc-sources/FXFileList.rb +25 -25
  67. data/rdoc-sources/FXFileSelector.rb +31 -31
  68. data/rdoc-sources/FXFileStream.rb +3 -3
  69. data/rdoc-sources/FXFoldingList.rb +76 -76
  70. data/rdoc-sources/FXFont.rb +133 -133
  71. data/rdoc-sources/FXFontDialog.rb +1 -1
  72. data/rdoc-sources/FXFontSelector.rb +14 -14
  73. data/rdoc-sources/FXFrame.rb +5 -5
  74. data/rdoc-sources/FXGIFCursor.rb +6 -6
  75. data/rdoc-sources/FXGIFIcon.rb +6 -6
  76. data/rdoc-sources/FXGIFImage.rb +5 -5
  77. data/rdoc-sources/FXGLContext.rb +1 -1
  78. data/rdoc-sources/FXGLObject.rb +8 -8
  79. data/rdoc-sources/FXGLShape.rb +23 -23
  80. data/rdoc-sources/FXGLViewer.rb +51 -51
  81. data/rdoc-sources/FXGLVisual.rb +1 -0
  82. data/rdoc-sources/FXGradientBar.rb +31 -31
  83. data/rdoc-sources/FXGroupBox.rb +6 -6
  84. data/rdoc-sources/FXHeader.rb +30 -33
  85. data/rdoc-sources/FXHorizontalFrame.rb +12 -12
  86. data/rdoc-sources/FXICOIcon.rb +14 -14
  87. data/rdoc-sources/FXICOImage.rb +5 -5
  88. data/rdoc-sources/FXIcon.rb +7 -7
  89. data/rdoc-sources/FXIconDict.rb +1 -0
  90. data/rdoc-sources/FXIconList.rb +60 -60
  91. data/rdoc-sources/FXId.rb +1 -1
  92. data/rdoc-sources/FXImage.rb +49 -49
  93. data/rdoc-sources/FXImageFrame.rb +12 -12
  94. data/rdoc-sources/FXImageView.rb +10 -10
  95. data/rdoc-sources/FXInputDialog.rb +4 -4
  96. data/rdoc-sources/FXJPGIcon.rb +13 -13
  97. data/rdoc-sources/FXJPGImage.rb +5 -5
  98. data/rdoc-sources/FXKnob.rb +12 -12
  99. data/rdoc-sources/FXLabel.rb +3 -3
  100. data/rdoc-sources/FXList.rb +31 -31
  101. data/rdoc-sources/FXListBox.rb +7 -7
  102. data/rdoc-sources/FXMDIChild.rb +24 -24
  103. data/rdoc-sources/FXMDIClient.rb +1 -1
  104. data/rdoc-sources/FXMatrix.rb +2 -2
  105. data/rdoc-sources/FXMemoryBuffer.rb +1 -1
  106. data/rdoc-sources/FXMemoryStream.rb +1 -1
  107. data/rdoc-sources/FXMenuButton.rb +20 -19
  108. data/rdoc-sources/FXMenuCaption.rb +9 -9
  109. data/rdoc-sources/FXMenuCascade.rb +1 -1
  110. data/rdoc-sources/FXMenuCheck.rb +2 -2
  111. data/rdoc-sources/FXMenuCommand.rb +1 -1
  112. data/rdoc-sources/FXMenuRadio.rb +2 -2
  113. data/rdoc-sources/FXMenuSeparator.rb +2 -2
  114. data/rdoc-sources/FXMenuTitle.rb +5 -5
  115. data/rdoc-sources/FXMessageBox.rb +16 -16
  116. data/rdoc-sources/FXOptionMenu.rb +14 -14
  117. data/rdoc-sources/FXPCXIcon.rb +12 -12
  118. data/rdoc-sources/FXPCXImage.rb +5 -5
  119. data/rdoc-sources/FXPNGIcon.rb +12 -12
  120. data/rdoc-sources/FXPNGImage.rb +5 -5
  121. data/rdoc-sources/FXPPMIcon.rb +6 -6
  122. data/rdoc-sources/FXPPMImage.rb +5 -5
  123. data/rdoc-sources/FXPacker.rb +4 -4
  124. data/rdoc-sources/FXPopup.rb +5 -5
  125. data/rdoc-sources/FXPrintDialog.rb +21 -21
  126. data/rdoc-sources/FXProgressBar.rb +10 -10
  127. data/rdoc-sources/FXProgressDialog.rb +3 -3
  128. data/rdoc-sources/FXQuatd.rb +19 -19
  129. data/rdoc-sources/FXQuatf.rb +23 -23
  130. data/rdoc-sources/FXRGBIcon.rb +13 -13
  131. data/rdoc-sources/FXRGBImage.rb +5 -5
  132. data/rdoc-sources/FXRadioButton.rb +10 -10
  133. data/rdoc-sources/FXRanged.rb +2 -2
  134. data/rdoc-sources/FXRangef.rb +2 -2
  135. data/rdoc-sources/FXRealSlider.rb +33 -33
  136. data/rdoc-sources/FXRealSpinner.rb +31 -31
  137. data/rdoc-sources/FXRecentFiles.rb +14 -14
  138. data/rdoc-sources/FXRectangle.rb +22 -22
  139. data/rdoc-sources/FXRegistry.rb +3 -3
  140. data/rdoc-sources/FXReplaceDialog.rb +20 -20
  141. data/rdoc-sources/FXRootWindow.rb +2 -2
  142. data/rdoc-sources/FXRuler.rb +28 -28
  143. data/rdoc-sources/FXRulerView.rb +5 -5
  144. data/rdoc-sources/FXScrollArea.rb +27 -27
  145. data/rdoc-sources/FXScrollBar.rb +26 -26
  146. data/rdoc-sources/FXScrollPane.rb +3 -3
  147. data/rdoc-sources/FXScrollWindow.rb +6 -6
  148. data/rdoc-sources/FXSearchDialog.rb +8 -8
  149. data/rdoc-sources/FXSeparator.rb +24 -24
  150. data/rdoc-sources/FXSettings.rb +44 -44
  151. data/rdoc-sources/FXShutter.rb +35 -35
  152. data/rdoc-sources/FXSize.rb +14 -14
  153. data/rdoc-sources/FXSlider.rb +33 -33
  154. data/rdoc-sources/FXSphered.rb +2 -2
  155. data/rdoc-sources/FXSpheref.rb +2 -2
  156. data/rdoc-sources/FXSpinner.rb +30 -30
  157. data/rdoc-sources/FXSplashWindow.rb +5 -5
  158. data/rdoc-sources/FXSplitter.rb +18 -18
  159. data/rdoc-sources/FXSpring.rb +15 -15
  160. data/rdoc-sources/FXStatusBar.rb +14 -14
  161. data/rdoc-sources/FXStatusLine.rb +7 -7
  162. data/rdoc-sources/FXStream.rb +20 -20
  163. data/rdoc-sources/FXSwitcher.rb +23 -23
  164. data/rdoc-sources/FXTGAIcon.rb +12 -12
  165. data/rdoc-sources/FXTGAImage.rb +5 -5
  166. data/rdoc-sources/FXTIFIcon.rb +13 -13
  167. data/rdoc-sources/FXTIFImage.rb +5 -5
  168. data/rdoc-sources/FXTabBar.rb +31 -31
  169. data/rdoc-sources/FXTabBook.rb +13 -13
  170. data/rdoc-sources/FXTabItem.rb +22 -22
  171. data/rdoc-sources/FXTable.rb +148 -148
  172. data/rdoc-sources/FXText.rb +91 -91
  173. data/rdoc-sources/FXTextField.rb +39 -39
  174. data/rdoc-sources/FXToggleButton.rb +32 -32
  175. data/rdoc-sources/FXToolBar.rb +25 -25
  176. data/rdoc-sources/FXToolBarGrip.rb +12 -12
  177. data/rdoc-sources/FXToolBarShell.rb +13 -13
  178. data/rdoc-sources/FXToolBarTab.rb +16 -16
  179. data/rdoc-sources/FXTopWindow.rb +18 -18
  180. data/rdoc-sources/FXTranslator.rb +1 -1
  181. data/rdoc-sources/FXTreeList.rb +66 -66
  182. data/rdoc-sources/FXTreeListBox.rb +20 -20
  183. data/rdoc-sources/FXTriStateButton.rb +23 -23
  184. data/rdoc-sources/FXVec2d.rb +1 -1
  185. data/rdoc-sources/FXVec2f.rb +1 -1
  186. data/rdoc-sources/FXVec3d.rb +1 -1
  187. data/rdoc-sources/FXVec3f.rb +1 -1
  188. data/rdoc-sources/FXVec4d.rb +1 -1
  189. data/rdoc-sources/FXVec4f.rb +1 -1
  190. data/rdoc-sources/FXVerticalFrame.rb +12 -12
  191. data/rdoc-sources/FXVisual.rb +19 -19
  192. data/rdoc-sources/FXWindow.rb +96 -96
  193. data/rdoc-sources/FXWizard.rb +9 -9
  194. data/rdoc-sources/FXXBMIcon.rb +7 -7
  195. data/rdoc-sources/FXXBMImage.rb +6 -6
  196. data/rdoc-sources/FXXPMIcon.rb +13 -13
  197. data/rdoc-sources/FXXPMImage.rb +5 -5
  198. data/rdoc-sources/Makefile +3 -3
  199. metadata +44 -31
  200. data/README +0 -39
  201. data/README.txt +0 -483
@@ -23,11 +23,11 @@ module Fox
23
23
  #
24
24
  # ==== Parameters:
25
25
  #
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]
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+:: stream from which to read the file data [FXStream]
42
+ # +store+:: stream from which to read the file data {FXStream}
43
43
  #
44
44
  def Fox.fxloadGIF(store); end
45
45
 
@@ -18,12 +18,12 @@ module Fox
18
18
  #
19
19
  # ==== Parameters:
20
20
  #
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]
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
@@ -16,11 +16,11 @@ module Fox
16
16
  #
17
17
  # ==== Parameters:
18
18
  #
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]
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
@@ -11,7 +11,7 @@ module Fox
11
11
  #
12
12
  class FXGLContext < FXId
13
13
 
14
- # The visual [FXGLVisual]
14
+ # The visual {FXGLVisual}
15
15
  attr_reader :visual
16
16
 
17
17
  # Construct an OpenGL context.
@@ -24,7 +24,7 @@ module Fox
24
24
  #
25
25
  # ==== Parameters:
26
26
  #
27
- # +viewer+:: the viewer window into which we're drawing [FXGLViewer]
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+:: the viewer window into which we're drawing [FXGLViewer]
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+:: 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]
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+:: an array of integers [Array]
70
+ # +path+:: an array of integers [Array]
71
71
  #
72
72
  def identify(path); end
73
73
  end
@@ -4,38 +4,38 @@ module Fox
4
4
  #
5
5
  # === Shape drawing options
6
6
  #
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
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+:: 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
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 [FXVec3f]
38
+ # Position {FXVec3f}
39
39
  attr_accessor :position
40
40
 
41
41
  #
@@ -31,19 +31,19 @@ module Fox
31
31
 
32
32
  # OpenGL Light Source
33
33
  class FXLight
34
- # Ambient light color [FXVec4f]
34
+ # Ambient light color {FXVec4f}
35
35
  attr_accessor :ambient
36
36
 
37
- # Diffuse light color [FXVec4f]
37
+ # Diffuse light color {FXVec4f}
38
38
  attr_accessor :diffuse
39
39
 
40
- # Specular light color [FXVec4f]
40
+ # Specular light color {FXVec4f}
41
41
  attr_accessor :specular
42
42
 
43
- # Light position [FXVec4f]
43
+ # Light position {FXVec4f}
44
44
  attr_accessor :position
45
45
 
46
- # Spot direction [FXVec3f]
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 [FXVec4f]
70
+ # Ambient material color {FXVec4f}
71
71
  attr_accessor :ambient
72
72
 
73
- # Diffuse material color [FXVec4f]
73
+ # Diffuse material color {FXVec4f}
74
74
  attr_accessor :diffuse
75
75
 
76
- # Specular material color [FXVec4f]
76
+ # Specular material color {FXVec4f}
77
77
  attr_accessor :specular
78
78
 
79
- # Emissive material color [FXVec4f]
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+:: 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+).
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+:: Lighting is on
122
- # +VIEWER_FOG+:: Fog mode on
123
- # +VIEWER_DITHER+:: Dithering
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+:: Parallel projection
128
- # +PERSPECTIVE+:: Perspective projection
127
+ # +PARALLEL+:: Parallel projection
128
+ # +PERSPECTIVE+:: Perspective projection
129
129
  #
130
130
  # === Message identifiers
131
131
  #
132
- # +ID_PERSPECTIVE+:: x
133
- # +ID_PARALLEL+:: x
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 [FXViewport]
182
+ # The viewport for this viewer {FXViewport}
183
183
  attr_reader :viewport
184
184
 
185
- # Default object material setting [FXMaterial]
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 [FXVec3f]
197
+ # Current scaling factors {FXVec3f}
198
198
  attr_accessor :scale
199
199
 
200
- # Camera orientation [FXQuatf]
200
+ # Camera orientation {FXQuatf}
201
201
  attr_accessor :orientation
202
202
 
203
- # Object center [FXVec3f]
203
+ # Object center {FXVec3f}
204
204
  attr_accessor :center
205
205
 
206
- # Eyesight vector [FXVec3f]
206
+ # Eyesight vector {FXVec3f}
207
207
  attr_reader :eyeVector
208
208
 
209
- # Eye position [FXVec3f]
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 [FXMat4f]
218
+ # The current transformation matrix {FXMat4f}
219
219
  attr_reader :transform
220
220
 
221
- # The inverse of the current transformation matrix [FXMat4f]
221
+ # The inverse of the current transformation matrix {FXMat4f}
222
222
  attr_reader :invTransform
223
223
 
224
- # The current scene object [FXGLObject]
224
+ # The current scene object {FXGLObject}
225
225
  attr_accessor :scene
226
226
 
227
- # The selection [FXGLObject]
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 [FXMat4f]
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 [FXLight]
243
+ # Light source settings {FXLight}
244
244
  attr_accessor :light
245
245
 
246
246
  # Returns the FXDragType for FXGLObject
@@ -68,6 +68,7 @@ module Fox
68
68
  # Construct default visual
69
69
  #
70
70
  def initialize(app, flags) # :yields: theGLVisual
71
+ end
71
72
 
72
73
  #
73
74
  # Test if OpenGL is possible, and what level is supported.
@@ -16,10 +16,10 @@ module Fox
16
16
  # Upper value [Float]
17
17
  attr_accessor :upper
18
18
 
19
- # Lower color [FXColor]
19
+ # Lower color {FXColor}
20
20
  attr_accessor :lowerColor
21
21
 
22
- # Upper color [FXColor]
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+:: 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.
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+:: 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
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+:: 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
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+:: 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
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 [FXColor]
85
+ # Selection color {FXColor}
86
86
  attr_accessor :selectColor
87
87
 
88
88
  # Status line help text [String]