fxruby 1.6.22-x86-mingw32 → 1.6.23-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +14 -0
- data/.yardopts +8 -0
- data/History.txt +6 -0
- data/Manifest.txt +317 -24
- data/README.git +3 -0
- data/README.rdoc +537 -0
- data/Rakefile +62 -46
- data/Rakefile.cross +397 -0
- data/doap.rdf +3 -3
- data/doap.rdf.erb +87 -0
- data/examples/WhatAQuietStiff.rb +356 -0
- data/examples/canvasdemo.rb +88 -0
- data/examples/gdchart.rb +76 -0
- data/examples/gembrowser.rb +289 -0
- data/examples/rmagick.rb +44 -0
- data/lib/1.8/fox16.so +0 -0
- data/lib/1.9/fox16.so +0 -0
- data/lib/fox16/canvas.rb +606 -0
- data/lib/fox16/irb.rb +1 -0
- data/lib/fox16/splashscreen.rb +1 -0
- data/lib/fox16/tkcompat.rb +56 -0
- data/lib/fox16/version.rb +1 -1
- data/rdoc-sources/FX4Splitter.rb +44 -44
- data/rdoc-sources/FX7Segment.rb +3 -3
- data/rdoc-sources/FXAccelTable.rb +1 -1
- data/rdoc-sources/FXApp.rb +51 -51
- data/rdoc-sources/FXArrowButton.rb +6 -6
- data/rdoc-sources/FXBMPIcon.rb +12 -12
- data/rdoc-sources/FXBMPImage.rb +6 -6
- data/rdoc-sources/FXBitmap.rb +9 -9
- data/rdoc-sources/FXBitmapFrame.rb +3 -3
- data/rdoc-sources/FXBitmapView.rb +12 -12
- data/rdoc-sources/FXButton.rb +5 -5
- data/rdoc-sources/FXCanvas.rb +4 -4
- data/rdoc-sources/FXCheckButton.rb +7 -7
- data/rdoc-sources/FXChoiceBox.rb +16 -16
- data/rdoc-sources/FXColorBar.rb +9 -9
- data/rdoc-sources/FXColorDialog.rb +4 -4
- data/rdoc-sources/FXColorList.rb +1 -1
- data/rdoc-sources/FXColorRing.rb +4 -4
- data/rdoc-sources/FXColorSelector.rb +38 -38
- data/rdoc-sources/FXColorWell.rb +15 -15
- data/rdoc-sources/FXColorWheel.rb +8 -8
- data/rdoc-sources/FXComboBox.rb +24 -24
- data/rdoc-sources/FXCursor.rb +12 -12
- data/rdoc-sources/FXDC.rb +176 -176
- data/rdoc-sources/FXDCPrint.rb +20 -20
- data/rdoc-sources/FXDCWindow.rb +2 -2
- data/rdoc-sources/FXDataTarget.rb +1 -1
- data/rdoc-sources/FXDebugTarget.rb +1 -1
- data/rdoc-sources/FXDelegator.rb +2 -2
- data/rdoc-sources/FXDial.rb +9 -9
- data/rdoc-sources/FXDialogBox.rb +3 -3
- data/rdoc-sources/FXDict.rb +2 -3
- data/rdoc-sources/FXDirBox.rb +2 -2
- data/rdoc-sources/FXDirList.rb +14 -14
- data/rdoc-sources/FXDirSelector.rb +14 -14
- data/rdoc-sources/FXDockBar.rb +35 -35
- data/rdoc-sources/FXDockHandler.rb +2 -2
- data/rdoc-sources/FXDockSite.rb +11 -11
- data/rdoc-sources/FXDockTitle.rb +2 -2
- data/rdoc-sources/FXDocument.rb +2 -2
- data/rdoc-sources/FXDragCorner.rb +2 -2
- data/rdoc-sources/FXDrawable.rb +5 -5
- data/rdoc-sources/FXDriveBox.rb +3 -3
- data/rdoc-sources/FXFileDialog.rb +24 -24
- data/rdoc-sources/FXFileDict.rb +11 -11
- data/rdoc-sources/FXFileList.rb +25 -25
- data/rdoc-sources/FXFileSelector.rb +31 -31
- data/rdoc-sources/FXFileStream.rb +3 -3
- data/rdoc-sources/FXFoldingList.rb +76 -76
- data/rdoc-sources/FXFont.rb +133 -133
- data/rdoc-sources/FXFontDialog.rb +1 -1
- data/rdoc-sources/FXFontSelector.rb +14 -14
- data/rdoc-sources/FXFrame.rb +5 -5
- data/rdoc-sources/FXGIFCursor.rb +6 -6
- data/rdoc-sources/FXGIFIcon.rb +6 -6
- data/rdoc-sources/FXGIFImage.rb +5 -5
- data/rdoc-sources/FXGLContext.rb +1 -1
- data/rdoc-sources/FXGLObject.rb +8 -8
- data/rdoc-sources/FXGLShape.rb +23 -23
- data/rdoc-sources/FXGLViewer.rb +51 -51
- data/rdoc-sources/FXGLVisual.rb +1 -0
- data/rdoc-sources/FXGradientBar.rb +31 -31
- data/rdoc-sources/FXGroupBox.rb +6 -6
- data/rdoc-sources/FXHeader.rb +30 -33
- data/rdoc-sources/FXHorizontalFrame.rb +12 -12
- data/rdoc-sources/FXICOIcon.rb +14 -14
- data/rdoc-sources/FXICOImage.rb +5 -5
- data/rdoc-sources/FXIcon.rb +7 -7
- data/rdoc-sources/FXIconDict.rb +1 -0
- data/rdoc-sources/FXIconList.rb +60 -60
- data/rdoc-sources/FXId.rb +1 -1
- data/rdoc-sources/FXImage.rb +49 -49
- data/rdoc-sources/FXImageFrame.rb +12 -12
- data/rdoc-sources/FXImageView.rb +10 -10
- data/rdoc-sources/FXInputDialog.rb +4 -4
- data/rdoc-sources/FXJPGIcon.rb +13 -13
- data/rdoc-sources/FXJPGImage.rb +5 -5
- data/rdoc-sources/FXKnob.rb +12 -12
- data/rdoc-sources/FXLabel.rb +3 -3
- data/rdoc-sources/FXList.rb +31 -31
- data/rdoc-sources/FXListBox.rb +7 -7
- data/rdoc-sources/FXMDIChild.rb +24 -24
- data/rdoc-sources/FXMDIClient.rb +1 -1
- data/rdoc-sources/FXMatrix.rb +2 -2
- data/rdoc-sources/FXMemoryBuffer.rb +1 -1
- data/rdoc-sources/FXMemoryStream.rb +1 -1
- data/rdoc-sources/FXMenuButton.rb +20 -19
- data/rdoc-sources/FXMenuCaption.rb +9 -9
- data/rdoc-sources/FXMenuCascade.rb +1 -1
- data/rdoc-sources/FXMenuCheck.rb +2 -2
- data/rdoc-sources/FXMenuCommand.rb +1 -1
- data/rdoc-sources/FXMenuRadio.rb +2 -2
- data/rdoc-sources/FXMenuSeparator.rb +2 -2
- data/rdoc-sources/FXMenuTitle.rb +5 -5
- data/rdoc-sources/FXMessageBox.rb +16 -16
- data/rdoc-sources/FXOptionMenu.rb +14 -14
- data/rdoc-sources/FXPCXIcon.rb +12 -12
- data/rdoc-sources/FXPCXImage.rb +5 -5
- data/rdoc-sources/FXPNGIcon.rb +12 -12
- data/rdoc-sources/FXPNGImage.rb +5 -5
- data/rdoc-sources/FXPPMIcon.rb +6 -6
- data/rdoc-sources/FXPPMImage.rb +5 -5
- data/rdoc-sources/FXPacker.rb +4 -4
- data/rdoc-sources/FXPopup.rb +5 -5
- data/rdoc-sources/FXPrintDialog.rb +21 -21
- data/rdoc-sources/FXProgressBar.rb +10 -10
- data/rdoc-sources/FXProgressDialog.rb +3 -3
- data/rdoc-sources/FXQuatd.rb +19 -19
- data/rdoc-sources/FXQuatf.rb +23 -23
- data/rdoc-sources/FXRGBIcon.rb +13 -13
- data/rdoc-sources/FXRGBImage.rb +5 -5
- data/rdoc-sources/FXRadioButton.rb +10 -10
- data/rdoc-sources/FXRanged.rb +2 -2
- data/rdoc-sources/FXRangef.rb +2 -2
- data/rdoc-sources/FXRealSlider.rb +33 -33
- data/rdoc-sources/FXRealSpinner.rb +31 -31
- data/rdoc-sources/FXRecentFiles.rb +14 -14
- data/rdoc-sources/FXRectangle.rb +22 -22
- data/rdoc-sources/FXRegistry.rb +3 -3
- data/rdoc-sources/FXReplaceDialog.rb +20 -20
- data/rdoc-sources/FXRootWindow.rb +2 -2
- data/rdoc-sources/FXRuler.rb +28 -28
- data/rdoc-sources/FXRulerView.rb +5 -5
- data/rdoc-sources/FXScrollArea.rb +27 -27
- data/rdoc-sources/FXScrollBar.rb +26 -26
- data/rdoc-sources/FXScrollPane.rb +3 -3
- data/rdoc-sources/FXScrollWindow.rb +6 -6
- data/rdoc-sources/FXSearchDialog.rb +8 -8
- data/rdoc-sources/FXSeparator.rb +24 -24
- data/rdoc-sources/FXSettings.rb +44 -44
- data/rdoc-sources/FXShutter.rb +35 -35
- data/rdoc-sources/FXSize.rb +14 -14
- data/rdoc-sources/FXSlider.rb +33 -33
- data/rdoc-sources/FXSphered.rb +2 -2
- data/rdoc-sources/FXSpheref.rb +2 -2
- data/rdoc-sources/FXSpinner.rb +30 -30
- data/rdoc-sources/FXSplashWindow.rb +5 -5
- data/rdoc-sources/FXSplitter.rb +18 -18
- data/rdoc-sources/FXSpring.rb +15 -15
- data/rdoc-sources/FXStatusBar.rb +14 -14
- data/rdoc-sources/FXStatusLine.rb +7 -7
- data/rdoc-sources/FXStream.rb +20 -20
- data/rdoc-sources/FXSwitcher.rb +23 -23
- data/rdoc-sources/FXTGAIcon.rb +12 -12
- data/rdoc-sources/FXTGAImage.rb +5 -5
- data/rdoc-sources/FXTIFIcon.rb +13 -13
- data/rdoc-sources/FXTIFImage.rb +5 -5
- data/rdoc-sources/FXTabBar.rb +31 -31
- data/rdoc-sources/FXTabBook.rb +13 -13
- data/rdoc-sources/FXTabItem.rb +22 -22
- data/rdoc-sources/FXTable.rb +148 -148
- data/rdoc-sources/FXText.rb +91 -91
- data/rdoc-sources/FXTextField.rb +39 -39
- data/rdoc-sources/FXToggleButton.rb +32 -32
- data/rdoc-sources/FXToolBar.rb +25 -25
- data/rdoc-sources/FXToolBarGrip.rb +12 -12
- data/rdoc-sources/FXToolBarShell.rb +13 -13
- data/rdoc-sources/FXToolBarTab.rb +16 -16
- data/rdoc-sources/FXTopWindow.rb +18 -18
- data/rdoc-sources/FXTranslator.rb +1 -1
- data/rdoc-sources/FXTreeList.rb +66 -66
- data/rdoc-sources/FXTreeListBox.rb +20 -20
- data/rdoc-sources/FXTriStateButton.rb +23 -23
- data/rdoc-sources/FXVec2d.rb +1 -1
- data/rdoc-sources/FXVec2f.rb +1 -1
- data/rdoc-sources/FXVec3d.rb +1 -1
- data/rdoc-sources/FXVec3f.rb +1 -1
- data/rdoc-sources/FXVec4d.rb +1 -1
- data/rdoc-sources/FXVec4f.rb +1 -1
- data/rdoc-sources/FXVerticalFrame.rb +12 -12
- data/rdoc-sources/FXVisual.rb +19 -19
- data/rdoc-sources/FXWindow.rb +96 -96
- data/rdoc-sources/FXWizard.rb +9 -9
- data/rdoc-sources/FXXBMIcon.rb +7 -7
- data/rdoc-sources/FXXBMImage.rb +6 -6
- data/rdoc-sources/FXXPMIcon.rb +13 -13
- data/rdoc-sources/FXXPMImage.rb +5 -5
- data/rdoc-sources/Makefile +3 -3
- metadata +44 -31
- data/README +0 -39
- data/README.txt +0 -483
data/rdoc-sources/FXText.rb
CHANGED
@@ -3,29 +3,29 @@ module Fox
|
|
3
3
|
# Highlight style entry
|
4
4
|
#
|
5
5
|
class FXHiliteStyle
|
6
|
-
# Normal text foreground color
|
7
|
-
attr_accessor
|
6
|
+
# Normal text foreground color {FXColor}
|
7
|
+
attr_accessor :normalForeColor
|
8
8
|
|
9
|
-
# Normal text background color
|
10
|
-
attr_accessor
|
9
|
+
# Normal text background color {FXColor}
|
10
|
+
attr_accessor :normalBackColor
|
11
11
|
|
12
|
-
# Selected text foreground color
|
13
|
-
attr_accessor
|
12
|
+
# Selected text foreground color {FXColor}
|
13
|
+
attr_accessor :selectForeColor
|
14
14
|
|
15
|
-
# Selected text background color
|
16
|
-
attr_accessor
|
15
|
+
# Selected text background color {FXColor}
|
16
|
+
attr_accessor :selectBackColor
|
17
17
|
|
18
|
-
# Highlight text foreground color
|
19
|
-
attr_accessor
|
18
|
+
# Highlight text foreground color {FXColor}
|
19
|
+
attr_accessor :hiliteForeColor
|
20
20
|
|
21
|
-
# Highlight text background color
|
22
|
-
attr_accessor
|
21
|
+
# Highlight text background color {FXColor}
|
22
|
+
attr_accessor :hiliteBackColor
|
23
23
|
|
24
|
-
# Active text background color
|
25
|
-
attr_accessor
|
24
|
+
# Active text background color {FXColor}
|
25
|
+
attr_accessor :activeBackColor
|
26
26
|
|
27
27
|
# Highlight text style [Integer]
|
28
|
-
attr_accessor
|
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+::
|
69
|
-
# +SEL_KEYRELEASE+::
|
70
|
-
# +SEL_LEFTBUTTONPRESS+::
|
71
|
-
# +SEL_LEFTBUTTONRELEASE+::
|
72
|
-
# +SEL_MIDDLEBUTTONPRESS+::
|
73
|
-
# +SEL_MIDDLEBUTTONRELEASE+::
|
74
|
-
# +SEL_RIGHTBUTTONPRESS+::
|
75
|
-
# +SEL_RIGHTBUTTONRELEASE+::
|
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+::
|
100
|
-
# +TEXT_WORDWRAP+::
|
101
|
-
# +TEXT_OVERSTRIKE+::
|
102
|
-
# +TEXT_FIXEDWRAP+::
|
103
|
-
# +TEXT_NO_TABS+::
|
104
|
-
# +TEXT_AUTOINDENT+::
|
105
|
-
# +TEXT_SHOWACTIVE+::
|
106
|
-
# +TEXT_AUTOSCROLL+::
|
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+::
|
117
|
-
# +STYLE_STRIKEOUT+::
|
118
|
-
# +STYLE_BOLD_+::
|
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
|
200
|
+
attr_accessor :marginTop
|
201
201
|
|
202
202
|
# Bottom margin [Integer]
|
203
|
-
attr_accessor
|
203
|
+
attr_accessor :marginBottom
|
204
204
|
|
205
205
|
# Left margin [Integer]
|
206
|
-
attr_accessor
|
206
|
+
attr_accessor :marginLeft
|
207
207
|
|
208
208
|
# Right margin [Integer]
|
209
|
-
attr_accessor
|
209
|
+
attr_accessor :marginRight
|
210
210
|
|
211
211
|
# Wrap columns [Integer]
|
212
|
-
attr_accessor
|
212
|
+
attr_accessor :wrapColumns
|
213
213
|
|
214
214
|
# Tab columns [Integer]
|
215
|
-
attr_accessor
|
215
|
+
attr_accessor :tabColumns
|
216
216
|
|
217
217
|
# Number of columns used for line numbers [Integer]
|
218
|
-
attr_accessor
|
218
|
+
attr_accessor :barColumns
|
219
219
|
|
220
220
|
# Indicates whether text is modified [Boolean]
|
221
|
-
attr_writer
|
221
|
+
attr_writer :modified
|
222
222
|
|
223
223
|
# Indicates whether text is editable [Boolean]
|
224
|
-
attr_writer
|
224
|
+
attr_writer :editable
|
225
225
|
|
226
226
|
# Indicates whether text is styled [Boolean]
|
227
|
-
attr_writer
|
227
|
+
attr_writer :styled
|
228
228
|
|
229
229
|
# Word delimiters [String]
|
230
|
-
attr_accessor
|
230
|
+
attr_accessor :delimiters
|
231
231
|
|
232
|
-
# Text font
|
233
|
-
attr_accessor
|
232
|
+
# Text font {FXFont}
|
233
|
+
attr_accessor :font
|
234
234
|
|
235
|
-
# Text color
|
236
|
-
attr_accessor
|
235
|
+
# Text color {FXColor}
|
236
|
+
attr_accessor :textColor
|
237
237
|
|
238
|
-
# Selected text background color
|
239
|
-
attr_accessor
|
238
|
+
# Selected text background color {FXColor}
|
239
|
+
attr_accessor :selBackColor
|
240
240
|
|
241
|
-
# Selected text color
|
242
|
-
attr_accessor
|
241
|
+
# Selected text color {FXColor}
|
242
|
+
attr_accessor :selTextColor
|
243
243
|
|
244
|
-
# Highlight text color
|
245
|
-
attr_accessor
|
244
|
+
# Highlight text color {FXColor}
|
245
|
+
attr_accessor :hiliteTextColor
|
246
246
|
|
247
|
-
# Highlight text background color
|
248
|
-
attr_accessor
|
247
|
+
# Highlight text background color {FXColor}
|
248
|
+
attr_accessor :hiliteBackColor
|
249
249
|
|
250
|
-
# Active background color
|
251
|
-
attr_accessor
|
250
|
+
# Active background color {FXColor}
|
251
|
+
attr_accessor :activeBackColor
|
252
252
|
|
253
|
-
# Cursor color
|
254
|
-
attr_accessor
|
253
|
+
# Cursor color {FXColor}
|
254
|
+
attr_accessor :cursorColor
|
255
255
|
|
256
|
-
# Line number color
|
257
|
-
attr_accessor
|
256
|
+
# Line number color {FXColor}
|
257
|
+
attr_accessor :numberColor
|
258
258
|
|
259
|
-
# Bar color
|
260
|
-
attr_accessor
|
259
|
+
# Bar color {FXColor}
|
260
|
+
attr_accessor :barColor
|
261
261
|
|
262
262
|
# Status line help text [String]
|
263
|
-
attr_accessor
|
263
|
+
attr_accessor :helpText
|
264
264
|
|
265
265
|
# Tool tip message [String]
|
266
|
-
attr_accessor
|
266
|
+
attr_accessor :tipText
|
267
267
|
|
268
268
|
# The text buffer [String]
|
269
|
-
attr_accessor
|
269
|
+
attr_accessor :text
|
270
270
|
|
271
271
|
# The length of the text buffer [Integer]
|
272
|
-
attr_reader
|
272
|
+
attr_reader :length
|
273
273
|
|
274
274
|
# Anchor position [Integer]
|
275
|
-
attr_accessor
|
275
|
+
attr_accessor :anchorPos
|
276
276
|
|
277
277
|
# Cursor row [Integer]
|
278
|
-
attr_accessor
|
278
|
+
attr_accessor :cursorRow
|
279
279
|
|
280
280
|
# Cursor column [Integer]
|
281
|
-
attr_accessor
|
281
|
+
attr_accessor :cursorCol
|
282
282
|
|
283
283
|
# Cursor position [Integer]
|
284
|
-
attr_reader
|
284
|
+
attr_reader :cursorPos
|
285
285
|
|
286
286
|
# Selection start position [Integer]
|
287
|
-
attr_reader
|
287
|
+
attr_reader :selStartPos
|
288
288
|
|
289
289
|
# Selection end position [Integer]
|
290
|
-
attr_reader
|
290
|
+
attr_reader :selEndPos
|
291
291
|
|
292
292
|
# Text widget style [Integer]
|
293
|
-
attr_accessor
|
293
|
+
attr_accessor :textStyle
|
294
294
|
|
295
295
|
# Number of visible rows [Integer]
|
296
|
-
attr_accessor
|
296
|
+
attr_accessor :visibleRows
|
297
297
|
|
298
298
|
# Number of visible columns [Integer]
|
299
|
-
attr_accessor
|
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
|
305
|
+
attr_accessor :hiliteMatchTime
|
306
306
|
|
307
307
|
# Array of hilite styles [an Array of FXHiliteStyle instances]
|
308
|
-
attr_accessor
|
308
|
+
attr_accessor :hiliteStyles
|
309
309
|
|
310
310
|
#
|
311
311
|
# Return an initialized FXText instance.
|
312
312
|
#
|
313
313
|
# ==== Parameters:
|
314
314
|
#
|
315
|
-
# +p+::
|
316
|
-
# +target+::
|
317
|
-
# +selector+::
|
318
|
-
# +opts+::
|
319
|
-
# +x+::
|
320
|
-
# +y+::
|
321
|
-
# +width+::
|
322
|
-
# +height+::
|
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,
|
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,
|
463
|
+
def countCols(start, end_); end
|
464
464
|
|
465
465
|
# Count number of newlines
|
466
|
-
def countLines(start,
|
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
|
data/rdoc-sources/FXTextField.rb
CHANGED
@@ -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+::
|
15
|
-
# +SEL_CHANGED+::
|
16
|
-
# +SEL_VERIFY+::
|
17
|
-
# +SEL_KEYPRESS+::
|
18
|
-
# +SEL_KEYRELEASE+::
|
19
|
-
# +SEL_LEFTBUTTONPRESS+::
|
20
|
-
# +SEL_LEFTBUTTONRELEASE+::
|
21
|
-
# +SEL_MIDDLEBUTTONPRESS+::
|
22
|
-
# +SEL_MIDDLEBUTTONRELEASE+::
|
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
|
60
|
+
attr_writer :editable
|
61
61
|
|
62
62
|
# Cursor position [Integer]
|
63
|
-
attr_accessor
|
63
|
+
attr_accessor :cursorPos
|
64
64
|
|
65
65
|
# Anchor position [Integer]
|
66
|
-
attr_accessor
|
66
|
+
attr_accessor :anchorPos
|
67
67
|
|
68
68
|
# Text [String]
|
69
|
-
attr_accessor
|
69
|
+
attr_accessor :text
|
70
70
|
|
71
|
-
# Text font
|
72
|
-
attr_accessor
|
71
|
+
# Text font {FXFont}
|
72
|
+
attr_accessor :font
|
73
73
|
|
74
|
-
# Text color
|
75
|
-
attr_accessor
|
74
|
+
# Text color {FXColor}
|
75
|
+
attr_accessor :textColor
|
76
76
|
|
77
|
-
# Background color for selected text
|
78
|
-
attr_accessor
|
77
|
+
# Background color for selected text {FXColor}
|
78
|
+
attr_accessor :selBackColor
|
79
79
|
|
80
|
-
# Foreground color for selected text
|
81
|
-
attr_accessor
|
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
|
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
|
87
|
+
attr_accessor :justify
|
88
88
|
|
89
89
|
# Status line help text [String]
|
90
|
-
attr_accessor
|
90
|
+
attr_accessor :helpText
|
91
91
|
|
92
92
|
# Tool tip message [String]
|
93
|
-
attr_accessor
|
93
|
+
attr_accessor :tipText
|
94
94
|
|
95
95
|
# Text style [Integer]
|
96
|
-
attr_accessor
|
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+::
|
105
|
-
# +ncols+::
|
106
|
-
# +target+::
|
107
|
-
# +selector+::
|
108
|
-
# +opts+::
|
109
|
-
# +x+::
|
110
|
-
# +y+::
|
111
|
-
# +width+::
|
112
|
-
# +height+::
|
113
|
-
# +padLeft+::
|
114
|
-
# +padRight+::
|
115
|
-
# +padTop+::
|
116
|
-
# +padBottom+::
|
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+::
|
12
|
-
# +SEL_KEYPRESS+::
|
13
|
-
# +SEL_KEYRELEASE+::
|
14
|
-
# +SEL_LEFTBUTTONPRESS+::
|
15
|
-
# +SEL_LEFTBUTTONRELEASE+::
|
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+::
|
20
|
-
# +TOGGLEBUTTON_AUTOHIDE+::
|
21
|
-
# +TOGGLEBUTTON_TOOLBAR+::
|
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+::
|
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
|
28
|
+
attr_accessor :altText
|
29
29
|
|
30
|
-
# Alternate icon, shown when toggled
|
31
|
-
attr_accessor
|
30
|
+
# Alternate icon, shown when toggled {FXIcon}
|
31
|
+
attr_accessor :altIcon
|
32
32
|
|
33
33
|
# Toggled state [+true+ or +false+]
|
34
|
-
attr_accessor
|
34
|
+
attr_accessor :state
|
35
35
|
|
36
36
|
# Alternate status line help text, shown when toggled [String]
|
37
|
-
attr_accessor
|
37
|
+
attr_accessor :altHelpText
|
38
38
|
|
39
39
|
# Alternate tool tip message, shown when toggled [String]
|
40
|
-
attr_accessor
|
40
|
+
attr_accessor :altTipText
|
41
41
|
|
42
42
|
# Toggle button style [Integer]
|
43
|
-
attr_accessor
|
43
|
+
attr_accessor :toggleStyle
|
44
44
|
|
45
45
|
#
|
46
46
|
# Return an initialized FXToggleButton instance.
|
47
47
|
#
|
48
48
|
# ==== Parameters:
|
49
49
|
#
|
50
|
-
# +p+::
|
51
|
-
# <tt>text1</tt>::
|
52
|
-
# <tt>text2</tt>::
|
53
|
-
# <tt>icon1</tt>::
|
54
|
-
# <tt>icon2</tt>::
|
55
|
-
# +target+::
|
56
|
-
# +selector+::
|
57
|
-
# +opts+::
|
58
|
-
# +x+::
|
59
|
-
# +y+::
|
60
|
-
# +width+::
|
61
|
-
# +height+::
|
62
|
-
# +padLeft+::
|
63
|
-
# +padRight+::
|
64
|
-
# +padTop+::
|
65
|
-
# +padBottom+::
|
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
|