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
@@ -3,29 +3,29 @@ module Fox
3
3
  # Highlight style entry
4
4
  #
5
5
  class FXHiliteStyle
6
- # Normal text foreground color [FXColor]
7
- attr_accessor :normalForeColor
6
+ # Normal text foreground color {FXColor}
7
+ attr_accessor :normalForeColor
8
8
 
9
- # Normal text background color [FXColor]
10
- attr_accessor :normalBackColor
9
+ # Normal text background color {FXColor}
10
+ attr_accessor :normalBackColor
11
11
 
12
- # Selected text foreground color [FXColor]
13
- attr_accessor :selectForeColor
12
+ # Selected text foreground color {FXColor}
13
+ attr_accessor :selectForeColor
14
14
 
15
- # Selected text background color [FXColor]
16
- attr_accessor :selectBackColor
15
+ # Selected text background color {FXColor}
16
+ attr_accessor :selectBackColor
17
17
 
18
- # Highlight text foreground color [FXColor]
19
- attr_accessor :hiliteForeColor
18
+ # Highlight text foreground color {FXColor}
19
+ attr_accessor :hiliteForeColor
20
20
 
21
- # Highlight text background color [FXColor]
22
- attr_accessor :hiliteBackColor
21
+ # Highlight text background color {FXColor}
22
+ attr_accessor :hiliteBackColor
23
23
 
24
- # Active text background color [FXColor]
25
- attr_accessor :activeBackColor
24
+ # Active text background color {FXColor}
25
+ attr_accessor :activeBackColor
26
26
 
27
27
  # Highlight text style [Integer]
28
- attr_accessor :style
28
+ attr_accessor :style
29
29
  end
30
30
 
31
31
  #
@@ -65,14 +65,14 @@ module Fox
65
65
  #
66
66
  # The following messages are sent by FXText to its target:
67
67
  #
68
- # +SEL_KEYPRESS+:: sent when a key is pressed; the message data is an FXEvent instance.
69
- # +SEL_KEYRELEASE+:: sent when a key is released; the message data is an FXEvent instance.
70
- # +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
71
- # +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
72
- # +SEL_MIDDLEBUTTONPRESS+:: sent when the middle mouse button goes down; the message data is an FXEvent instance.
73
- # +SEL_MIDDLEBUTTONRELEASE+:: sent when the middle mouse button goes up; the message data is an FXEvent instance.
74
- # +SEL_RIGHTBUTTONPRESS+:: sent when the right mouse button goes down; the message data is an FXEvent instance.
75
- # +SEL_RIGHTBUTTONRELEASE+:: sent when the right mouse button goes up; the message data is an FXEvent instance.
68
+ # +SEL_KEYPRESS+:: sent when a key is pressed; the message data is an FXEvent instance.
69
+ # +SEL_KEYRELEASE+:: sent when a key is released; the message data is an FXEvent instance.
70
+ # +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
71
+ # +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
72
+ # +SEL_MIDDLEBUTTONPRESS+:: sent when the middle mouse button goes down; the message data is an FXEvent instance.
73
+ # +SEL_MIDDLEBUTTONRELEASE+:: sent when the middle mouse button goes up; the message data is an FXEvent instance.
74
+ # +SEL_RIGHTBUTTONPRESS+:: sent when the right mouse button goes down; the message data is an FXEvent instance.
75
+ # +SEL_RIGHTBUTTONRELEASE+:: sent when the right mouse button goes up; the message data is an FXEvent instance.
76
76
  # +SEL_INSERTED+::
77
77
  # sent after text is inserted into the text buffer; the message data
78
78
  # is a reference to an FXTextChange instance.
@@ -96,14 +96,14 @@ module Fox
96
96
  #
97
97
  # === Text widget options
98
98
  #
99
- # +TEXT_READONLY+:: Text is _not_ editable
100
- # +TEXT_WORDWRAP+:: Wrap at word breaks
101
- # +TEXT_OVERSTRIKE+:: Overstrike mode
102
- # +TEXT_FIXEDWRAP+:: Fixed wrap columns
103
- # +TEXT_NO_TABS+:: Insert spaces for tabs
104
- # +TEXT_AUTOINDENT+:: Autoindent
105
- # +TEXT_SHOWACTIVE+:: Show active line
106
- # +TEXT_AUTOSCROLL+:: Logging mode, keeping last line visible
99
+ # +TEXT_READONLY+:: Text is _not_ editable
100
+ # +TEXT_WORDWRAP+:: Wrap at word breaks
101
+ # +TEXT_OVERSTRIKE+:: Overstrike mode
102
+ # +TEXT_FIXEDWRAP+:: Fixed wrap columns
103
+ # +TEXT_NO_TABS+:: Insert spaces for tabs
104
+ # +TEXT_AUTOINDENT+:: Autoindent
105
+ # +TEXT_SHOWACTIVE+:: Show active line
106
+ # +TEXT_AUTOSCROLL+:: Logging mode, keeping last line visible
107
107
  #
108
108
  # === Selection modes
109
109
  #
@@ -113,9 +113,9 @@ module Fox
113
113
  #
114
114
  # === Text styles
115
115
  #
116
- # +STYLE_UNDERLINE+:: underline text
117
- # +STYLE_STRIKEOUT+:: strike out text
118
- # +STYLE_BOLD_+:: bold text
116
+ # +STYLE_UNDERLINE+:: underline text
117
+ # +STYLE_STRIKEOUT+:: strike out text
118
+ # +STYLE_BOLD_+:: bold text
119
119
  #
120
120
  # === Message identifiers
121
121
  #
@@ -197,129 +197,129 @@ module Fox
197
197
  class FXText < FXScrollArea
198
198
 
199
199
  # Top margin [Integer]
200
- attr_accessor :marginTop
200
+ attr_accessor :marginTop
201
201
 
202
202
  # Bottom margin [Integer]
203
- attr_accessor :marginBottom
203
+ attr_accessor :marginBottom
204
204
 
205
205
  # Left margin [Integer]
206
- attr_accessor :marginLeft
206
+ attr_accessor :marginLeft
207
207
 
208
208
  # Right margin [Integer]
209
- attr_accessor :marginRight
209
+ attr_accessor :marginRight
210
210
 
211
211
  # Wrap columns [Integer]
212
- attr_accessor :wrapColumns
212
+ attr_accessor :wrapColumns
213
213
 
214
214
  # Tab columns [Integer]
215
- attr_accessor :tabColumns
215
+ attr_accessor :tabColumns
216
216
 
217
217
  # Number of columns used for line numbers [Integer]
218
- attr_accessor :barColumns
218
+ attr_accessor :barColumns
219
219
 
220
220
  # Indicates whether text is modified [Boolean]
221
- attr_writer :modified
221
+ attr_writer :modified
222
222
 
223
223
  # Indicates whether text is editable [Boolean]
224
- attr_writer :editable
224
+ attr_writer :editable
225
225
 
226
226
  # Indicates whether text is styled [Boolean]
227
- attr_writer :styled
227
+ attr_writer :styled
228
228
 
229
229
  # Word delimiters [String]
230
- attr_accessor :delimiters
230
+ attr_accessor :delimiters
231
231
 
232
- # Text font [FXFont]
233
- attr_accessor :font
232
+ # Text font {FXFont}
233
+ attr_accessor :font
234
234
 
235
- # Text color [FXColor]
236
- attr_accessor :textColor
235
+ # Text color {FXColor}
236
+ attr_accessor :textColor
237
237
 
238
- # Selected text background color [FXColor]
239
- attr_accessor :selBackColor
238
+ # Selected text background color {FXColor}
239
+ attr_accessor :selBackColor
240
240
 
241
- # Selected text color [FXColor]
242
- attr_accessor :selTextColor
241
+ # Selected text color {FXColor}
242
+ attr_accessor :selTextColor
243
243
 
244
- # Highlight text color [FXColor]
245
- attr_accessor :hiliteTextColor
244
+ # Highlight text color {FXColor}
245
+ attr_accessor :hiliteTextColor
246
246
 
247
- # Highlight text background color [FXColor]
248
- attr_accessor :hiliteBackColor
247
+ # Highlight text background color {FXColor}
248
+ attr_accessor :hiliteBackColor
249
249
 
250
- # Active background color [FXColor]
251
- attr_accessor :activeBackColor
250
+ # Active background color {FXColor}
251
+ attr_accessor :activeBackColor
252
252
 
253
- # Cursor color [FXColor]
254
- attr_accessor :cursorColor
253
+ # Cursor color {FXColor}
254
+ attr_accessor :cursorColor
255
255
 
256
- # Line number color [FXColor]
257
- attr_accessor :numberColor
256
+ # Line number color {FXColor}
257
+ attr_accessor :numberColor
258
258
 
259
- # Bar color [FXColor]
260
- attr_accessor :barColor
259
+ # Bar color {FXColor}
260
+ attr_accessor :barColor
261
261
 
262
262
  # Status line help text [String]
263
- attr_accessor :helpText
263
+ attr_accessor :helpText
264
264
 
265
265
  # Tool tip message [String]
266
- attr_accessor :tipText
266
+ attr_accessor :tipText
267
267
 
268
268
  # The text buffer [String]
269
- attr_accessor :text
269
+ attr_accessor :text
270
270
 
271
271
  # The length of the text buffer [Integer]
272
- attr_reader :length
272
+ attr_reader :length
273
273
 
274
274
  # Anchor position [Integer]
275
- attr_accessor :anchorPos
275
+ attr_accessor :anchorPos
276
276
 
277
277
  # Cursor row [Integer]
278
- attr_accessor :cursorRow
278
+ attr_accessor :cursorRow
279
279
 
280
280
  # Cursor column [Integer]
281
- attr_accessor :cursorCol
281
+ attr_accessor :cursorCol
282
282
 
283
283
  # Cursor position [Integer]
284
- attr_reader :cursorPos
284
+ attr_reader :cursorPos
285
285
 
286
286
  # Selection start position [Integer]
287
- attr_reader :selStartPos
287
+ attr_reader :selStartPos
288
288
 
289
289
  # Selection end position [Integer]
290
- attr_reader :selEndPos
290
+ attr_reader :selEndPos
291
291
 
292
292
  # Text widget style [Integer]
293
- attr_accessor :textStyle
293
+ attr_accessor :textStyle
294
294
 
295
295
  # Number of visible rows [Integer]
296
- attr_accessor :visibleRows
296
+ attr_accessor :visibleRows
297
297
 
298
298
  # Number of visible columns [Integer]
299
- attr_accessor :visibleColumns
299
+ attr_accessor :visibleColumns
300
300
 
301
301
  #
302
302
  # Brace and parenthesis match highlighting time, in milliseconds [Integer].
303
303
  # A _hiliteMatchTime_ of 0 disables brace matching.
304
304
  #
305
- attr_accessor :hiliteMatchTime
305
+ attr_accessor :hiliteMatchTime
306
306
 
307
307
  # Array of hilite styles [an Array of FXHiliteStyle instances]
308
- attr_accessor :hiliteStyles
308
+ attr_accessor :hiliteStyles
309
309
 
310
310
  #
311
311
  # Return an initialized FXText instance.
312
312
  #
313
313
  # ==== Parameters:
314
314
  #
315
- # +p+:: the parent window for this text widget [FXComposite]
316
- # +target+:: the message target, if any, for this text widget [FXObject]
317
- # +selector+:: the message identifier for this text widget [Integer]
318
- # +opts+:: text options [Integer]
319
- # +x+:: initial x-position [Integer]
320
- # +y+:: initial y-position [Integer]
321
- # +width+:: initial width [Integer]
322
- # +height+:: initial height [Integer]
315
+ # +p+:: the parent window for this text widget {FXComposite}
316
+ # +target+:: the message target, if any, for this text widget {FXObject}
317
+ # +selector+:: the message identifier for this text widget [Integer]
318
+ # +opts+:: text options [Integer]
319
+ # +x+:: initial x-position [Integer]
320
+ # +y+:: initial y-position [Integer]
321
+ # +width+:: initial width [Integer]
322
+ # +height+:: initial height [Integer]
323
323
  #
324
324
  def initialize(p, target=nil, selector=0, opts=0, x=0, y=0, width=0, height=0, padLeft=3, padRight=3, padTop=2, padBottom=2) # :yields: theText
325
325
  end
@@ -457,13 +457,13 @@ module Fox
457
457
  def getPosAt(x, y); end
458
458
 
459
459
  # Count number of rows; _start_ should be on a row start
460
- def countRows(start, end); end
460
+ def countRows(start, end_); end
461
461
 
462
462
  # Count number of columns; _start_ should be on a row start
463
- def countCols(start, end); end
463
+ def countCols(start, end_); end
464
464
 
465
465
  # Count number of newlines
466
- def countLines(start, end); end
466
+ def countLines(start, end_); end
467
467
 
468
468
  # Return position of beginning of line containing position _pos_
469
469
  def lineStart(pos); end
@@ -11,15 +11,15 @@ module Fox
11
11
  #
12
12
  # The following messages are sent from FXTextField to its target:
13
13
  #
14
- # +SEL_COMMAND+:: sent when the user presses the *Enter* key or tabs out of the text field; the message data is a String containing the text.
15
- # +SEL_CHANGED+:: sent when the text changes; the message data is a String containing the text.
16
- # +SEL_VERIFY+:: sent when the user attempts to enter new text in the text field; the message data is a String containing the proposed new text.
17
- # +SEL_KEYPRESS+:: sent when a key goes down; the message data is an FXEvent instance.
18
- # +SEL_KEYRELEASE+:: sent when a key goes up; the message data is an FXEvent instance.
19
- # +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
20
- # +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
21
- # +SEL_MIDDLEBUTTONPRESS+:: sent when the middle mouse button goes down; the message data is an FXEvent instance.
22
- # +SEL_MIDDLEBUTTONRELEASE+:: sent when the middle mouse button goes up; the message data is an FXEvent instance.
14
+ # +SEL_COMMAND+:: sent when the user presses the *Enter* key or tabs out of the text field; the message data is a String containing the text.
15
+ # +SEL_CHANGED+:: sent when the text changes; the message data is a String containing the text.
16
+ # +SEL_VERIFY+:: sent when the user attempts to enter new text in the text field; the message data is a String containing the proposed new text.
17
+ # +SEL_KEYPRESS+:: sent when a key goes down; the message data is an FXEvent instance.
18
+ # +SEL_KEYRELEASE+:: sent when a key goes up; the message data is an FXEvent instance.
19
+ # +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
20
+ # +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
21
+ # +SEL_MIDDLEBUTTONPRESS+:: sent when the middle mouse button goes down; the message data is an FXEvent instance.
22
+ # +SEL_MIDDLEBUTTONRELEASE+:: sent when the middle mouse button goes up; the message data is an FXEvent instance.
23
23
  #
24
24
  # === Textfield styles
25
25
  #
@@ -57,43 +57,43 @@ module Fox
57
57
  class FXTextField < FXFrame
58
58
 
59
59
  # Text field editability [Boolean]
60
- attr_writer :editable
60
+ attr_writer :editable
61
61
 
62
62
  # Cursor position [Integer]
63
- attr_accessor :cursorPos
63
+ attr_accessor :cursorPos
64
64
 
65
65
  # Anchor position [Integer]
66
- attr_accessor :anchorPos
66
+ attr_accessor :anchorPos
67
67
 
68
68
  # Text [String]
69
- attr_accessor :text
69
+ attr_accessor :text
70
70
 
71
- # Text font [FXFont]
72
- attr_accessor :font
71
+ # Text font {FXFont}
72
+ attr_accessor :font
73
73
 
74
- # Text color [FXColor]
75
- attr_accessor :textColor
74
+ # Text color {FXColor}
75
+ attr_accessor :textColor
76
76
 
77
- # Background color for selected text [FXColor]
78
- attr_accessor :selBackColor
77
+ # Background color for selected text {FXColor}
78
+ attr_accessor :selBackColor
79
79
 
80
- # Foreground color for selected text [FXColor]
81
- attr_accessor :selTextColor
80
+ # Foreground color for selected text {FXColor}
81
+ attr_accessor :selTextColor
82
82
 
83
83
  # Default width of this text field, in terms of a number of columns times the width of the numeral '8' [Integer]
84
- attr_accessor :numColumns
84
+ attr_accessor :numColumns
85
85
 
86
86
  # Text justification mode, a combination of horizontal justification (JUSTIFY_LEFT, JUSTIFY_RIGHT, or JUSTIFY_CENTER_X), and vertical justification (JUSTIFY_TOP, JUSTIFY_BOTTOM, JUSTIFY_CENTER_Y) [Integer]
87
- attr_accessor :justify
87
+ attr_accessor :justify
88
88
 
89
89
  # Status line help text [String]
90
- attr_accessor :helpText
90
+ attr_accessor :helpText
91
91
 
92
92
  # Tool tip message [String]
93
- attr_accessor :tipText
93
+ attr_accessor :tipText
94
94
 
95
95
  # Text style [Integer]
96
- attr_accessor :textStyle
96
+ attr_accessor :textStyle
97
97
 
98
98
  #
99
99
  # Return an initialized FXTextField instance.
@@ -101,19 +101,19 @@ module Fox
101
101
  #
102
102
  # ==== Parameters:
103
103
  #
104
- # +p+:: the parent window for this text field [FXComposite]
105
- # +ncols+:: number of visible items [Integer]
106
- # +target+:: the message target, if any, for this text field [FXObject]
107
- # +selector+:: the message identifier for this text field [Integer]
108
- # +opts+:: text field options [Integer]
109
- # +x+:: initial x-position [Integer]
110
- # +y+:: initial y-position [Integer]
111
- # +width+:: initial width [Integer]
112
- # +height+:: initial height [Integer]
113
- # +padLeft+:: internal padding on the left side, in pixels [Integer]
114
- # +padRight+:: internal padding on the right side, in pixels [Integer]
115
- # +padTop+:: internal padding on the top side, in pixels [Integer]
116
- # +padBottom+:: internal padding on the bottom side, in pixels [Integer]
104
+ # +p+:: the parent window for this text field {FXComposite}
105
+ # +ncols+:: number of visible items [Integer]
106
+ # +target+:: the message target, if any, for this text field {FXObject}
107
+ # +selector+:: the message identifier for this text field [Integer]
108
+ # +opts+:: text field options [Integer]
109
+ # +x+:: initial x-position [Integer]
110
+ # +y+:: initial y-position [Integer]
111
+ # +width+:: initial width [Integer]
112
+ # +height+:: initial height [Integer]
113
+ # +padLeft+:: internal padding on the left side, in pixels [Integer]
114
+ # +padRight+:: internal padding on the right side, in pixels [Integer]
115
+ # +padTop+:: internal padding on the top side, in pixels [Integer]
116
+ # +padBottom+:: internal padding on the bottom side, in pixels [Integer]
117
117
  #
118
118
  def initialize(p, ncols, target=nil, selector=0, opts=TEXTFIELD_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theTextField
119
119
  end
@@ -8,61 +8,61 @@ module Fox
8
8
  #
9
9
  # The following messages are sent by FXToggleButton to its target:
10
10
  #
11
- # +SEL_COMMAND+:: sent when the toggle button is pressed.
12
- # +SEL_KEYPRESS+:: sent when a key goes down; the message data is an FXEvent instance.
13
- # +SEL_KEYRELEASE+:: sent when a key goes up; the message data is an FXEvent instance.
14
- # +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
15
- # +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
11
+ # +SEL_COMMAND+:: sent when the toggle button is pressed.
12
+ # +SEL_KEYPRESS+:: sent when a key goes down; the message data is an FXEvent instance.
13
+ # +SEL_KEYRELEASE+:: sent when a key goes up; the message data is an FXEvent instance.
14
+ # +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
15
+ # +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
16
16
  #
17
17
  # === Toggle button flags
18
18
  #
19
- # +TOGGLEBUTTON_AUTOGRAY+:: Automatically gray out when not updated
20
- # +TOGGLEBUTTON_AUTOHIDE+:: Automatically hide toggle button when not updated
21
- # +TOGGLEBUTTON_TOOLBAR+:: Toolbar style toggle button [flat look]
19
+ # +TOGGLEBUTTON_AUTOGRAY+:: Automatically gray out when not updated
20
+ # +TOGGLEBUTTON_AUTOHIDE+:: Automatically hide toggle button when not updated
21
+ # +TOGGLEBUTTON_TOOLBAR+:: Toolbar style toggle button [flat look]
22
22
  # +TOGGLEBUTTON_KEEPSTATE+:: Draw button according to state
23
- # +TOGGLEBUTTON_NORMAL+:: <tt>FRAME_RAISED|FRAME_THICK|JUSTIFY_NORMAL|ICON_BEFORE_TEXT</tt>
23
+ # +TOGGLEBUTTON_NORMAL+:: <tt>FRAME_RAISED|FRAME_THICK|JUSTIFY_NORMAL|ICON_BEFORE_TEXT</tt>
24
24
  #
25
25
  class FXToggleButton < FXLabel
26
26
 
27
27
  # Alternate text, shown when toggled [String]
28
- attr_accessor :altText
28
+ attr_accessor :altText
29
29
 
30
- # Alternate icon, shown when toggled [FXIcon]
31
- attr_accessor :altIcon
30
+ # Alternate icon, shown when toggled {FXIcon}
31
+ attr_accessor :altIcon
32
32
 
33
33
  # Toggled state [+true+ or +false+]
34
- attr_accessor :state
34
+ attr_accessor :state
35
35
 
36
36
  # Alternate status line help text, shown when toggled [String]
37
- attr_accessor :altHelpText
37
+ attr_accessor :altHelpText
38
38
 
39
39
  # Alternate tool tip message, shown when toggled [String]
40
- attr_accessor :altTipText
40
+ attr_accessor :altTipText
41
41
 
42
42
  # Toggle button style [Integer]
43
- attr_accessor :toggleStyle
43
+ attr_accessor :toggleStyle
44
44
 
45
45
  #
46
46
  # Return an initialized FXToggleButton instance.
47
47
  #
48
48
  # ==== Parameters:
49
49
  #
50
- # +p+:: the parent window for this toggle button [FXComposite]
51
- # <tt>text1</tt>:: the text for this toggle button's first state [String]
52
- # <tt>text2</tt>:: the text for this toggle button's second state [String]
53
- # <tt>icon1</tt>:: the icon, if any, for this toggle button's first state [FXIcon]
54
- # <tt>icon2</tt>:: the icon, if any, for this toggle button's second state [FXIcon]
55
- # +target+:: the message target, if any, for this toggle button [FXObject]
56
- # +selector+:: the message identifier for this toggle button [Integer]
57
- # +opts+:: toggle button options [Integer]
58
- # +x+:: initial x-position [Integer]
59
- # +y+:: initial y-position [Integer]
60
- # +width+:: initial width [Integer]
61
- # +height+:: initial height [Integer]
62
- # +padLeft+:: internal padding on the left side, in pixels [Integer]
63
- # +padRight+:: internal padding on the right side, in pixels [Integer]
64
- # +padTop+:: internal padding on the top side, in pixels [Integer]
65
- # +padBottom+:: internal padding on the bottom side, in pixels [Integer]
50
+ # +p+:: the parent window for this toggle button {FXComposite}
51
+ # <tt>text1</tt>:: the text for this toggle button's first state [String]
52
+ # <tt>text2</tt>:: the text for this toggle button's second state [String]
53
+ # <tt>icon1</tt>:: the icon, if any, for this toggle button's first state {FXIcon}
54
+ # <tt>icon2</tt>:: the icon, if any, for this toggle button's second state {FXIcon}
55
+ # +target+:: the message target, if any, for this toggle button {FXObject}
56
+ # +selector+:: the message identifier for this toggle button [Integer]
57
+ # +opts+:: toggle button options [Integer]
58
+ # +x+:: initial x-position [Integer]
59
+ # +y+:: initial y-position [Integer]
60
+ # +width+:: initial width [Integer]
61
+ # +height+:: initial height [Integer]
62
+ # +padLeft+:: internal padding on the left side, in pixels [Integer]
63
+ # +padRight+:: internal padding on the right side, in pixels [Integer]
64
+ # +padTop+:: internal padding on the top side, in pixels [Integer]
65
+ # +padBottom+:: internal padding on the bottom side, in pixels [Integer]
66
66
  #
67
67
  def initialize(p, text1, text2, icon1=nil, icon2=nil, target=nil, selector=0, opts=TOGGLEBUTTON_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theToggleButton
68
68
  end