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
@@ -17,12 +17,12 @@ module Fox
|
|
17
17
|
#
|
18
18
|
# === Tree list box styles
|
19
19
|
#
|
20
|
-
# +TREELISTBOX_NORMAL+::
|
20
|
+
# +TREELISTBOX_NORMAL+:: Normal style
|
21
21
|
#
|
22
22
|
# === Message identifiers
|
23
23
|
#
|
24
|
-
# +ID_TREE+::
|
25
|
-
# +ID_FIELD+::
|
24
|
+
# +ID_TREE+:: x
|
25
|
+
# +ID_FIELD+:: x
|
26
26
|
#
|
27
27
|
class FXTreeListBox < FXPacker
|
28
28
|
|
@@ -32,16 +32,16 @@ module Fox
|
|
32
32
|
# Number of visible items [Integer]
|
33
33
|
attr_accessor :numVisible
|
34
34
|
|
35
|
-
# First root-level item
|
35
|
+
# First root-level item {FXTreeItem}
|
36
36
|
attr_reader :firstItem
|
37
37
|
|
38
|
-
# Last root-level item
|
38
|
+
# Last root-level item {FXTreeItem}
|
39
39
|
attr_reader :lastItem
|
40
40
|
|
41
|
-
# Current item, if any
|
41
|
+
# Current item, if any {FXTreeItem}
|
42
42
|
attr_accessor :currentItem
|
43
43
|
|
44
|
-
# Text font
|
44
|
+
# Text font {FXFont}
|
45
45
|
attr_accessor :font
|
46
46
|
|
47
47
|
# Tree list box style
|
@@ -58,18 +58,18 @@ module Fox
|
|
58
58
|
#
|
59
59
|
# ==== Parameters:
|
60
60
|
#
|
61
|
-
# +p+::
|
62
|
-
# +target+::
|
63
|
-
# +selector+::
|
64
|
-
# +opts+::
|
65
|
-
# +x+::
|
66
|
-
# +y+::
|
67
|
-
# +width+::
|
68
|
-
# +height+::
|
69
|
-
# +padLeft+::
|
70
|
-
# +padRight+::
|
71
|
-
# +padTop+::
|
72
|
-
# +padBottom+::
|
61
|
+
# +p+:: the parent window for this tree list box {FXComposite}
|
62
|
+
# +target+:: the message target, if any, for this tree list box {FXObject}
|
63
|
+
# +selector+:: the message identifier for this tree list box [Integer]
|
64
|
+
# +opts+:: tree list options [Integer]
|
65
|
+
# +x+:: initial x-position [Integer]
|
66
|
+
# +y+:: initial y-position [Integer]
|
67
|
+
# +width+:: initial width [Integer]
|
68
|
+
# +height+:: initial height [Integer]
|
69
|
+
# +padLeft+:: internal padding on the left side, in pixels [Integer]
|
70
|
+
# +padRight+:: internal padding on the right side, in pixels [Integer]
|
71
|
+
# +padTop+:: internal padding on the top side, in pixels [Integer]
|
72
|
+
# +padBottom+:: internal padding on the bottom side, in pixels [Integer]
|
73
73
|
#
|
74
74
|
def initialize(p, target=nil, selector=0, opts=FRAME_SUNKEN|FRAME_THICK|TREELISTBOX_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theTreeListBox
|
75
75
|
end
|
@@ -121,7 +121,7 @@ module Fox
|
|
121
121
|
# Remove item.
|
122
122
|
# If _notify_ is +true+, a +SEL_DELETED+ message is sent to the list's message
|
123
123
|
# target before the item is removed.
|
124
|
-
def removeItem(item, notify=false);
|
124
|
+
def removeItem(item, notify=false); end
|
125
125
|
|
126
126
|
# Remove items in range [_fromItem_, _toItem_] inclusively.
|
127
127
|
# If _notify_ is +true+, a +SEL_DELETED+ message is sent to the list's message
|
@@ -8,40 +8,40 @@ module Fox
|
|
8
8
|
class FXTriStateButton < FXToggleButton
|
9
9
|
|
10
10
|
# Maybe text, shown when toggled [String]
|
11
|
-
attr_accessor
|
11
|
+
attr_accessor :maybeText
|
12
12
|
|
13
|
-
# Maybe icon, shown when toggled
|
14
|
-
attr_accessor
|
13
|
+
# Maybe icon, shown when toggled {FXIcon}
|
14
|
+
attr_accessor :maybeIcon
|
15
15
|
|
16
16
|
# Maybe status line help text, shown when toggled [String]
|
17
|
-
attr_accessor
|
17
|
+
attr_accessor :maybeHelpText
|
18
18
|
|
19
19
|
# Maybe tool tip message, shown when toggled [String]
|
20
|
-
attr_accessor
|
20
|
+
attr_accessor :maybeTipText
|
21
21
|
|
22
22
|
#
|
23
23
|
# Return an initialized FXTriStateButton instance.
|
24
24
|
#
|
25
25
|
# ==== Parameters:
|
26
26
|
#
|
27
|
-
# +p+::
|
28
|
-
# <tt>text1</tt>::
|
29
|
-
# <tt>text2</tt>::
|
30
|
-
# <tt>text3</tt>::
|
31
|
-
# <tt>icon1</tt>::
|
32
|
-
# <tt>icon2</tt>::
|
33
|
-
# <tt>icon3</tt>::
|
34
|
-
# +target+::
|
35
|
-
# +selector+::
|
36
|
-
# +opts+::
|
37
|
-
# +x+::
|
38
|
-
# +y+::
|
39
|
-
# +width+::
|
40
|
-
# +height+::
|
41
|
-
# +padLeft+::
|
42
|
-
# +padRight+::
|
43
|
-
# +padTop+::
|
44
|
-
# +padBottom+::
|
27
|
+
# +p+:: the parent window for this tri-state button {FXComposite}
|
28
|
+
# <tt>text1</tt>:: the text for this tri-state button's first state [String]
|
29
|
+
# <tt>text2</tt>:: the text for this tri-state button's second state [String]
|
30
|
+
# <tt>text3</tt>:: the text for this tri-state button's third state [String]
|
31
|
+
# <tt>icon1</tt>:: the icon, if any, for this tri-state button's first state {FXIcon}
|
32
|
+
# <tt>icon2</tt>:: the icon, if any, for this tri-state button's second state {FXIcon}
|
33
|
+
# <tt>icon3</tt>:: the icon, if any, for this tri-state button's third state {FXIcon}
|
34
|
+
# +target+:: the message target, if any, for this tri-state button {FXObject}
|
35
|
+
# +selector+:: the message identifier for this tri-state button [Integer]
|
36
|
+
# +opts+:: tri-state button options [Integer]
|
37
|
+
# +x+:: initial x-position [Integer]
|
38
|
+
# +y+:: initial y-position [Integer]
|
39
|
+
# +width+:: initial width [Integer]
|
40
|
+
# +height+:: initial height [Integer]
|
41
|
+
# +padLeft+:: internal padding on the left side, in pixels [Integer]
|
42
|
+
# +padRight+:: internal padding on the right side, in pixels [Integer]
|
43
|
+
# +padTop+:: internal padding on the top side, in pixels [Integer]
|
44
|
+
# +padBottom+:: internal padding on the bottom side, in pixels [Integer]
|
45
45
|
#
|
46
46
|
def initialize(p, text1, text2, text3, icon1=nil, icon2=nil, icon3=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: theTriStateButton
|
47
47
|
end
|
data/rdoc-sources/FXVec2d.rb
CHANGED
data/rdoc-sources/FXVec2f.rb
CHANGED
data/rdoc-sources/FXVec3d.rb
CHANGED
data/rdoc-sources/FXVec3f.rb
CHANGED
data/rdoc-sources/FXVec4d.rb
CHANGED
data/rdoc-sources/FXVec4f.rb
CHANGED
@@ -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 vertical 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: theVerticalFrame
|
27
27
|
end
|
data/rdoc-sources/FXVisual.rb
CHANGED
@@ -4,25 +4,25 @@ module Fox
|
|
4
4
|
#
|
5
5
|
# === Construction options for FXVisual
|
6
6
|
#
|
7
|
-
# +VISUAL_DEFAULT+::
|
8
|
-
# +VISUAL_MONOCHROME+::
|
9
|
-
# +VISUAL_BEST+::
|
10
|
-
# +VISUAL_INDEXCOLOR+::
|
11
|
-
# +VISUAL_GRAYSCALE+::
|
12
|
-
# +VISUAL_TRUECOLOR+::
|
13
|
-
# +VISUAL_OWNCOLORMAP+::
|
14
|
-
# +VISUAL_DOUBLEBUFFER+::
|
15
|
-
# +VISUAL_STEREO+::
|
16
|
-
# +VISUAL_NOACCEL+::
|
17
|
-
# +VISUAL_SWAP_COPY+::
|
7
|
+
# +VISUAL_DEFAULT+:: Default visual
|
8
|
+
# +VISUAL_MONOCHROME+:: Must be monochrome visual
|
9
|
+
# +VISUAL_BEST+:: Best (deepest) visual
|
10
|
+
# +VISUAL_INDEXCOLOR+:: Palette visual
|
11
|
+
# +VISUAL_GRAYSCALE+:: Gray scale visual
|
12
|
+
# +VISUAL_TRUECOLOR+:: Must be true color visual
|
13
|
+
# +VISUAL_OWNCOLORMAP+:: Allocate private colormap
|
14
|
+
# +VISUAL_DOUBLEBUFFER+:: Double-buffered {FXGLVisual}
|
15
|
+
# +VISUAL_STEREO+:: Stereo {FXGLVisual}
|
16
|
+
# +VISUAL_NOACCEL+:: No hardware acceleration [for broken h/w]
|
17
|
+
# +VISUAL_SWAP_COPY+:: Buffer swap by copying (for FXGLVisual)
|
18
18
|
#
|
19
19
|
# === Visual type
|
20
20
|
#
|
21
|
-
# +VISUALTYPE_UNKNOWN+::
|
22
|
-
# +VISUALTYPE_MONO+::
|
23
|
-
# +VISUALTYPE_TRUE+::
|
24
|
-
# +VISUALTYPE_INDEX+::
|
25
|
-
# +VISUALTYPE_GRAY+::
|
21
|
+
# +VISUALTYPE_UNKNOWN+:: Undetermined visual type
|
22
|
+
# +VISUALTYPE_MONO+:: Visual for drawing into 1-bpp surfaces
|
23
|
+
# +VISUALTYPE_TRUE+:: True color
|
24
|
+
# +VISUALTYPE_INDEX+:: Index [palette] color
|
25
|
+
# +VISUALTYPE_GRAY+:: Gray scale
|
26
26
|
#
|
27
27
|
class FXVisual < FXId
|
28
28
|
# Visual construction flags [Integer]
|
@@ -59,9 +59,9 @@ module Fox
|
|
59
59
|
#
|
60
60
|
# ==== Parameters:
|
61
61
|
#
|
62
|
-
# +a+::
|
63
|
-
# +flgs+::
|
64
|
-
# +d+::
|
62
|
+
# +a+:: an application instance {FXApp}
|
63
|
+
# +flgs+:: visual construction flags [Integer]
|
64
|
+
# +d+:: requested visual depth, in bits [Integer]
|
65
65
|
#
|
66
66
|
def initialize(a, flgs, d=32); end
|
67
67
|
|
data/rdoc-sources/FXWindow.rb
CHANGED
@@ -6,54 +6,54 @@ module Fox
|
|
6
6
|
#
|
7
7
|
# The following messages are sent by FXWindow to its target:
|
8
8
|
#
|
9
|
-
# +SEL_MAP+::
|
10
|
-
# +SEL_UNMAP+::
|
11
|
-
# +SEL_CONFIGURE+::
|
12
|
-
# +SEL_ENTER+::
|
13
|
-
# +SEL_LEAVE+::
|
14
|
-
# +SEL_FOCUSIN+::
|
15
|
-
# +SEL_FOCUSOUT+::
|
16
|
-
# +SEL_UPDATE+::
|
17
|
-
# +SEL_UNGRABBED+::
|
9
|
+
# +SEL_MAP+:: sent when the window is mapped to the screen; the message data is an FXEvent instance.
|
10
|
+
# +SEL_UNMAP+:: sent when the window is unmapped; the message data is an FXEvent instance.
|
11
|
+
# +SEL_CONFIGURE+:: sent when the window's size changes; the message data is an FXEvent instance.
|
12
|
+
# +SEL_ENTER+:: sent when the mouse cursor enters this window
|
13
|
+
# +SEL_LEAVE+:: sent when the mouse cursor leaves this window
|
14
|
+
# +SEL_FOCUSIN+:: sent when this window gains the focus
|
15
|
+
# +SEL_FOCUSOUT+:: sent when this window loses the focus
|
16
|
+
# +SEL_UPDATE+:: sent when this window needs an update
|
17
|
+
# +SEL_UNGRABBED+:: sent when this window loses the mouse grab (or capture)
|
18
18
|
#
|
19
19
|
# For each of the following keyboard-related events, the message data is an FXEvent instance:
|
20
20
|
#
|
21
|
-
# +SEL_KEYPRESS+::
|
22
|
-
# +SEL_KEYRELEASE+::
|
21
|
+
# +SEL_KEYPRESS+:: sent when a key is pressed
|
22
|
+
# +SEL_KEYRELEASE+:: sent when a key is released
|
23
23
|
#
|
24
24
|
# For each of the following mouse-related events, the message data is an FXEvent instance:
|
25
25
|
#
|
26
|
-
# +SEL_MOTION+::
|
27
|
-
# +SEL_LEFTBUTTONPRESS+::
|
28
|
-
# +SEL_LEFTBUTTONRELEASE+::
|
29
|
-
# +SEL_MIDDLEBUTTONPRESS+::
|
30
|
-
# +SEL_MIDDLEBUTTONRELEASE+::
|
31
|
-
# +SEL_RIGHTBUTTONPRESS+::
|
32
|
-
# +SEL_RIGHTBUTTONRELEASE+::
|
33
|
-
# +SEL_MOUSEWHEEL+::
|
26
|
+
# +SEL_MOTION+:: sent when the mouse moves
|
27
|
+
# +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down
|
28
|
+
# +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up
|
29
|
+
# +SEL_MIDDLEBUTTONPRESS+:: sent when the middle mouse button goes down
|
30
|
+
# +SEL_MIDDLEBUTTONRELEASE+:: sent when the middle mouse button goes up
|
31
|
+
# +SEL_RIGHTBUTTONPRESS+:: sent when the right mouse button goes down
|
32
|
+
# +SEL_RIGHTBUTTONRELEASE+:: sent when the right mouse button goes up
|
33
|
+
# +SEL_MOUSEWHEEL+:: sent when the mouse wheel is scrolled
|
34
34
|
#
|
35
35
|
# For each of the following selection-related events, the message data is an FXEvent instance:
|
36
36
|
#
|
37
|
-
# +SEL_SELECTION_GAINED+::
|
38
|
-
# +SEL_SELECTION_LOST+::
|
39
|
-
# +SEL_SELECTION_REQUEST+::
|
37
|
+
# +SEL_SELECTION_GAINED+:: sent when this window acquires the selection
|
38
|
+
# +SEL_SELECTION_LOST+:: sent when this window loses the selection
|
39
|
+
# +SEL_SELECTION_REQUEST+:: sent when this window's selection is requested
|
40
40
|
#
|
41
41
|
# For each of the following clipboard-related events, the message data is an FXEvent instance:
|
42
42
|
#
|
43
|
-
# +SEL_CLIPBOARD_GAINED+::
|
44
|
-
# +SEL_CLIPBOARD_LOST+::
|
45
|
-
# +SEL_CLIPBOARD_REQUEST+::
|
43
|
+
# +SEL_CLIPBOARD_GAINED+:: sent when this window acquires the clipboard
|
44
|
+
# +SEL_CLIPBOARD_LOST+:: sent when this window loses the clipboard
|
45
|
+
# +SEL_CLIPBOARD_REQUEST+:: sent when this window's clipboard data is requested
|
46
46
|
#
|
47
47
|
# For each of the following drag-and-drop events, the message data is an FXEvent instance:
|
48
48
|
#
|
49
|
-
# +SEL_BEGINDRAG+::
|
50
|
-
# +SEL_DRAGGED+::
|
51
|
-
# +SEL_ENDDRAG+::
|
52
|
-
# +SEL_DND_ENTER+::
|
53
|
-
# +SEL_DND_LEAVE+::
|
54
|
-
# +SEL_DND_MOTION+::
|
55
|
-
# +SEL_DND_DROP+::
|
56
|
-
# +SEL_DND_REQUEST+::
|
49
|
+
# +SEL_BEGINDRAG+:: sent at the beginning of a drag operation
|
50
|
+
# +SEL_DRAGGED+:: sent while stuff is being dragged around
|
51
|
+
# +SEL_ENDDRAG+:: sent at the end of a drag operation
|
52
|
+
# +SEL_DND_ENTER+:: drag-and-drop enter
|
53
|
+
# +SEL_DND_LEAVE+:: drag-and-drop leave
|
54
|
+
# +SEL_DND_MOTION+:: drag-and-drop motion
|
55
|
+
# +SEL_DND_DROP+:: drag-and-drop motion
|
56
|
+
# +SEL_DND_REQUEST+:: drag-and-drop request
|
57
57
|
#
|
58
58
|
# === Layout hints for child widgets
|
59
59
|
#
|
@@ -152,65 +152,65 @@ module Fox
|
|
152
152
|
|
153
153
|
class FXWindow < FXDrawable
|
154
154
|
|
155
|
-
# This window's parent window
|
156
|
-
attr_reader
|
155
|
+
# This window's parent window {FXWindow}
|
156
|
+
attr_reader :parent
|
157
157
|
|
158
|
-
# This window's owner window
|
159
|
-
attr_reader
|
158
|
+
# This window's owner window {FXWindow}
|
159
|
+
attr_reader :owner
|
160
160
|
|
161
|
-
# The shell window for this window
|
162
|
-
attr_reader
|
161
|
+
# The shell window for this window {FXWindow}
|
162
|
+
attr_reader :shell
|
163
163
|
|
164
|
-
# Root window
|
165
|
-
attr_reader
|
164
|
+
# Root window {FXWindow}
|
165
|
+
attr_reader :root
|
166
166
|
|
167
|
-
# Next (sibling) window, if any
|
168
|
-
attr_reader
|
167
|
+
# Next (sibling) window, if any {FXWindow}
|
168
|
+
attr_reader :next
|
169
169
|
|
170
|
-
# Previous (sibling) window, if any
|
171
|
-
attr_reader
|
170
|
+
# Previous (sibling) window, if any {FXWindow}
|
171
|
+
attr_reader :prev
|
172
172
|
|
173
|
-
# This window's first child window, if any
|
174
|
-
attr_reader
|
173
|
+
# This window's first child window, if any {FXWindow}
|
174
|
+
attr_reader :first
|
175
175
|
|
176
|
-
# This window's last child window, if any
|
177
|
-
attr_reader
|
176
|
+
# This window's last child window, if any {FXWindow}
|
177
|
+
attr_reader :last
|
178
178
|
|
179
|
-
# Currently focused child window, if any
|
180
|
-
attr_reader
|
179
|
+
# Currently focused child window, if any {FXWindow}
|
180
|
+
attr_reader :focus
|
181
181
|
|
182
182
|
# Window key [Integer]
|
183
|
-
attr_accessor
|
183
|
+
attr_accessor :key
|
184
184
|
|
185
|
-
# Message target object for this window
|
186
|
-
attr_accessor
|
185
|
+
# Message target object for this window {FXObject}
|
186
|
+
attr_accessor :target
|
187
187
|
|
188
188
|
# Message identifier for this window [Integer]
|
189
|
-
attr_accessor
|
189
|
+
attr_accessor :selector
|
190
190
|
|
191
191
|
# This window's x-coordinate, in the parent's coordinate system [Integer]
|
192
|
-
attr_accessor
|
192
|
+
attr_accessor :x
|
193
193
|
|
194
194
|
# This window's y-coordinate, in the parent's coordinate system [Integer]
|
195
|
-
attr_accessor
|
195
|
+
attr_accessor :y
|
196
196
|
|
197
|
-
# The accelerator table for this window
|
198
|
-
attr_accessor
|
197
|
+
# The accelerator table for this window {FXAccelTable}
|
198
|
+
attr_accessor :accelTable
|
199
199
|
|
200
200
|
# Layout hints for this window [Integer]
|
201
|
-
attr_accessor
|
201
|
+
attr_accessor :layoutHints
|
202
202
|
|
203
203
|
# Number of child windows for this window [Integer]
|
204
|
-
attr_reader
|
204
|
+
attr_reader :numChildren
|
205
205
|
|
206
|
-
# Default cursor for this window
|
207
|
-
attr_accessor
|
206
|
+
# Default cursor for this window {FXCursor}
|
207
|
+
attr_accessor :defaultCursor
|
208
208
|
|
209
|
-
# Drag cursor for this window
|
210
|
-
attr_accessor
|
209
|
+
# Drag cursor for this window {FXCursor}
|
210
|
+
attr_accessor :dragCursor
|
211
211
|
|
212
|
-
# Window background color
|
213
|
-
attr_accessor
|
212
|
+
# Window background color {FXColor}
|
213
|
+
attr_accessor :backColor
|
214
214
|
|
215
215
|
# Common DND type: Raw octet stream
|
216
216
|
def FXWindow.octetType; end
|
@@ -265,12 +265,12 @@ module Fox
|
|
265
265
|
#
|
266
266
|
# ==== Parameters:
|
267
267
|
#
|
268
|
-
# +p+::
|
269
|
-
# +opts+::
|
270
|
-
# +x+::
|
271
|
-
# +y+::
|
272
|
-
# +width+::
|
273
|
-
# +height+::
|
268
|
+
# +p+:: the parent window for this window {FXComposite}
|
269
|
+
# +opts+:: window options [Integer]
|
270
|
+
# +x+:: initial x-position [Integer]
|
271
|
+
# +y+:: initial y-position [Integer]
|
272
|
+
# +width+:: initial width [Integer]
|
273
|
+
# +height+:: initial height [Integer]
|
274
274
|
#
|
275
275
|
def initialize(p, opts=0, x=0, y=0, width=0, height=0) # :yields: theWindow
|
276
276
|
end
|
@@ -280,8 +280,8 @@ module Fox
|
|
280
280
|
#
|
281
281
|
# ==== Parameters:
|
282
282
|
#
|
283
|
-
# +a+::
|
284
|
-
# +vis+::
|
283
|
+
# +a+:: an application instance {FXApp}
|
284
|
+
# +vis+:: the visual to use for this window {FXVisual}
|
285
285
|
#
|
286
286
|
def initialize(a, vis) # :yields: theWindow
|
287
287
|
end
|
@@ -291,13 +291,13 @@ module Fox
|
|
291
291
|
#
|
292
292
|
# ==== Parameters:
|
293
293
|
#
|
294
|
-
# +a+::
|
295
|
-
# +own+::
|
296
|
-
# +opts+::
|
297
|
-
# +x+::
|
298
|
-
# +y+::
|
299
|
-
# +width+::
|
300
|
-
# +height+::
|
294
|
+
# +a+:: an application instance {FXApp}
|
295
|
+
# +own+:: the owner window for this window {FXWindow}
|
296
|
+
# +opts+:: window options [Integer]
|
297
|
+
# +x+:: initial x-position [Integer]
|
298
|
+
# +y+:: initial y-position [Integer]
|
299
|
+
# +width+:: initial width [Integer]
|
300
|
+
# +height+:: initial height [Integer]
|
301
301
|
#
|
302
302
|
def initialize(a, own, opts, x, y, w, h) # :yields: theWindow
|
303
303
|
end
|
@@ -613,12 +613,12 @@ module Fox
|
|
613
613
|
# When dragging, inform the drop target of the new position and
|
614
614
|
# the drag action. The _action_ is a constant, one of:
|
615
615
|
#
|
616
|
-
# +DRAG_REJECT+::
|
617
|
-
# +DRAG_ACCEPT+::
|
618
|
-
# +DRAG_COPY+::
|
619
|
-
# +DRAG_MOVE+::
|
620
|
-
# +DRAG_LINK+::
|
621
|
-
# +DRAG_PRIVATE+::
|
616
|
+
# +DRAG_REJECT+:: reject all drop actions
|
617
|
+
# +DRAG_ACCEPT+:: accept any drop action
|
618
|
+
# +DRAG_COPY+:: accept this drop as a copy
|
619
|
+
# +DRAG_MOVE+:: accept this drop as a move
|
620
|
+
# +DRAG_LINK+:: accept this drop as a link
|
621
|
+
# +DRAG_PRIVATE+:: private
|
622
622
|
|
623
623
|
def handleDrag(x, y, action=DRAG_COPY) ; end
|
624
624
|
|
@@ -637,17 +637,17 @@ module Fox
|
|
637
637
|
|
638
638
|
# When being dragged over, indicate we want to receive +SEL_DND_MOTION+ messages
|
639
639
|
# every time the cursor moves
|
640
|
-
def clearDragRectangle();
|
640
|
+
def clearDragRectangle(); end
|
641
641
|
|
642
642
|
# When being dragged over, indicate acceptance or rejection of the dragged data.
|
643
643
|
# The _action_ is a constant indicating the suggested drag action, one of:
|
644
644
|
#
|
645
|
-
# +DRAG_REJECT+::
|
646
|
-
# +DRAG_ACCEPT+::
|
647
|
-
# +DRAG_COPY+::
|
648
|
-
# +DRAG_MOVE+::
|
649
|
-
# +DRAG_LINK+::
|
650
|
-
# +DRAG_PRIVATE+::
|
645
|
+
# +DRAG_REJECT+:: reject all drop actions
|
646
|
+
# +DRAG_ACCEPT+:: accept any drop action
|
647
|
+
# +DRAG_COPY+:: accept this drop as a copy
|
648
|
+
# +DRAG_MOVE+:: accept this drop as a move
|
649
|
+
# +DRAG_LINK+:: accept this drop as a link
|
650
|
+
# +DRAG_PRIVATE+:: private
|
651
651
|
|
652
652
|
def acceptDrop(action=DRAG_ACCEPT); end
|
653
653
|
|
@@ -663,7 +663,7 @@ module Fox
|
|
663
663
|
# This function notifies the drag source that its part of the drop transaction
|
664
664
|
# is finished, and that it is free to release any resources involved in the
|
665
665
|
# drag operation.
|
666
|
-
# Calling #dropFinished is advisable in cases where the drop target needs
|
666
|
+
# Calling {#dropFinished} is advisable in cases where the drop target needs
|
667
667
|
# to perform complex processing on the data received from the drag source,
|
668
668
|
# prior to returning from the +SEL_DND_DROP+ message handler.
|
669
669
|
#
|