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
@@ -21,21 +21,21 @@ module Fox
21
21
  #
22
22
  # === Message identifiers
23
23
  #
24
- # <tt>ID_CLEAR</tt>:: Clear the list of files
25
- # <tt>ID_ANYFILES</tt>:: x
26
- # <tt>ID_FILE_1</tt>:: x
27
- # <tt>ID_FILE_2</tt>:: x
28
- # <tt>ID_FILE_3</tt>:: x
29
- # <tt>ID_FILE_4</tt>:: x
30
- # <tt>ID_FILE_5</tt>:: x
31
- # <tt>ID_FILE_6</tt>:: x
32
- # <tt>ID_FILE_7</tt>:: x
33
- # <tt>ID_FILE_8</tt>:: x
34
- # <tt>ID_FILE_9</tt>:: x
35
- # <tt>ID_FILE_10</tt>:: x
24
+ # <tt>ID_CLEAR</tt>:: Clear the list of files
25
+ # <tt>ID_ANYFILES</tt>:: x
26
+ # <tt>ID_FILE_1</tt>:: x
27
+ # <tt>ID_FILE_2</tt>:: x
28
+ # <tt>ID_FILE_3</tt>:: x
29
+ # <tt>ID_FILE_4</tt>:: x
30
+ # <tt>ID_FILE_5</tt>:: x
31
+ # <tt>ID_FILE_6</tt>:: x
32
+ # <tt>ID_FILE_7</tt>:: x
33
+ # <tt>ID_FILE_8</tt>:: x
34
+ # <tt>ID_FILE_9</tt>:: x
35
+ # <tt>ID_FILE_10</tt>:: x
36
36
  #
37
37
  class FXRecentFiles < FXObject
38
- # Application associated with this recent files group [FXApp]
38
+ # Application associated with this recent files group {FXApp}
39
39
  attr_reader :app
40
40
 
41
41
  # Maximum number of files to track [Integer]
@@ -44,7 +44,7 @@ module Fox
44
44
  # Group name [String]
45
45
  attr_accessor :groupName
46
46
 
47
- # Message target [FXObject]
47
+ # Message target {FXObject}
48
48
  attr_accessor :target
49
49
 
50
50
  # Message identifier [Integer]
@@ -28,10 +28,10 @@ module Fox
28
28
  #
29
29
  # ==== Parameters:
30
30
  #
31
- # +xx+:: upper left corner's initial x-coordinate [Integer]
32
- # +yy+:: upper left corner's initial y-coordinate [Integer]
33
- # +ww+:: initial width [Integer]
34
- # +hh+:: initial height [Integer]
31
+ # +xx+:: upper left corner's initial x-coordinate [Integer]
32
+ # +yy+:: upper left corner's initial y-coordinate [Integer]
33
+ # +ww+:: initial width [Integer]
34
+ # +hh+:: initial height [Integer]
35
35
  #
36
36
  def initialize(xx, yy, ww, hh); end
37
37
 
@@ -40,8 +40,8 @@ module Fox
40
40
  #
41
41
  # ==== Parameters:
42
42
  #
43
- # +p+:: upper left corner's initial position [FXPoint]
44
- # +s+:: initial size [FXSize]
43
+ # +p+:: upper left corner's initial position {FXPoint}
44
+ # +s+:: initial size {FXSize}
45
45
  #
46
46
  def initialize(p, s); end
47
47
 
@@ -50,8 +50,8 @@ module Fox
50
50
  #
51
51
  # ==== Parameters:
52
52
  #
53
- # +topleft+:: upper left corner's initial position [FXPoint]
54
- # +bottomright+:: bottom right corner's initial position [FXPoint]
53
+ # +topleft+:: upper left corner's initial position {FXPoint}
54
+ # +bottomright+:: bottom right corner's initial position {FXPoint}
55
55
  #
56
56
  def initialize(topleft, bottomright); end
57
57
 
@@ -88,7 +88,7 @@ module Fox
88
88
  #
89
89
  # ==== Parameters:
90
90
  #
91
- # +margin+:: number of units to grow on each side [Integer]
91
+ # +margin+:: number of units to grow on each side [Integer]
92
92
  #
93
93
  def grow!(margin); end
94
94
 
@@ -97,8 +97,8 @@ module Fox
97
97
  #
98
98
  # ==== Parameters:
99
99
  #
100
- # +hormargin+:: number of units to grow on the left and right sides [Integer]
101
- # +vermargin+:: number of units to grow on the top and bottom sides [Integer]
100
+ # +hormargin+:: number of units to grow on the left and right sides [Integer]
101
+ # +vermargin+:: number of units to grow on the top and bottom sides [Integer]
102
102
  #
103
103
  def grow!(hormargin, vermargin); end
104
104
 
@@ -107,10 +107,10 @@ module Fox
107
107
  #
108
108
  # ==== Parameters:
109
109
  #
110
- # +leftmargin+:: number of units to grow on the left side [Integer]
111
- # +rightmargin+:: number of units to grow on the right side [Integer]
112
- # +topmargin+:: number of units to grow on the top side [Integer]
113
- # +bottommargin+:: number of units to grow on the bottom side [Integer]
110
+ # +leftmargin+:: number of units to grow on the left side [Integer]
111
+ # +rightmargin+:: number of units to grow on the right side [Integer]
112
+ # +topmargin+:: number of units to grow on the top side [Integer]
113
+ # +bottommargin+:: number of units to grow on the bottom side [Integer]
114
114
  #
115
115
  def grow!(leftmargin, rightmargin, topmargin, bottommargin); end
116
116
 
@@ -119,7 +119,7 @@ module Fox
119
119
  #
120
120
  # ==== Parameters:
121
121
  #
122
- # +margin+:: number of units to shrink on each side [Integer]
122
+ # +margin+:: number of units to shrink on each side [Integer]
123
123
  #
124
124
  def shrink!(margin); end
125
125
 
@@ -128,8 +128,8 @@ module Fox
128
128
  #
129
129
  # ==== Parameters:
130
130
  #
131
- # +hormargin+:: number of units to shrink on the left and right sides [Integer]
132
- # +vermargin+:: number of units to shrink on the top and bottom sides [Integer]
131
+ # +hormargin+:: number of units to shrink on the left and right sides [Integer]
132
+ # +vermargin+:: number of units to shrink on the top and bottom sides [Integer]
133
133
  #
134
134
  def shrink!(hormargin, vermargin); end
135
135
 
@@ -138,10 +138,10 @@ module Fox
138
138
  #
139
139
  # ==== Parameters:
140
140
  #
141
- # +leftmargin+:: number of units to shrink on the left side [Integer]
142
- # +rightmargin+:: number of units to shrink on the right side [Integer]
143
- # +topmargin+:: number of units to shrink on the top side [Integer]
144
- # +bottommargin+:: number of units to shrink on the bottom side [Integer]
141
+ # +leftmargin+:: number of units to shrink on the left side [Integer]
142
+ # +rightmargin+:: number of units to shrink on the right side [Integer]
143
+ # +topmargin+:: number of units to shrink on the top side [Integer]
144
+ # +bottommargin+:: number of units to shrink on the bottom side [Integer]
145
145
  #
146
146
  def shrink!(leftmargin, rightmargin, topmargin, bottommargin); end
147
147
  end
@@ -23,13 +23,13 @@ module Fox
23
23
  class FXRegistry < FXSettings
24
24
 
25
25
  # Application key [String]
26
- attr_reader :appKey
26
+ attr_reader :appKey
27
27
 
28
28
  # Vendor key [String]
29
- attr_reader :vendorKey
29
+ attr_reader :vendorKey
30
30
 
31
31
  # Use file-based registry instead of Windows Registry [Boolean]
32
- attr_writer :asciiMode
32
+ attr_writer :asciiMode
33
33
 
34
34
  #
35
35
  # Construct registry object; _appKey_ and _vendorKey_ must be string constants.
@@ -9,23 +9,23 @@ module Fox
9
9
  # +ID_SEARCH_UP+:: x
10
10
  # +ID_SEARCH_DN+:: x
11
11
  # +ID_REPLACE_UP+:: x
12
- # +ID_REPLACE_DN+:: x
13
- # +ID_ALL+:: x
14
- # +ID_DIR+:: x
15
- # +ID_SEARCH_TEXT+:: x
16
- # +ID_REPLACE_TEXT+:: x
17
- # +ID_MODE+:: x
12
+ # +ID_REPLACE_DN+:: x
13
+ # +ID_ALL+:: x
14
+ # +ID_DIR+:: x
15
+ # +ID_SEARCH_TEXT+:: x
16
+ # +ID_REPLACE_TEXT+:: x
17
+ # +ID_MODE+:: x
18
18
  #
19
19
  class FXReplaceDialog < FXDialogBox
20
20
  #
21
21
  # Search matching mode, one of the following:
22
22
  #
23
- # +DONE+:: Cancel search
24
- # +SEARCH+:: Search first occurrence
25
- # +REPLACE+:: Replace first occurrence
26
- # +SEARCH_NEXT+:: Search next occurrence
27
- # +REPLACE_NEXT+:: Replace next occurrence
28
- # +REPLACE_ALL+:: Replace all occurrences
23
+ # +DONE+:: Cancel search
24
+ # +SEARCH+:: Search first occurrence
25
+ # +REPLACE+:: Replace first occurrence
26
+ # +SEARCH_NEXT+:: Search next occurrence
27
+ # +REPLACE_NEXT+:: Replace next occurrence
28
+ # +REPLACE_ALL+:: Replace all occurrences
29
29
  #
30
30
  attr_accessor :searchMode
31
31
 
@@ -40,14 +40,14 @@ module Fox
40
40
  #
41
41
  # ==== Parameters:
42
42
  #
43
- # +owner+:: the owner window for this dialog box [FXWindow]
44
- # +caption+:: the caption (title) string for this dialog box [String]
45
- # +ic+:: the icon [FXIcon]
46
- # +opts+:: the options [Integer]
47
- # +x+:: initial x-position [Integer]
48
- # +y+:: initial y-position [Integer]
49
- # +width+:: initial width [Integer]
50
- # +height+:: initial height [Integer]
43
+ # +owner+:: the owner window for this dialog box {FXWindow}
44
+ # +caption+:: the caption (title) string for this dialog box [String]
45
+ # +ic+:: the icon {FXIcon}
46
+ # +opts+:: the options [Integer]
47
+ # +x+:: initial x-position [Integer]
48
+ # +y+:: initial y-position [Integer]
49
+ # +width+:: initial width [Integer]
50
+ # +height+:: initial height [Integer]
51
51
  #
52
52
  def initialize(owner, caption, ic=nil, opts=0, x=0, y=0, width=0, height=0) # :yield: theReplaceDialog
53
53
  end
@@ -8,8 +8,8 @@ module Fox
8
8
  #
9
9
  # ==== Parameters:
10
10
  #
11
- # +a+:: an application instance [FXApp]
12
- # +vis+:: a visual [FXVisual]
11
+ # +a+:: an application instance {FXApp}
12
+ # +vis+:: a visual {FXVisual}
13
13
  #
14
14
  def initialize(a, vis) # :yield: theRootWindow
15
15
  end
@@ -17,38 +17,38 @@ module Fox
17
17
  #
18
18
  # The following messages are sent by FXRuler to its target:
19
19
  #
20
- # +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
21
- # +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
22
- # +SEL_CHANGED+:: sent whenever something about the ruler changes
20
+ # +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
21
+ # +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
22
+ # +SEL_CHANGED+:: sent whenever something about the ruler changes
23
23
  #
24
24
  # === Ruler options
25
25
  #
26
- # +RULER_NORMAL+:: Default appearance (default)
27
- # +RULER_HORIZONTAL+:: Ruler is horizontal (default)
28
- # +RULER_VERTICAL+:: Ruler is vertical
29
- # +RULER_TICKS_OFF+:: Tick marks off (default)
30
- # +RULER_TICKS_TOP+:: Ticks on the top (if horizontal)
31
- # +RULER_TICKS_BOTTOM+:: Ticks on the bottom (if horizontal)
32
- # +RULER_TICKS_LEFT+:: Ticks on the left (if vertical)
33
- # +RULER_TICKS_RIGHT+:: Ticks on the right (if vertical)
34
- # +RULER_TICKS_CENTER+:: Tickmarks centered
35
- # +RULER_NUMBERS+:: Show numbers
36
- # +RULER_ARROW+:: Draw small arrow for cursor position
37
- # +RULER_MARKERS+:: Draw markers for indentation settings
38
- # +RULER_METRIC+:: Metric subdivision (default)
39
- # +RULER_ENGLISH+:: English subdivision
40
- # +RULER_MARGIN_ADJUST+:: Allow margin adjustment
41
- # +RULER_ALIGN_CENTER+:: Center document horizontally
42
- # +RULER_ALIGN_LEFT+:: Align document to the left
43
- # +RULER_ALIGN_RIGHT+:: Align document to the right
44
- # +RULER_ALIGN_TOP+:: Align document to the top
45
- # +RULER_ALIGN_BOTTOM+:: Align document to the bottom
46
- # +RULER_ALIGN_STRETCH+:: Stretch document to fit horizontally
47
- # +RULER_ALIGN_NORMAL+:: Normally, document is centered both ways
26
+ # +RULER_NORMAL+:: Default appearance (default)
27
+ # +RULER_HORIZONTAL+:: Ruler is horizontal (default)
28
+ # +RULER_VERTICAL+:: Ruler is vertical
29
+ # +RULER_TICKS_OFF+:: Tick marks off (default)
30
+ # +RULER_TICKS_TOP+:: Ticks on the top (if horizontal)
31
+ # +RULER_TICKS_BOTTOM+:: Ticks on the bottom (if horizontal)
32
+ # +RULER_TICKS_LEFT+:: Ticks on the left (if vertical)
33
+ # +RULER_TICKS_RIGHT+:: Ticks on the right (if vertical)
34
+ # +RULER_TICKS_CENTER+:: Tickmarks centered
35
+ # +RULER_NUMBERS+:: Show numbers
36
+ # +RULER_ARROW+:: Draw small arrow for cursor position
37
+ # +RULER_MARKERS+:: Draw markers for indentation settings
38
+ # +RULER_METRIC+:: Metric subdivision (default)
39
+ # +RULER_ENGLISH+:: English subdivision
40
+ # +RULER_MARGIN_ADJUST+:: Allow margin adjustment
41
+ # +RULER_ALIGN_CENTER+:: Center document horizontally
42
+ # +RULER_ALIGN_LEFT+:: Align document to the left
43
+ # +RULER_ALIGN_RIGHT+:: Align document to the right
44
+ # +RULER_ALIGN_TOP+:: Align document to the top
45
+ # +RULER_ALIGN_BOTTOM+:: Align document to the bottom
46
+ # +RULER_ALIGN_STRETCH+:: Stretch document to fit horizontally
47
+ # +RULER_ALIGN_NORMAL+:: Normally, document is centered both ways
48
48
  #
49
49
  # === Message identifiers:
50
50
  #
51
- # +ID_ARROW+:: write me
51
+ # +ID_ARROW+:: write me
52
52
  #
53
53
  class FXRuler < FXFrame
54
54
 
@@ -94,7 +94,7 @@ module Fox
94
94
  # Pixels per tick spacing [Float]
95
95
  attr_accessor :pixelsPerTick
96
96
 
97
- # The text font [FXFont]
97
+ # The text font {FXFont}
98
98
  attr_accessor :font
99
99
 
100
100
  # The slider value [Integer]
@@ -106,7 +106,7 @@ module Fox
106
106
  # Ruler alignment [Integer]
107
107
  attr_accessor :rulerAlignment
108
108
 
109
- # The current text color [FXColor]
109
+ # The current text color {FXColor}
110
110
  attr_accessor :textColor
111
111
 
112
112
  # The status line help text for this ruler [String]
@@ -9,10 +9,10 @@ module Fox
9
9
  #
10
10
  class FXRulerView < FXScrollArea
11
11
 
12
- # Return a reference to the horizontal ruler [FXRuler]
12
+ # Return a reference to the horizontal ruler {FXRuler}
13
13
  attr_reader :horizontalRuler
14
14
 
15
- # Return a reference to the vertical ruler [FXRuler]
15
+ # Return a reference to the vertical ruler {FXRuler}
16
16
  attr_reader :verticalRuler
17
17
 
18
18
  # Get document position X [Integer]
@@ -21,7 +21,7 @@ module Fox
21
21
  # Get document position Y [Integer]
22
22
  attr_reader :documentY
23
23
 
24
- # Current document color [FXColor]
24
+ # Current document color {FXColor}
25
25
  attr_accessor :documentColor
26
26
 
27
27
  # X arrow position, relative to document position [Integer]
@@ -72,10 +72,10 @@ module Fox
72
72
  # Vertical alignment; the default is +RULER_ALIGN_NORMAL+ [Integer]
73
73
  attr_accessor :vAlignment
74
74
 
75
- # Horizontal ruler font [FXFont]
75
+ # Horizontal ruler font {FXFont}
76
76
  attr_accessor :hRulerFont
77
77
 
78
- # Vertical ruler font [FXFont]
78
+ # Vertical ruler font {FXFont}
79
79
  attr_accessor :vRulerFont
80
80
 
81
81
  # Horizontal document number placement [Integer]
@@ -15,58 +15,58 @@ module Fox
15
15
  #
16
16
  # === Scrollbar options
17
17
  #
18
- # +SCROLLERS_NORMAL+:: Show the scrollbars when needed
19
- # +HSCROLLER_ALWAYS+:: Always show horizontal scrollers
20
- # +HSCROLLER_NEVER+:: Never show horizontal scrollers
21
- # +VSCROLLER_ALWAYS+:: Always show vertical scrollers
22
- # +VSCROLLER_NEVER+:: Never show vertical scrollers
23
- # +HSCROLLING_ON+:: Horizontal scrolling turned on (default)
24
- # +HSCROLLING_OFF+:: Horizontal scrolling turned off
25
- # +VSCROLLING_ON+:: Vertical scrolling turned on (default)
26
- # +VSCROLLING_OFF+:: Vertical scrolling turned off
27
- # +SCROLLERS_TRACK+:: Scrollers track continuously for smooth scrolling
28
- # +SCROLLERS_DONT_TRACK+:: Scrollers don't track continuously
18
+ # +SCROLLERS_NORMAL+:: Show the scrollbars when needed
19
+ # +HSCROLLER_ALWAYS+:: Always show horizontal scrollers
20
+ # +HSCROLLER_NEVER+:: Never show horizontal scrollers
21
+ # +VSCROLLER_ALWAYS+:: Always show vertical scrollers
22
+ # +VSCROLLER_NEVER+:: Never show vertical scrollers
23
+ # +HSCROLLING_ON+:: Horizontal scrolling turned on (default)
24
+ # +HSCROLLING_OFF+:: Horizontal scrolling turned off
25
+ # +VSCROLLING_ON+:: Vertical scrolling turned on (default)
26
+ # +VSCROLLING_OFF+:: Vertical scrolling turned off
27
+ # +SCROLLERS_TRACK+:: Scrollers track continuously for smooth scrolling
28
+ # +SCROLLERS_DONT_TRACK+:: Scrollers don't track continuously
29
29
  #
30
30
  class FXScrollArea < FXComposite
31
31
 
32
32
  # Viewport width, in pixels [Integer]
33
- attr_reader :viewportWidth
33
+ attr_reader :viewportWidth
34
34
 
35
35
  # Viewport height, in pixels [Integer]
36
- attr_reader :viewportHeight
36
+ attr_reader :viewportHeight
37
37
 
38
38
  # Content width, in pixels [Integer]
39
- attr_reader :contentWidth
39
+ attr_reader :contentWidth
40
40
 
41
41
  # Content height, in pixels [Integer]
42
- attr_reader :contentHeight
42
+ attr_reader :contentHeight
43
43
 
44
44
  # Scroll style [Integer]
45
45
  attr_accessor :scrollStyle
46
46
 
47
- # Horizontal scrollbar [FXScrollBar]
48
- attr_reader :horizontalScrollBar
47
+ # Horizontal scrollbar {FXScrollBar}
48
+ attr_reader :horizontalScrollBar
49
49
 
50
- # Vertical scrollbar [FXScrollBar]
51
- attr_reader :verticalScrollBar
50
+ # Vertical scrollbar {FXScrollBar}
51
+ attr_reader :verticalScrollBar
52
52
 
53
53
  # Current x-position [Integer]
54
- attr_reader :xPosition
54
+ attr_reader :xPosition
55
55
 
56
56
  # Current y-position [Integer]
57
- attr_reader :yPosition
57
+ attr_reader :yPosition
58
58
 
59
59
  #
60
60
  # Return an initialized FXScrollArea instance.
61
61
  #
62
62
  # ==== Parameters:
63
63
  #
64
- # +parent+:: the parent widget for this scroll area [FXComposite]
65
- # +opts+:: the options [Integer]
66
- # +x+:: initial x-position, when the +LAYOUT_FIX_X+ layout hint is in effect [Integer]
67
- # +y+:: initial y-position, when the +LAYOUT_FIX_Y+ layout hint is in effect [Integer]
68
- # +width+:: initial width, when the +LAYOUT_FIX_WIDTH+ layout hint is in effect [Integer]
69
- # +height+:: initial height, when the +LAYOUT_FIX_HEIGHT+ layout hint is in effect [Integer]
64
+ # +parent+:: the parent widget for this scroll area {FXComposite}
65
+ # +opts+:: the options [Integer]
66
+ # +x+:: initial x-position, when the +LAYOUT_FIX_X+ layout hint is in effect [Integer]
67
+ # +y+:: initial y-position, when the +LAYOUT_FIX_Y+ layout hint is in effect [Integer]
68
+ # +width+:: initial width, when the +LAYOUT_FIX_WIDTH+ layout hint is in effect [Integer]
69
+ # +height+:: initial height, when the +LAYOUT_FIX_HEIGHT+ layout hint is in effect [Integer]
70
70
  #
71
71
  def initialize(parent, opts=0, x=0, y=0, width=0, height=0) # :yields: theScrollArea
72
72
  end
@@ -18,12 +18,12 @@ module Fox
18
18
  #
19
19
  # The following messages are sent by FXScrollBar to its target:
20
20
  #
21
- # +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
22
- # +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
23
- # +SEL_MIDDLEBUTTONPRESS+:: sent when the middle mouse button goes down; the message data is an FXEvent instance.
24
- # +SEL_MIDDLEBUTTONRELEASE+:: sent when the middle mouse button goes up; the message data is an FXEvent instance.
25
- # +SEL_RIGHTBUTTONPRESS+:: sent when the right mouse button goes down; the message data is an FXEvent instance.
26
- # +SEL_RIGHTBUTTONRELEASE+:: sent when the right mouse button goes up; the message data is an FXEvent instance.
21
+ # +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
22
+ # +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
23
+ # +SEL_MIDDLEBUTTONPRESS+:: sent when the middle mouse button goes down; the message data is an FXEvent instance.
24
+ # +SEL_MIDDLEBUTTONRELEASE+:: sent when the middle mouse button goes up; the message data is an FXEvent instance.
25
+ # +SEL_RIGHTBUTTONPRESS+:: sent when the right mouse button goes down; the message data is an FXEvent instance.
26
+ # +SEL_RIGHTBUTTONRELEASE+:: sent when the right mouse button goes up; the message data is an FXEvent instance.
27
27
  # +SEL_CHANGED+::
28
28
  # sent continuously while the scroll bar is moving; the message data is an integer
29
29
  # indicating the current position of the scroll bar.
@@ -33,18 +33,18 @@ module Fox
33
33
  #
34
34
  # === Scrollbar styles
35
35
  #
36
- # +SCROLLBAR_HORIZONTAL+:: Horizontally oriented
37
- # +SCROLLBAR_VERTICAL+:: Vertically oriented (the default)
36
+ # +SCROLLBAR_HORIZONTAL+:: Horizontally oriented
37
+ # +SCROLLBAR_VERTICAL+:: Vertically oriented (the default)
38
38
  #
39
39
  # === Message identifiers
40
40
  #
41
- # +ID_TIMEWHEEL+:: x
42
- # +ID_AUTOINC_LINE+:: x
43
- # +ID_AUTODEC_LINE+:: x
44
- # +ID_AUTOINC_PAGE+:: x
45
- # +ID_AUTODEC_PAGE+:: x
46
- # +ID_AUTOINC_PIX+:: x
47
- # +ID_AUTODEC_PIX+:: x
41
+ # +ID_TIMEWHEEL+:: x
42
+ # +ID_AUTOINC_LINE+:: x
43
+ # +ID_AUTODEC_LINE+:: x
44
+ # +ID_AUTOINC_PAGE+:: x
45
+ # +ID_AUTODEC_PAGE+:: x
46
+ # +ID_AUTOINC_PIX+:: x
47
+ # +ID_AUTODEC_PIX+:: x
48
48
  #
49
49
  class FXScrollBar < FXWindow
50
50
  # Content size range [Integer]
@@ -59,13 +59,13 @@ module Fox
59
59
  # Current scroll position [Integer]
60
60
  attr_accessor :position
61
61
 
62
- # Highlight color [FXColor]
62
+ # Highlight color {FXColor}
63
63
  attr_accessor :hiliteColor
64
64
 
65
- # Shadow color [FXColor]
65
+ # Shadow color {FXColor}
66
66
  attr_accessor :shadowColor
67
67
 
68
- # Border color [FXColor]
68
+ # Border color {FXColor}
69
69
  attr_accessor :borderColor
70
70
 
71
71
  # Scroll bar style [Integer]
@@ -79,14 +79,14 @@ module Fox
79
79
  #
80
80
  # ==== Parameters:
81
81
  #
82
- # +p+:: the parent widget for this scroll bar [FXComposite]
83
- # +target+:: the initial message target (if any) for this scroll bar [FXObject]
84
- # +selector+:: the message identifier for this scroll bar [Integer]
85
- # +opts+:: the options [Integer]
86
- # +x+:: initial x-position, when the +LAYOUT_FIX_X+ layout hint is in effect [Integer]
87
- # +y+:: initial y-position, when the +LAYOUT_FIX_Y+ layout hint is in effect [Integer]
88
- # +width+:: initial width, when the +LAYOUT_FIX_WIDTH+ layout hint is in effect [Integer]
89
- # +height+:: initial height, when the +LAYOUT_FIX_HEIGHT+ layout hint is in effect [Integer]
82
+ # +p+:: the parent widget for this scroll bar {FXComposite}
83
+ # +target+:: the initial message target (if any) for this scroll bar {FXObject}
84
+ # +selector+:: the message identifier for this scroll bar [Integer]
85
+ # +opts+:: the options [Integer]
86
+ # +x+:: initial x-position, when the +LAYOUT_FIX_X+ layout hint is in effect [Integer]
87
+ # +y+:: initial y-position, when the +LAYOUT_FIX_Y+ layout hint is in effect [Integer]
88
+ # +width+:: initial width, when the +LAYOUT_FIX_WIDTH+ layout hint is in effect [Integer]
89
+ # +height+:: initial height, when the +LAYOUT_FIX_HEIGHT+ layout hint is in effect [Integer]
90
90
  #
91
91
  def initialize(p, target=nil, selector=0, opts=SCROLLBAR_VERTICAL, x=0, y=0, width=0, height=0) # :yields: theScrollBar
92
92
  end