fxruby 1.6.22 → 1.6.23
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +14 -0
- data/.yardopts +8 -0
- data/History.txt +6 -0
- data/Manifest.txt +317 -24
- data/README.git +3 -0
- data/README.rdoc +537 -0
- data/Rakefile +62 -46
- data/Rakefile.cross +397 -0
- data/doap.rdf +3 -3
- data/doap.rdf.erb +87 -0
- data/examples/WhatAQuietStiff.rb +356 -0
- data/examples/canvasdemo.rb +88 -0
- data/examples/gdchart.rb +76 -0
- data/examples/gembrowser.rb +289 -0
- data/examples/rmagick.rb +44 -0
- data/lib/fox16/canvas.rb +606 -0
- data/lib/fox16/irb.rb +1 -0
- data/lib/fox16/splashscreen.rb +1 -0
- data/lib/fox16/tkcompat.rb +56 -0
- data/lib/fox16/version.rb +1 -1
- data/rdoc-sources/FX4Splitter.rb +44 -44
- data/rdoc-sources/FX7Segment.rb +3 -3
- data/rdoc-sources/FXAccelTable.rb +1 -1
- data/rdoc-sources/FXApp.rb +51 -51
- data/rdoc-sources/FXArrowButton.rb +6 -6
- data/rdoc-sources/FXBMPIcon.rb +12 -12
- data/rdoc-sources/FXBMPImage.rb +6 -6
- data/rdoc-sources/FXBitmap.rb +9 -9
- data/rdoc-sources/FXBitmapFrame.rb +3 -3
- data/rdoc-sources/FXBitmapView.rb +12 -12
- data/rdoc-sources/FXButton.rb +5 -5
- data/rdoc-sources/FXCanvas.rb +4 -4
- data/rdoc-sources/FXCheckButton.rb +7 -7
- data/rdoc-sources/FXChoiceBox.rb +16 -16
- data/rdoc-sources/FXColorBar.rb +9 -9
- data/rdoc-sources/FXColorDialog.rb +4 -4
- data/rdoc-sources/FXColorList.rb +1 -1
- data/rdoc-sources/FXColorRing.rb +4 -4
- data/rdoc-sources/FXColorSelector.rb +38 -38
- data/rdoc-sources/FXColorWell.rb +15 -15
- data/rdoc-sources/FXColorWheel.rb +8 -8
- data/rdoc-sources/FXComboBox.rb +24 -24
- data/rdoc-sources/FXCursor.rb +12 -12
- data/rdoc-sources/FXDC.rb +176 -176
- data/rdoc-sources/FXDCPrint.rb +20 -20
- data/rdoc-sources/FXDCWindow.rb +2 -2
- data/rdoc-sources/FXDataTarget.rb +1 -1
- data/rdoc-sources/FXDebugTarget.rb +1 -1
- data/rdoc-sources/FXDelegator.rb +2 -2
- data/rdoc-sources/FXDial.rb +9 -9
- data/rdoc-sources/FXDialogBox.rb +3 -3
- data/rdoc-sources/FXDict.rb +2 -3
- data/rdoc-sources/FXDirBox.rb +2 -2
- data/rdoc-sources/FXDirList.rb +14 -14
- data/rdoc-sources/FXDirSelector.rb +14 -14
- data/rdoc-sources/FXDockBar.rb +35 -35
- data/rdoc-sources/FXDockHandler.rb +2 -2
- data/rdoc-sources/FXDockSite.rb +11 -11
- data/rdoc-sources/FXDockTitle.rb +2 -2
- data/rdoc-sources/FXDocument.rb +2 -2
- data/rdoc-sources/FXDragCorner.rb +2 -2
- data/rdoc-sources/FXDrawable.rb +5 -5
- data/rdoc-sources/FXDriveBox.rb +3 -3
- data/rdoc-sources/FXFileDialog.rb +24 -24
- data/rdoc-sources/FXFileDict.rb +11 -11
- data/rdoc-sources/FXFileList.rb +25 -25
- data/rdoc-sources/FXFileSelector.rb +31 -31
- data/rdoc-sources/FXFileStream.rb +3 -3
- data/rdoc-sources/FXFoldingList.rb +76 -76
- data/rdoc-sources/FXFont.rb +133 -133
- data/rdoc-sources/FXFontDialog.rb +1 -1
- data/rdoc-sources/FXFontSelector.rb +14 -14
- data/rdoc-sources/FXFrame.rb +5 -5
- data/rdoc-sources/FXGIFCursor.rb +6 -6
- data/rdoc-sources/FXGIFIcon.rb +6 -6
- data/rdoc-sources/FXGIFImage.rb +5 -5
- data/rdoc-sources/FXGLContext.rb +1 -1
- data/rdoc-sources/FXGLObject.rb +8 -8
- data/rdoc-sources/FXGLShape.rb +23 -23
- data/rdoc-sources/FXGLViewer.rb +51 -51
- data/rdoc-sources/FXGLVisual.rb +1 -0
- data/rdoc-sources/FXGradientBar.rb +31 -31
- data/rdoc-sources/FXGroupBox.rb +6 -6
- data/rdoc-sources/FXHeader.rb +30 -33
- data/rdoc-sources/FXHorizontalFrame.rb +12 -12
- data/rdoc-sources/FXICOIcon.rb +14 -14
- data/rdoc-sources/FXICOImage.rb +5 -5
- data/rdoc-sources/FXIcon.rb +7 -7
- data/rdoc-sources/FXIconDict.rb +1 -0
- data/rdoc-sources/FXIconList.rb +60 -60
- data/rdoc-sources/FXId.rb +1 -1
- data/rdoc-sources/FXImage.rb +49 -49
- data/rdoc-sources/FXImageFrame.rb +12 -12
- data/rdoc-sources/FXImageView.rb +10 -10
- data/rdoc-sources/FXInputDialog.rb +4 -4
- data/rdoc-sources/FXJPGIcon.rb +13 -13
- data/rdoc-sources/FXJPGImage.rb +5 -5
- data/rdoc-sources/FXKnob.rb +12 -12
- data/rdoc-sources/FXLabel.rb +3 -3
- data/rdoc-sources/FXList.rb +31 -31
- data/rdoc-sources/FXListBox.rb +7 -7
- data/rdoc-sources/FXMDIChild.rb +24 -24
- data/rdoc-sources/FXMDIClient.rb +1 -1
- data/rdoc-sources/FXMatrix.rb +2 -2
- data/rdoc-sources/FXMemoryBuffer.rb +1 -1
- data/rdoc-sources/FXMemoryStream.rb +1 -1
- data/rdoc-sources/FXMenuButton.rb +20 -19
- data/rdoc-sources/FXMenuCaption.rb +9 -9
- data/rdoc-sources/FXMenuCascade.rb +1 -1
- data/rdoc-sources/FXMenuCheck.rb +2 -2
- data/rdoc-sources/FXMenuCommand.rb +1 -1
- data/rdoc-sources/FXMenuRadio.rb +2 -2
- data/rdoc-sources/FXMenuSeparator.rb +2 -2
- data/rdoc-sources/FXMenuTitle.rb +5 -5
- data/rdoc-sources/FXMessageBox.rb +16 -16
- data/rdoc-sources/FXOptionMenu.rb +14 -14
- data/rdoc-sources/FXPCXIcon.rb +12 -12
- data/rdoc-sources/FXPCXImage.rb +5 -5
- data/rdoc-sources/FXPNGIcon.rb +12 -12
- data/rdoc-sources/FXPNGImage.rb +5 -5
- data/rdoc-sources/FXPPMIcon.rb +6 -6
- data/rdoc-sources/FXPPMImage.rb +5 -5
- data/rdoc-sources/FXPacker.rb +4 -4
- data/rdoc-sources/FXPopup.rb +5 -5
- data/rdoc-sources/FXPrintDialog.rb +21 -21
- data/rdoc-sources/FXProgressBar.rb +10 -10
- data/rdoc-sources/FXProgressDialog.rb +3 -3
- data/rdoc-sources/FXQuatd.rb +19 -19
- data/rdoc-sources/FXQuatf.rb +23 -23
- data/rdoc-sources/FXRGBIcon.rb +13 -13
- data/rdoc-sources/FXRGBImage.rb +5 -5
- data/rdoc-sources/FXRadioButton.rb +10 -10
- data/rdoc-sources/FXRanged.rb +2 -2
- data/rdoc-sources/FXRangef.rb +2 -2
- data/rdoc-sources/FXRealSlider.rb +33 -33
- data/rdoc-sources/FXRealSpinner.rb +31 -31
- data/rdoc-sources/FXRecentFiles.rb +14 -14
- data/rdoc-sources/FXRectangle.rb +22 -22
- data/rdoc-sources/FXRegistry.rb +3 -3
- data/rdoc-sources/FXReplaceDialog.rb +20 -20
- data/rdoc-sources/FXRootWindow.rb +2 -2
- data/rdoc-sources/FXRuler.rb +28 -28
- data/rdoc-sources/FXRulerView.rb +5 -5
- data/rdoc-sources/FXScrollArea.rb +27 -27
- data/rdoc-sources/FXScrollBar.rb +26 -26
- data/rdoc-sources/FXScrollPane.rb +3 -3
- data/rdoc-sources/FXScrollWindow.rb +6 -6
- data/rdoc-sources/FXSearchDialog.rb +8 -8
- data/rdoc-sources/FXSeparator.rb +24 -24
- data/rdoc-sources/FXSettings.rb +44 -44
- data/rdoc-sources/FXShutter.rb +35 -35
- data/rdoc-sources/FXSize.rb +14 -14
- data/rdoc-sources/FXSlider.rb +33 -33
- data/rdoc-sources/FXSphered.rb +2 -2
- data/rdoc-sources/FXSpheref.rb +2 -2
- data/rdoc-sources/FXSpinner.rb +30 -30
- data/rdoc-sources/FXSplashWindow.rb +5 -5
- data/rdoc-sources/FXSplitter.rb +18 -18
- data/rdoc-sources/FXSpring.rb +15 -15
- data/rdoc-sources/FXStatusBar.rb +14 -14
- data/rdoc-sources/FXStatusLine.rb +7 -7
- data/rdoc-sources/FXStream.rb +20 -20
- data/rdoc-sources/FXSwitcher.rb +23 -23
- data/rdoc-sources/FXTGAIcon.rb +12 -12
- data/rdoc-sources/FXTGAImage.rb +5 -5
- data/rdoc-sources/FXTIFIcon.rb +13 -13
- data/rdoc-sources/FXTIFImage.rb +5 -5
- data/rdoc-sources/FXTabBar.rb +31 -31
- data/rdoc-sources/FXTabBook.rb +13 -13
- data/rdoc-sources/FXTabItem.rb +22 -22
- data/rdoc-sources/FXTable.rb +148 -148
- data/rdoc-sources/FXText.rb +91 -91
- data/rdoc-sources/FXTextField.rb +39 -39
- data/rdoc-sources/FXToggleButton.rb +32 -32
- data/rdoc-sources/FXToolBar.rb +25 -25
- data/rdoc-sources/FXToolBarGrip.rb +12 -12
- data/rdoc-sources/FXToolBarShell.rb +13 -13
- data/rdoc-sources/FXToolBarTab.rb +16 -16
- data/rdoc-sources/FXTopWindow.rb +18 -18
- data/rdoc-sources/FXTranslator.rb +1 -1
- data/rdoc-sources/FXTreeList.rb +66 -66
- data/rdoc-sources/FXTreeListBox.rb +20 -20
- data/rdoc-sources/FXTriStateButton.rb +23 -23
- data/rdoc-sources/FXVec2d.rb +1 -1
- data/rdoc-sources/FXVec2f.rb +1 -1
- data/rdoc-sources/FXVec3d.rb +1 -1
- data/rdoc-sources/FXVec3f.rb +1 -1
- data/rdoc-sources/FXVec4d.rb +1 -1
- data/rdoc-sources/FXVec4f.rb +1 -1
- data/rdoc-sources/FXVerticalFrame.rb +12 -12
- data/rdoc-sources/FXVisual.rb +19 -19
- data/rdoc-sources/FXWindow.rb +96 -96
- data/rdoc-sources/FXWizard.rb +9 -9
- data/rdoc-sources/FXXBMIcon.rb +7 -7
- data/rdoc-sources/FXXBMImage.rb +6 -6
- data/rdoc-sources/FXXPMIcon.rb +13 -13
- data/rdoc-sources/FXXPMImage.rb +5 -5
- data/rdoc-sources/Makefile +3 -3
- metadata +44 -31
- data/README +0 -39
- data/README.txt +0 -483
data/rdoc-sources/FXGroupBox.rb
CHANGED
@@ -6,10 +6,10 @@ module Fox
|
|
6
6
|
#
|
7
7
|
# === Group box options
|
8
8
|
#
|
9
|
-
# +GROUPBOX_TITLE_LEFT+::
|
10
|
-
# +GROUPBOX_TITLE_CENTER+::
|
11
|
-
# +GROUPBOX_TITLE_RIGHT+::
|
12
|
-
# +GROUPBOX_NORMAL+::
|
9
|
+
# +GROUPBOX_TITLE_LEFT+:: Title is left-justified
|
10
|
+
# +GROUPBOX_TITLE_CENTER+:: Title is centered
|
11
|
+
# +GROUPBOX_TITLE_RIGHT+:: Title is right-justified
|
12
|
+
# +GROUPBOX_NORMAL+:: same as <tt>GROUPBOX_TITLE_LEFT</tt>
|
13
13
|
|
14
14
|
class FXGroupBox < FXPacker
|
15
15
|
|
@@ -19,10 +19,10 @@ module Fox
|
|
19
19
|
# Group box style [Integer]
|
20
20
|
attr_accessor :groupBoxStyle
|
21
21
|
|
22
|
-
# Title font
|
22
|
+
# Title font {FXFont}
|
23
23
|
attr_accessor :font
|
24
24
|
|
25
|
-
# Title text color
|
25
|
+
# Title text color {FXColor}
|
26
26
|
attr_accessor :textColor
|
27
27
|
|
28
28
|
# Construct group box layout manager
|
data/rdoc-sources/FXHeader.rb
CHANGED
@@ -4,33 +4,33 @@ module Fox
|
|
4
4
|
#
|
5
5
|
# === Alignment hints
|
6
6
|
#
|
7
|
-
# +RIGHT+::
|
8
|
-
# +LEFT+::
|
9
|
-
# +CENTER_X+::
|
10
|
-
# +TOP+::
|
11
|
-
# +BOTTOM+::
|
12
|
-
# +CENTER_Y+::
|
7
|
+
# +RIGHT+:: Align on right
|
8
|
+
# +LEFT+:: Align on left
|
9
|
+
# +CENTER_X+:: Align centered horizontally (default)
|
10
|
+
# +TOP+:: Align on top
|
11
|
+
# +BOTTOM+:: Align on bottom
|
12
|
+
# +CENTER_Y+:: Align centered vertically (default)
|
13
13
|
#
|
14
14
|
# === Icon position
|
15
15
|
#
|
16
|
-
# +BEFORE+::
|
17
|
-
# +AFTER+::
|
18
|
-
# +ABOVE+::
|
19
|
-
# +BELOW+::
|
16
|
+
# +BEFORE+:: Icon before the text
|
17
|
+
# +AFTER+:: Icon after the text
|
18
|
+
# +ABOVE+:: Icon above the text
|
19
|
+
# +BELOW+:: Icon below the text
|
20
20
|
#
|
21
21
|
# === Arrow
|
22
22
|
#
|
23
|
-
# +ARROW_NONE+::
|
24
|
-
# +ARROW_UP+::
|
25
|
-
# +ARROW_DOWN+::
|
26
|
-
# +PRESSED+::
|
23
|
+
# +ARROW_NONE+:: No arrow
|
24
|
+
# +ARROW_UP+:: Arrow pointing up
|
25
|
+
# +ARROW_DOWN+:: Arrow pointing down
|
26
|
+
# +PRESSED+:: Pressed down
|
27
27
|
#
|
28
28
|
class FXHeaderItem < FXObject
|
29
29
|
|
30
30
|
# Item's text label [String]
|
31
31
|
attr_accessor :text
|
32
32
|
|
33
|
-
# Item's icon
|
33
|
+
# Item's icon {FXIcon}
|
34
34
|
attr_accessor :icon
|
35
35
|
|
36
36
|
# Item's user data [Object]
|
@@ -116,24 +116,24 @@ module Fox
|
|
116
116
|
# +SEL_CLICKED+::
|
117
117
|
# sent when a header item is clicked; the message data is an integer
|
118
118
|
# indicating the index of the current item.
|
119
|
-
# +SEL_LEFTBUTTONPRESS+::
|
120
|
-
# +SEL_LEFTBUTTONRELEASE+::
|
121
|
-
# +SEL_REPLACED+::
|
122
|
-
# +SEL_INSERTED+::
|
123
|
-
# +SEL_DELETED+::
|
119
|
+
# +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
|
120
|
+
# +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
|
121
|
+
# +SEL_REPLACED+:: sent when a header item is about to be replaced; the message data is an Integer indicating the index of the item to be replaced.
|
122
|
+
# +SEL_INSERTED+:: sent after a header item is inserted; the message data is an Integer indicating the index of the item that was inserted.
|
123
|
+
# +SEL_DELETED+:: sent when a header item is about to be removed; the message data is an Integer indicating the index of the item to be removed.
|
124
124
|
#
|
125
125
|
# === Header style options
|
126
126
|
#
|
127
|
-
# +HEADER_BUTTON+::
|
128
|
-
# +HEADER_HORIZONTAL+::
|
129
|
-
# +HEADER_VERTICAL+::
|
130
|
-
# +HEADER_TRACKING+::
|
131
|
-
# +HEADER_RESIZE+::
|
132
|
-
# +HEADER_NORMAL+::
|
127
|
+
# +HEADER_BUTTON+:: Button style can be clicked
|
128
|
+
# +HEADER_HORIZONTAL+:: Horizontal header control (default)
|
129
|
+
# +HEADER_VERTICAL+:: Vertical header control
|
130
|
+
# +HEADER_TRACKING+:: Tracks continuously while moving
|
131
|
+
# +HEADER_RESIZE+:: Allow resizing sections
|
132
|
+
# +HEADER_NORMAL+:: Normal options, same as <tt>HEADER_HORIZONTAL|FRAME_NORMAL</tt>
|
133
133
|
#
|
134
134
|
# === Message identifiers
|
135
135
|
#
|
136
|
-
# +ID_TIPTIMER+::
|
136
|
+
# +ID_TIPTIMER+:: x
|
137
137
|
#
|
138
138
|
class FXHeader < FXFrame
|
139
139
|
|
@@ -146,10 +146,10 @@ module Fox
|
|
146
146
|
# Current position [Integer]
|
147
147
|
attr_accessor :position
|
148
148
|
|
149
|
-
# Text font
|
149
|
+
# Text font {FXFont}
|
150
150
|
attr_accessor :font
|
151
151
|
|
152
|
-
# Text color
|
152
|
+
# Text color {FXColor}
|
153
153
|
attr_accessor :textColor
|
154
154
|
|
155
155
|
# Header style options [Integer]
|
@@ -190,7 +190,7 @@ module Fox
|
|
190
190
|
#
|
191
191
|
# Replace the item at _index_ with a new item with the specified
|
192
192
|
# text, icon, size and user data object, and return the index of the replaced
|
193
|
-
# item.
|
193
|
+
# item.
|
194
194
|
# If _notify_ is +true+, a +SEL_REPLACED+ message is sent to the header's
|
195
195
|
# message target before the item is replaced.
|
196
196
|
# Raises IndexError if _index_ is out of bounds.
|
@@ -215,7 +215,6 @@ module Fox
|
|
215
215
|
#
|
216
216
|
# Insert a new item at the specified _index_ with the specified text, icon, size
|
217
217
|
# and user data object, and return the index of the inserted item.
|
218
|
-
# The new item is created by calling the FXHeader#createItem method.
|
219
218
|
# If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the header's
|
220
219
|
# message target after the item is inserted.
|
221
220
|
# Raises IndexError if _index_ is out of bounds.
|
@@ -233,7 +232,6 @@ module Fox
|
|
233
232
|
#
|
234
233
|
# Append a new item with the specified text, icon, size and user data object,
|
235
234
|
# and return the index of the appended item.
|
236
|
-
# The new item is created by calling the FXHeader#createItem method.
|
237
235
|
# If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the header's
|
238
236
|
# message target after the item is appended.
|
239
237
|
#
|
@@ -250,7 +248,6 @@ module Fox
|
|
250
248
|
#
|
251
249
|
# Prepend a new item with the specified text, icon, size and user data object,
|
252
250
|
# and return the index of the appended item.
|
253
|
-
# The new item is created by calling the FXHeader#createItem method.
|
254
251
|
# If _notify_ is +true+, a +SEL_INSERTED+ message is sent to the header's
|
255
252
|
# message target after the item is appended.
|
256
253
|
#
|
@@ -10,18 +10,18 @@ module Fox
|
|
10
10
|
#
|
11
11
|
# ==== Parameters:
|
12
12
|
#
|
13
|
-
# +p+::
|
14
|
-
# +opts+::
|
15
|
-
# +x+::
|
16
|
-
# +y+::
|
17
|
-
# +width+::
|
18
|
-
# +height+::
|
19
|
-
# +padLeft+::
|
20
|
-
# +padRight+::
|
21
|
-
# +padTop+::
|
22
|
-
# +padBottom+::
|
23
|
-
# +hSpacing+::
|
24
|
-
# +vSpacing+::
|
13
|
+
# +p+:: the parent window for this horizontal frame {FXComposite}
|
14
|
+
# +opts+:: frame options [Integer]
|
15
|
+
# +x+:: initial x-position [Integer]
|
16
|
+
# +y+:: initial y-position [Integer]
|
17
|
+
# +width+:: initial width [Integer]
|
18
|
+
# +height+:: initial height [Integer]
|
19
|
+
# +padLeft+:: internal padding on the left side, in pixels [Integer]
|
20
|
+
# +padRight+:: internal padding on the right side, in pixels [Integer]
|
21
|
+
# +padTop+:: internal padding on the top side, in pixels [Integer]
|
22
|
+
# +padBottom+:: internal padding on the bottom side, in pixels [Integer]
|
23
|
+
# +hSpacing+:: horizontal spacing between widgets, in pixels [Integer]
|
24
|
+
# +vSpacing+:: vertical spacing between widgets, in pixels [Integer]
|
25
25
|
#
|
26
26
|
def initialize(p, opts=0, x=0, y=0, width=0, height=0, padLeft=DEFAULT_SPACING, padRight=DEFAULT_SPACING, padTop=DEFAULT_SPACING, padBottom=DEFAULT_SPACING, hSpacing=DEFAULT_SPACING, vSpacing=DEFAULT_SPACING) # :yields: theHorizontalFrame
|
27
27
|
end
|
data/rdoc-sources/FXICOIcon.rb
CHANGED
@@ -18,12 +18,12 @@ module Fox
|
|
18
18
|
#
|
19
19
|
# ==== Parameters:
|
20
20
|
#
|
21
|
-
# +a+::
|
22
|
-
# +pix+::
|
23
|
-
# +clr+::
|
24
|
-
# +opts+::
|
25
|
-
# +width+::
|
26
|
-
# +height+::
|
21
|
+
# +a+:: an application instance {FXApp}
|
22
|
+
# +pix+:: a memory buffer formatted in ICO 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: theICOIcon
|
29
29
|
end
|
@@ -37,7 +37,7 @@ module Fox
|
|
37
37
|
#
|
38
38
|
# ==== Parameters:
|
39
39
|
#
|
40
|
-
# +store+::
|
40
|
+
# +store+:: stream from which to read the file data {FXStream}
|
41
41
|
#
|
42
42
|
def Fox.fxloadICO(store); end
|
43
43
|
|
@@ -47,13 +47,13 @@ module Fox
|
|
47
47
|
#
|
48
48
|
# ==== Parameters:
|
49
49
|
#
|
50
|
-
# +store+::
|
51
|
-
# +pixels+::
|
52
|
-
# +transp+::
|
53
|
-
# +width+::
|
54
|
-
# +height+::
|
55
|
-
# +xspot+::
|
56
|
-
# +yspot+::
|
50
|
+
# +store+:: stream to which to write the image data {FXStream}
|
51
|
+
# +pixels+:: the image pixel data [String]
|
52
|
+
# +transp+:: transparency color {FXColor}
|
53
|
+
# +width+:: width [Integer]
|
54
|
+
# +height+:: height [Integer]
|
55
|
+
# +xspot+:: hotspot x-coordinate [Integer]
|
56
|
+
# +yspot+:: hotspot y-coordinate [Integer]
|
57
57
|
#
|
58
58
|
def Fox.fxsaveICO(store, pixels, transp, width, height, xspot=-1, yspot=-1); end
|
59
59
|
|
data/rdoc-sources/FXICOImage.rb
CHANGED
@@ -18,11 +18,11 @@ module Fox
|
|
18
18
|
#
|
19
19
|
# ==== Parameters:
|
20
20
|
#
|
21
|
-
# +a+::
|
22
|
-
# +pix+::
|
23
|
-
# +opts+::
|
24
|
-
# +width+::
|
25
|
-
# +height+::
|
21
|
+
# +a+:: an application instance {FXApp}
|
22
|
+
# +pix+:: a memory buffer formatted in ICO file format [String]
|
23
|
+
# +opts+:: options [Integer]
|
24
|
+
# +width+:: width [Integer]
|
25
|
+
# +height+:: height [Integer]
|
26
26
|
#
|
27
27
|
def initialize(a, pix=nil, opts=0, width=1, height=1) # :yields: theICOImage
|
28
28
|
end
|
data/rdoc-sources/FXIcon.rb
CHANGED
@@ -7,7 +7,7 @@ module Fox
|
|
7
7
|
#
|
8
8
|
class FXIcon < FXImage
|
9
9
|
|
10
|
-
# Transparency color
|
10
|
+
# Transparency color {FXColor}
|
11
11
|
attr_accessor :transparentColor
|
12
12
|
|
13
13
|
#
|
@@ -25,12 +25,12 @@ module Fox
|
|
25
25
|
#
|
26
26
|
# ==== Parameters:
|
27
27
|
#
|
28
|
-
# +a+::
|
29
|
-
# +pix+::
|
30
|
-
# +clr+::
|
31
|
-
# +opts+::
|
32
|
-
# +width+::
|
33
|
-
# +height+::
|
28
|
+
# +a+:: an application instance {FXApp}
|
29
|
+
# +pix+:: initial pixel buffer [String]
|
30
|
+
# +clr+:: transparency color {FXColor}
|
31
|
+
# +opts+:: options [Integer]
|
32
|
+
# +width+:: width [Integer]
|
33
|
+
# +height+:: height [Integer]
|
34
34
|
#
|
35
35
|
def initialize(app, pix=nil, clr=0, opts=0, width=1, height=1) # :yields: theIcon
|
36
36
|
end
|
data/rdoc-sources/FXIconDict.rb
CHANGED
data/rdoc-sources/FXIconList.rb
CHANGED
@@ -7,23 +7,23 @@ module Fox
|
|
7
7
|
# Item text [String]
|
8
8
|
attr_accessor :text
|
9
9
|
|
10
|
-
# Big icon
|
10
|
+
# Big icon {FXIcon}
|
11
11
|
attr_accessor :bigIcon
|
12
12
|
|
13
|
-
# Mini icon
|
13
|
+
# Mini icon {FXIcon}
|
14
14
|
attr_accessor :miniIcon
|
15
15
|
|
16
16
|
# Item user data [Object]
|
17
17
|
attr_accessor :data
|
18
18
|
|
19
19
|
# Indicates whether this item is selected or not [Boolean]
|
20
|
-
attr_writer
|
20
|
+
attr_writer :selected
|
21
21
|
|
22
22
|
# Indicates whether this item is enabled or not [Boolean]
|
23
|
-
attr_writer
|
23
|
+
attr_writer :enabled
|
24
24
|
|
25
25
|
# Indicates whether this item is draggable or not [Boolean]
|
26
|
-
attr_writer
|
26
|
+
attr_writer :draggable
|
27
27
|
|
28
28
|
# Constructor
|
29
29
|
def initialize(text, bigIcon=nil, miniIcon=nil, data=nil) # :yields: theIconItem
|
@@ -87,73 +87,73 @@ module Fox
|
|
87
87
|
#
|
88
88
|
# The following messages are sent by FXIconList to its target:
|
89
89
|
#
|
90
|
-
# +SEL_CHANGED+::
|
91
|
-
# +SEL_COMMAND+::
|
92
|
-
# +SEL_KEYPRESS+::
|
93
|
-
# +SEL_KEYRELEASE+::
|
94
|
-
# +SEL_LEFTBUTTONPRESS+::
|
95
|
-
# +SEL_LEFTBUTTONRELEASE+::
|
96
|
-
# +SEL_RIGHTBUTTONPRESS+::
|
97
|
-
# +SEL_RIGHTBUTTONRELEASE+::
|
98
|
-
# +SEL_CLICKED+::
|
99
|
-
# +SEL_DOUBLECLICKED+::
|
100
|
-
# +SEL_TRIPLECLICKED+::
|
101
|
-
# +SEL_SELECTED+::
|
102
|
-
# +SEL_DESELECTED+::
|
103
|
-
# +SEL_REPLACED+::
|
104
|
-
# +SEL_INSERTED+::
|
105
|
-
# +SEL_DELETED+::
|
90
|
+
# +SEL_CHANGED+:: sent when the current list item changes; the message data is an Integer indicating the index of the current item.
|
91
|
+
# +SEL_COMMAND+:: sent when the current list item changes; the message data is an Integer indicating the index of the current item.
|
92
|
+
# +SEL_KEYPRESS+:: sent when a key goes down; the message data is an FXEvent instance.
|
93
|
+
# +SEL_KEYRELEASE+:: sent when a key goes up; the message data is an FXEvent instance.
|
94
|
+
# +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
|
95
|
+
# +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
|
96
|
+
# +SEL_RIGHTBUTTONPRESS+:: sent when the right mouse button goes down; the message data is an FXEvent instance.
|
97
|
+
# +SEL_RIGHTBUTTONRELEASE+:: sent when the right mouse button goes up; the message data is an FXEvent instance.
|
98
|
+
# +SEL_CLICKED+:: sent when a list item is single-clicked; the message data is an Integer indicating the index of the current item.
|
99
|
+
# +SEL_DOUBLECLICKED+:: sent when a list item is double-clicked; the message data is an Integer indicating the index of the current item.
|
100
|
+
# +SEL_TRIPLECLICKED+:: sent when a list item is triple-clicked; the message data is an Integer indicating the index of the current item.
|
101
|
+
# +SEL_SELECTED+:: sent when a list item is selected; the message data is an Integer indicating the index of the selected item.
|
102
|
+
# +SEL_DESELECTED+:: sent when a list item is deselected; the message data is an Integer indicating the index of the deselected item.
|
103
|
+
# +SEL_REPLACED+:: sent when a list item is about to be replaced; the message data is an Integer indicating the index of the item to be replaced.
|
104
|
+
# +SEL_INSERTED+:: sent after a list item is inserted; the message data is an Integer indicating the index of the item that was inserted.
|
105
|
+
# +SEL_DELETED+:: sent when a list item is about to be removed; the message data is an Integer indicating the index of the item to be removed.
|
106
106
|
#
|
107
107
|
# === Icon list styles
|
108
108
|
#
|
109
|
-
# +ICONLIST_EXTENDEDSELECT+::
|
110
|
-
# +ICONLIST_SINGLESELECT+::
|
111
|
-
# +ICONLIST_BROWSESELECT+::
|
112
|
-
# +ICONLIST_MULTIPLESELECT+::
|
113
|
-
# +ICONLIST_AUTOSIZE+::
|
114
|
-
# +ICONLIST_DETAILED+::
|
115
|
-
# +ICONLIST_MINI_ICONS+::
|
116
|
-
# +ICONLIST_BIG_ICONS+::
|
117
|
-
# +ICONLIST_ROWS+::
|
118
|
-
# +ICONLIST_COLUMNS+::
|
119
|
-
# +ICONLIST_NORMAL+::
|
109
|
+
# +ICONLIST_EXTENDEDSELECT+:: Extended selection mode
|
110
|
+
# +ICONLIST_SINGLESELECT+:: At most one selected item
|
111
|
+
# +ICONLIST_BROWSESELECT+:: Always exactly one selected item
|
112
|
+
# +ICONLIST_MULTIPLESELECT+:: Multiple selection mode
|
113
|
+
# +ICONLIST_AUTOSIZE+:: Automatically size item spacing
|
114
|
+
# +ICONLIST_DETAILED+:: List mode
|
115
|
+
# +ICONLIST_MINI_ICONS+:: Mini Icon mode
|
116
|
+
# +ICONLIST_BIG_ICONS+:: Big Icon mode
|
117
|
+
# +ICONLIST_ROWS+:: Row-wise mode
|
118
|
+
# +ICONLIST_COLUMNS+:: Column-wise mode
|
119
|
+
# +ICONLIST_NORMAL+:: same as +ICONLIST_EXTENDEDSELECT+
|
120
120
|
#
|
121
121
|
# === Message identifiers
|
122
122
|
#
|
123
|
-
# +ID_SHOW_DETAILS+::
|
124
|
-
# +ID_SHOW_MINI_ICONS+::
|
125
|
-
# +ID_SHOW_BIG_ICONS+::
|
126
|
-
# +ID_ARRANGE_BY_ROWS+::
|
127
|
-
# +ID_ARRANGE_BY_COLUMNS+::
|
128
|
-
# +ID_HEADER_CHANGE+::
|
129
|
-
# +ID_TIPTIMER+::
|
130
|
-
# +ID_LOOKUPTIMER+::
|
131
|
-
# +ID_SELECT_ALL+::
|
132
|
-
# +ID_DESELECT_ALL+::
|
133
|
-
# +ID_SELECT_INVERSE+::
|
123
|
+
# +ID_SHOW_DETAILS+:: x
|
124
|
+
# +ID_SHOW_MINI_ICONS+:: x
|
125
|
+
# +ID_SHOW_BIG_ICONS+:: x
|
126
|
+
# +ID_ARRANGE_BY_ROWS+:: x
|
127
|
+
# +ID_ARRANGE_BY_COLUMNS+:: x
|
128
|
+
# +ID_HEADER_CHANGE+:: x
|
129
|
+
# +ID_TIPTIMER+:: x
|
130
|
+
# +ID_LOOKUPTIMER+:: x
|
131
|
+
# +ID_SELECT_ALL+:: x
|
132
|
+
# +ID_DESELECT_ALL+:: x
|
133
|
+
# +ID_SELECT_INVERSE+:: x
|
134
134
|
|
135
135
|
class FXIconList < FXScrollArea
|
136
136
|
|
137
137
|
# Number of items [Integer]
|
138
|
-
attr_reader
|
138
|
+
attr_reader :numItems
|
139
139
|
|
140
140
|
# Number of rows [Integer]
|
141
|
-
attr_reader
|
141
|
+
attr_reader :numRows
|
142
142
|
|
143
143
|
# Number of columns [Integer]
|
144
|
-
attr_reader
|
144
|
+
attr_reader :numCols
|
145
145
|
|
146
|
-
# The header control
|
147
|
-
attr_reader
|
146
|
+
# The header control {FXHeader}
|
147
|
+
attr_reader :header
|
148
148
|
|
149
149
|
# The number of header items in the header control [Integer]
|
150
|
-
attr_reader
|
150
|
+
attr_reader :numHeaders
|
151
151
|
|
152
152
|
# Item width [Integer]
|
153
|
-
attr_reader
|
153
|
+
attr_reader :itemWidth
|
154
154
|
|
155
155
|
# Item height [Integer]
|
156
|
-
attr_reader
|
156
|
+
attr_reader :itemHeight
|
157
157
|
|
158
158
|
# Index of current item, or -1 if none [Integer]
|
159
159
|
attr_accessor :currentItem
|
@@ -162,18 +162,18 @@ module Fox
|
|
162
162
|
attr_accessor :anchorItem
|
163
163
|
|
164
164
|
# Index of item under the cursor, or -1 if none [Integer]
|
165
|
-
attr_reader
|
165
|
+
attr_reader :cursorItem
|
166
166
|
|
167
|
-
# Text font
|
167
|
+
# Text font {FXFont}
|
168
168
|
attr_accessor :font
|
169
169
|
|
170
|
-
# Normal text color
|
170
|
+
# Normal text color {FXColor}
|
171
171
|
attr_accessor :textColor
|
172
172
|
|
173
|
-
# Background color for selected item(s)
|
173
|
+
# Background color for selected item(s) {FXColor}
|
174
174
|
attr_accessor :selBackColor
|
175
175
|
|
176
|
-
# Text color for selected item(s)
|
176
|
+
# Text color for selected item(s) {FXColor}
|
177
177
|
attr_accessor :selTextColor
|
178
178
|
|
179
179
|
# Maximum item space (in pixels) for each item [Integer]
|
@@ -333,7 +333,7 @@ module Fox
|
|
333
333
|
#
|
334
334
|
# Scroll to bring item into view. The argument is either a reference to
|
335
335
|
# an FXIconItem instance, or the integer index of an item in the list.
|
336
|
-
# For the latter case, #makeItemVisible raises IndexError if the index
|
336
|
+
# For the latter case, {#makeItemVisible} raises IndexError if the index
|
337
337
|
# is out of bounds.
|
338
338
|
#
|
339
339
|
def makeItemVisible(itemOrIndex); end
|
@@ -364,7 +364,7 @@ module Fox
|
|
364
364
|
|
365
365
|
# Change user _data_ for item at _index_.
|
366
366
|
# Raises IndexError if _index_ is out of bounds.
|
367
|
-
def setItemData(index, data);
|
367
|
+
def setItemData(index, data); end
|
368
368
|
|
369
369
|
# Return user data for item at _index_.
|
370
370
|
# Raises IndexError if _index_ is out of bounds.
|
@@ -401,11 +401,11 @@ module Fox
|
|
401
401
|
|
402
402
|
# Enable item at _index_.
|
403
403
|
# Raises IndexError if _index_ is out of bounds.
|
404
|
-
def enableItem(index);
|
404
|
+
def enableItem(index); end
|
405
405
|
|
406
406
|
# Disable item at _index_.
|
407
407
|
# Raises IndexError if _index_ is out of bounds.
|
408
|
-
def disableItem(index);
|
408
|
+
def disableItem(index); end
|
409
409
|
|
410
410
|
# Select item at _index_.
|
411
411
|
# If _notify_ is +true+, a +SEL_SELECTED+ message is sent to the list's
|