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/lib/fox16/irb.rb
CHANGED
data/lib/fox16/splashscreen.rb
CHANGED
@@ -0,0 +1,56 @@
|
|
1
|
+
#
|
2
|
+
# The purpose of this library is to provide a few new methods
|
3
|
+
# similar to those used by Ruby/Tk.
|
4
|
+
#
|
5
|
+
|
6
|
+
module Fox
|
7
|
+
class FXObject
|
8
|
+
def bind(str, pr)
|
9
|
+
tokens = str.split('-')
|
10
|
+
modifiers = []
|
11
|
+
type = nil
|
12
|
+
detail = nil
|
13
|
+
case type
|
14
|
+
when "Button"
|
15
|
+
when "ButtonPress"
|
16
|
+
connect(SEL_LEFTBUTTONPRESS, pr)
|
17
|
+
when "ButtonRelease"
|
18
|
+
connect(SEL_LEFTBUTTONRELEASE, pr)
|
19
|
+
when "Configure"
|
20
|
+
connect(SEL_CONFIGURE, pr)
|
21
|
+
when "Deactivate"
|
22
|
+
when "Destroy"
|
23
|
+
connect(SEL_DESTROY, pr)
|
24
|
+
when "Enter"
|
25
|
+
connect(SEL_ENTER, pr)
|
26
|
+
when "Expose"
|
27
|
+
connect(SEL_PAINT, pr)
|
28
|
+
when "FocusIn"
|
29
|
+
connect(SEL_FOCUSIN, pr)
|
30
|
+
when "FocusOut"
|
31
|
+
connect(SEL_FOCUSOUT, pr)
|
32
|
+
when "Key"
|
33
|
+
when "KeyPress"
|
34
|
+
connect(SEL_KEYPRESS, pr)
|
35
|
+
when "KeyRelease"
|
36
|
+
connect(SEL_KEYRELEASE, pr)
|
37
|
+
when "Leave"
|
38
|
+
connect(SEL_LEAVE, pr)
|
39
|
+
when "Motion"
|
40
|
+
connect(SEL_MOTION, pr)
|
41
|
+
when "Map"
|
42
|
+
connect(SEL_MAP, pr)
|
43
|
+
when "Unmap"
|
44
|
+
connect(SEL_UNMAP, pr)
|
45
|
+
when "Activate"
|
46
|
+
when "Circulate"
|
47
|
+
when "Colormap"
|
48
|
+
when "Gravity"
|
49
|
+
when "Property"
|
50
|
+
when "Reparent"
|
51
|
+
when "Visibility"
|
52
|
+
raise NotImplementedError
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
data/lib/fox16/version.rb
CHANGED
data/rdoc-sources/FX4Splitter.rb
CHANGED
@@ -15,10 +15,10 @@ module Fox
|
|
15
15
|
#
|
16
16
|
# The following messages are sent by FX4Splitter to its target:
|
17
17
|
#
|
18
|
-
# +SEL_LEFTBUTTONPRESS+::
|
19
|
-
# +SEL_LEFTBUTTONRELEASE+::
|
20
|
-
# +SEL_COMMAND+::
|
21
|
-
# +SEL_CHANGED+::
|
18
|
+
# +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
|
19
|
+
# +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
|
20
|
+
# +SEL_COMMAND+:: sent at the end of a resize operation, to signal that the resize is complete
|
21
|
+
# +SEL_CHANGED+:: sent continuously while a resize operation is occurring
|
22
22
|
#
|
23
23
|
# === Splitter options
|
24
24
|
#
|
@@ -27,29 +27,29 @@ module Fox
|
|
27
27
|
#
|
28
28
|
# === Expansion options
|
29
29
|
#
|
30
|
-
# +ExpandNone+::
|
31
|
-
# +ExpandTopLeft+::
|
32
|
-
# +ExpandTopRight+::
|
33
|
-
# +ExpandBottomLeft+::
|
34
|
-
# +ExpandBottomRight+::
|
35
|
-
# +ExpandTop+::
|
36
|
-
# +ExpandBottom+::
|
37
|
-
# +ExpandLeft+::
|
38
|
-
# +ExpandRight+::
|
39
|
-
# +ExpandAll+::
|
30
|
+
# +ExpandNone+:: None expanded
|
31
|
+
# +ExpandTopLeft+:: Expand top left child
|
32
|
+
# +ExpandTopRight+:: Expand top right child
|
33
|
+
# +ExpandBottomLeft+:: Expand bottom left child
|
34
|
+
# +ExpandBottomRight+:: Expand bottom right child
|
35
|
+
# +ExpandTop+:: Expand top children
|
36
|
+
# +ExpandBottom+:: Expand bottom children
|
37
|
+
# +ExpandLeft+:: Expand left children
|
38
|
+
# +ExpandRight+:: Expand right children
|
39
|
+
# +ExpandAll+:: Expand all children
|
40
40
|
#
|
41
41
|
# === Message identifiers
|
42
42
|
#
|
43
|
-
# +ID_EXPAND_NONE+::
|
44
|
-
# +ID_EXPAND_TOP+::
|
45
|
-
# +ID_EXPAND_BOTTOM+::
|
46
|
-
# +ID_EXPAND_LEFT+::
|
47
|
-
# +ID_EXPAND_RIGHT+::
|
48
|
-
# +ID_EXPAND_TOPLEFT+::
|
49
|
-
# +ID_EXPAND_TOPRIGHT+::
|
50
|
-
# +ID_EXPAND_BOTTOMLEFT+::
|
51
|
-
# +ID_EXPAND_BOTTOMRIGHT+::
|
52
|
-
# +ID_EXPAND_ALL+::
|
43
|
+
# +ID_EXPAND_NONE+:: None expanded
|
44
|
+
# +ID_EXPAND_TOP+:: Expand top left and top right panes
|
45
|
+
# +ID_EXPAND_BOTTOM+:: Expand bottom left and bottom right panes
|
46
|
+
# +ID_EXPAND_LEFT+:: Expand leftmost panes
|
47
|
+
# +ID_EXPAND_RIGHT+:: Expand rightmost panes
|
48
|
+
# +ID_EXPAND_TOPLEFT+:: Expand top left pane
|
49
|
+
# +ID_EXPAND_TOPRIGHT+:: Expand top right pane
|
50
|
+
# +ID_EXPAND_BOTTOMLEFT+:: Expand bottom left pane
|
51
|
+
# +ID_EXPAND_BOTTOMRIGHT+:: Expand bottom right pane
|
52
|
+
# +ID_EXPAND_ALL+:: Expand all panes
|
53
53
|
#
|
54
54
|
class FX4Splitter < FXComposite
|
55
55
|
|
@@ -68,16 +68,16 @@ module Fox
|
|
68
68
|
# Currently expanded child (some combination of the expansion flags, or zero if no panes are expanded)
|
69
69
|
attr_accessor :expanded
|
70
70
|
|
71
|
-
# Top left child window, if any
|
71
|
+
# Top left child window, if any {FXWindow}
|
72
72
|
attr_reader :topLeft
|
73
73
|
|
74
|
-
# Top right child window, if any
|
74
|
+
# Top right child window, if any {FXWindow}
|
75
75
|
attr_reader :topRight
|
76
76
|
|
77
|
-
# Bottom left child window, if any
|
77
|
+
# Bottom left child window, if any {FXWindow}
|
78
78
|
attr_reader :bottomLeft
|
79
79
|
|
80
|
-
# Bottom right child window, if any
|
80
|
+
# Bottom right child window, if any {FXWindow}
|
81
81
|
attr_reader :bottomRight
|
82
82
|
|
83
83
|
#
|
@@ -85,12 +85,12 @@ module Fox
|
|
85
85
|
#
|
86
86
|
# ==== Parameters:
|
87
87
|
#
|
88
|
-
# +p+::
|
89
|
-
# +opts+::
|
90
|
-
# +x+::
|
91
|
-
# +y+::
|
92
|
-
# +width+::
|
93
|
-
# +height+::
|
88
|
+
# +p+:: the parent widget for this splitter {FXComposite}
|
89
|
+
# +opts+:: the options [Integer]
|
90
|
+
# +x+:: initial x-position [Integer]
|
91
|
+
# +y+:: initial y-position [Integer]
|
92
|
+
# +width+:: initial width [Integer]
|
93
|
+
# +height+:: initial height [Integer]
|
94
94
|
#
|
95
95
|
def initialize(p, opts=FOURSPLITTER_NORMAL, x=0, y=0, width=0, height=0) # :yields: theSplitter
|
96
96
|
end
|
@@ -101,14 +101,14 @@ module Fox
|
|
101
101
|
#
|
102
102
|
# ==== Parameters:
|
103
103
|
#
|
104
|
-
# +p+::
|
105
|
-
# +target+::
|
106
|
-
# +selector+::
|
107
|
-
# +opts+::
|
108
|
-
# +x+::
|
109
|
-
# +y+::
|
110
|
-
# +width+::
|
111
|
-
# +height+::
|
104
|
+
# +p+:: the parent widget for this splitter {FXComposite}
|
105
|
+
# +target+:: message target {FXObject}
|
106
|
+
# +selector+:: message identifier [Integer]
|
107
|
+
# +opts+:: the options [Integer]
|
108
|
+
# +x+:: initial x-position [Integer]
|
109
|
+
# +y+:: initial y-position [Integer]
|
110
|
+
# +width+:: initial width [Integer]
|
111
|
+
# +height+:: initial height [Integer]
|
112
112
|
#
|
113
113
|
def initialize(p, tgt, sel, opts=FOURSPLITTER_NORMAL, x=0, y=0, width=0, height=0) # :yields: theSplitter
|
114
114
|
end
|
@@ -129,7 +129,7 @@ module Fox
|
|
129
129
|
|
130
130
|
#
|
131
131
|
# Return the horizontal split fraction, an integer between 0 and
|
132
|
-
# 10000 inclusive. See FX4Splitter#setHSplit for more information.
|
132
|
+
# 10000 inclusive. See {FX4Splitter#setHSplit} for more information.
|
133
133
|
#
|
134
134
|
def getHSplit(); end
|
135
135
|
|
@@ -149,7 +149,7 @@ module Fox
|
|
149
149
|
|
150
150
|
#
|
151
151
|
# Return the vertical split fraction, an integer between 0 and
|
152
|
-
# 10000 inclusive. See FX4Splitter#setVSplit for more information.
|
152
|
+
# 10000 inclusive. See {FX4Splitter#setVSplit} for more information.
|
153
153
|
#
|
154
154
|
def getVSplit(); end
|
155
155
|
end
|
data/rdoc-sources/FX7Segment.rb
CHANGED
@@ -6,14 +6,14 @@ module Fox
|
|
6
6
|
#
|
7
7
|
# === 7 Segment styles
|
8
8
|
#
|
9
|
-
# +SEVENSEGMENT_NORMAL+::
|
10
|
-
# +SEVENSEGMENT_SHADOW+::
|
9
|
+
# +SEVENSEGMENT_NORMAL+:: Draw segments normally
|
10
|
+
# +SEVENSEGMENT_SHADOW+:: Draw shadow under the segments
|
11
11
|
#
|
12
12
|
class FX7Segment < FXFrame
|
13
13
|
# The text for this label [String]
|
14
14
|
attr_accessor :text
|
15
15
|
|
16
|
-
# The text color
|
16
|
+
# The text color {FXColor}
|
17
17
|
attr_accessor :textColor
|
18
18
|
|
19
19
|
# Cell width, in pixels [Integer]
|
data/rdoc-sources/FXApp.rb
CHANGED
@@ -94,24 +94,24 @@ module Fox
|
|
94
94
|
# the addSignal method, a +SEL_SIGNAL+ message may be sent to the message
|
95
95
|
# target.
|
96
96
|
#
|
97
|
-
# === File input modes for #addInput
|
97
|
+
# === File input modes for {#addInput}
|
98
98
|
#
|
99
|
-
# +INPUT_NONE+::
|
100
|
-
# +INPUT_READ+::
|
101
|
-
# +INPUT_WRITE+::
|
102
|
-
# +INPUT_EXCEPT+::
|
99
|
+
# +INPUT_NONE+:: inactive
|
100
|
+
# +INPUT_READ+:: read input fd
|
101
|
+
# +INPUT_WRITE+:: write input fd
|
102
|
+
# +INPUT_EXCEPT+:: except input fd
|
103
103
|
#
|
104
104
|
# === All ways of being modal
|
105
105
|
#
|
106
|
-
# +MODAL_FOR_NONE+::
|
107
|
-
# +MODAL_FOR_WINDOW+::
|
108
|
-
# +MODAL_FOR_POPUP+::
|
106
|
+
# +MODAL_FOR_NONE+:: Non modal event loop (dispatch normally)
|
107
|
+
# +MODAL_FOR_WINDOW+:: Modal dialog (beep if outside of modal dialog)
|
108
|
+
# +MODAL_FOR_POPUP+:: Modal for popup (always dispatch to popup)
|
109
109
|
#
|
110
110
|
# === Default cursors provided by the application
|
111
111
|
#
|
112
112
|
# These constants symbolically represent the different cursor shapes used
|
113
113
|
# in FOX applications, and can be used as the _which_ arguments for
|
114
|
-
# #getDefaultCursor and #setDefaultCursor.
|
114
|
+
# {#getDefaultCursor} and {#setDefaultCursor}.
|
115
115
|
#
|
116
116
|
# +DEF_ARROW_CURSOR+:: Arrow cursor
|
117
117
|
# +DEF_RARROW_CURSOR+:: Reverse arrow cursor
|
@@ -136,8 +136,8 @@ module Fox
|
|
136
136
|
# +DEF_CORNERNW_CURSOR+:: North-west cursor
|
137
137
|
# +DEF_CORNERSE_CURSOR+:: South-east cursor
|
138
138
|
# +DEF_CORNERSW_CURSOR+:: South-west cursor
|
139
|
-
# +DEF_HELP_CURSOR+::
|
140
|
-
# +DEF_HAND_CURSOR+::
|
139
|
+
# +DEF_HELP_CURSOR+:: Help arrow cursor
|
140
|
+
# +DEF_HAND_CURSOR+:: Hand cursor
|
141
141
|
# +DEF_ROTATE_CURSOR+:: Rotate cursor
|
142
142
|
# +DEF_WAIT_CURSOR+:: Wait cursor
|
143
143
|
#
|
@@ -163,67 +163,67 @@ module Fox
|
|
163
163
|
# Display [Integer]
|
164
164
|
attr_reader :display
|
165
165
|
|
166
|
-
# Border color
|
166
|
+
# Border color {FXColor}
|
167
167
|
attr_accessor :borderColor
|
168
168
|
|
169
|
-
# Background color of GUI controls
|
169
|
+
# Background color of GUI controls {FXColor}
|
170
170
|
attr_accessor :baseColor
|
171
171
|
|
172
|
-
# Hilite color of GUI controls
|
172
|
+
# Hilite color of GUI controls {FXColor}
|
173
173
|
attr_accessor :hiliteColor
|
174
174
|
|
175
|
-
# Shadow color of GUI controls
|
175
|
+
# Shadow color of GUI controls {FXColor}
|
176
176
|
attr_accessor :shadowColor
|
177
177
|
|
178
|
-
# Default background color
|
178
|
+
# Default background color {FXColor}
|
179
179
|
attr_accessor :backColor
|
180
180
|
|
181
|
-
# Default foreground color
|
181
|
+
# Default foreground color {FXColor}
|
182
182
|
attr_accessor :foreColor
|
183
183
|
|
184
|
-
# Default foreground color for selected objects
|
184
|
+
# Default foreground color for selected objects {FXColor}
|
185
185
|
attr_accessor :selforeColor
|
186
186
|
|
187
|
-
# Default background color for selected objects
|
187
|
+
# Default background color for selected objects {FXColor}
|
188
188
|
attr_accessor :selbackColor
|
189
189
|
|
190
|
-
# Default foreground color for tooltips
|
190
|
+
# Default foreground color for tooltips {FXColor}
|
191
191
|
attr_accessor :tipforeColor
|
192
192
|
|
193
|
-
# Default background color for tooltips
|
193
|
+
# Default background color for tooltips {FXColor}
|
194
194
|
attr_accessor :tipbackColor
|
195
195
|
|
196
|
-
# Default text color for selected menu items
|
196
|
+
# Default text color for selected menu items {FXColor}
|
197
197
|
attr_accessor :selMenuTextColor
|
198
198
|
|
199
|
-
# Default background color for selected menu items
|
199
|
+
# Default background color for selected menu items {FXColor}
|
200
200
|
attr_accessor :selMenuBackColor
|
201
201
|
|
202
|
-
# Default visual
|
202
|
+
# Default visual {FXVisual}
|
203
203
|
attr_accessor :defaultVisual
|
204
204
|
|
205
|
-
# Default font
|
205
|
+
# Default font {FXFont}
|
206
206
|
attr_accessor :normalFont
|
207
207
|
|
208
|
-
# Wait cursor
|
208
|
+
# Wait cursor {FXCursor}
|
209
209
|
attr_accessor :waitCursor
|
210
210
|
|
211
|
-
# Monochrome visual
|
211
|
+
# Monochrome visual {FXVisual}
|
212
212
|
attr_reader :monoVisual
|
213
213
|
|
214
|
-
# Root window
|
214
|
+
# Root window {FXRootWindow}
|
215
215
|
attr_reader :rootWindow
|
216
216
|
|
217
|
-
# The window under the cursor, if any
|
217
|
+
# The window under the cursor, if any {FXWindow}
|
218
218
|
attr_reader :cursorWindow
|
219
219
|
|
220
|
-
# The window at the end of the focus chain, if any
|
220
|
+
# The window at the end of the focus chain, if any {FXWindow}
|
221
221
|
attr_reader :focusWindow
|
222
222
|
|
223
|
-
# The active top-level window, if any
|
223
|
+
# The active top-level window, if any {FXWindow}
|
224
224
|
attr_reader :activeWindow
|
225
225
|
|
226
|
-
# The window of the current modal loop
|
226
|
+
# The window of the current modal loop {FXWindow}
|
227
227
|
attr_reader :modalWindow
|
228
228
|
|
229
229
|
# Mode of current modal loop [Integer]
|
@@ -269,7 +269,7 @@ module Fox
|
|
269
269
|
# Amount of time (in milliseconds) to yield to Ruby's thread scheduler [Integer]
|
270
270
|
attr_accessor :sleepTime
|
271
271
|
|
272
|
-
# Message translator
|
272
|
+
# Message translator {FXTranslator}
|
273
273
|
attr_accessor :translator
|
274
274
|
|
275
275
|
# Copyright notice for library
|
@@ -284,7 +284,7 @@ module Fox
|
|
284
284
|
end
|
285
285
|
|
286
286
|
#
|
287
|
-
# Open connection to display; this is called by #init.
|
287
|
+
# Open connection to display; this is called by {#init}.
|
288
288
|
#
|
289
289
|
def openDisplay(dpyname=nil) ; end
|
290
290
|
|
@@ -344,8 +344,8 @@ module Fox
|
|
344
344
|
# Perform one event dispatch; return +true+ if event was dispatched.
|
345
345
|
def runOneEvent(blocking=true); end
|
346
346
|
|
347
|
-
# Run the main application event loop until #stop is called,
|
348
|
-
# and return the exit code passed as argument to #stop.
|
347
|
+
# Run the main application event loop until {#stop} is called,
|
348
|
+
# and return the exit code passed as argument to {#stop}.
|
349
349
|
def run(); end
|
350
350
|
|
351
351
|
#
|
@@ -363,27 +363,27 @@ module Fox
|
|
363
363
|
#
|
364
364
|
# Run event loop while there are events are available in the queue.
|
365
365
|
# Returns 1 when all events in the queue have been handled, and 0 when
|
366
|
-
# the event loop was terminated due to #stop or #stopModal.
|
366
|
+
# the event loop was terminated due to {#stop} or {#stopModal}.
|
367
367
|
# Except for the modal window and its children, user input to all windows
|
368
368
|
# is blocked; if the modal window is +nil+, all user input is blocked.
|
369
369
|
#
|
370
370
|
def runModalWhileEvents(window=nil); end
|
371
371
|
|
372
372
|
# Run modal event loop, blocking keyboard and mouse events to all windows
|
373
|
-
# until #stopModal is called.
|
373
|
+
# until {#stopModal} is called.
|
374
374
|
def runModal(); end
|
375
375
|
|
376
|
-
# Run a modal event loop for the given window, until #stop or #stopModal is
|
376
|
+
# Run a modal event loop for the given window, until {#stop} or {#stopModal} is
|
377
377
|
# called. Except for the modal window and its children, user input to all
|
378
378
|
# windows is blocked; if the modal window is +nil+ all user input is blocked.
|
379
379
|
def runModalFor(window); end
|
380
380
|
|
381
|
-
# Run modal while window is shown, or until #stop or #stopModal is called.
|
381
|
+
# Run modal while window is shown, or until {#stop} or {#stopModal} is called.
|
382
382
|
# Except for the modal window and its children, user input to all windows
|
383
383
|
# is blocked; if the modal window is +nil+ all user input is blocked.
|
384
384
|
def runModalWhileShown(window); end
|
385
385
|
|
386
|
-
# Run popup menu while shown, until #stop or #stopModal is called.
|
386
|
+
# Run popup menu while shown, until {#stop} or {#stopModal} is called.
|
387
387
|
# Also returns when entering previous cascading popup menu.
|
388
388
|
def runPopup(window); end
|
389
389
|
|
@@ -443,7 +443,7 @@ module Fox
|
|
443
443
|
#
|
444
444
|
# yamlDragType = app.registerDragType("application/x-yaml")
|
445
445
|
#
|
446
|
-
# See also #getDragTypeName.
|
446
|
+
# See also {#getDragTypeName}.
|
447
447
|
#
|
448
448
|
def registerDragType(name) ; end
|
449
449
|
|
@@ -452,7 +452,7 @@ module Fox
|
|
452
452
|
#
|
453
453
|
# dragTypeName = app.getDragTypeName(yamlDragType)
|
454
454
|
#
|
455
|
-
# See also #registerDragType.
|
455
|
+
# See also {#registerDragType}.
|
456
456
|
#
|
457
457
|
def getDragTypeName(dragType) ; end
|
458
458
|
|
@@ -463,7 +463,7 @@ module Fox
|
|
463
463
|
def FXApp.instance(); end
|
464
464
|
|
465
465
|
# End the most deeply nested wait-cursor block.
|
466
|
-
# See also #beginWaitCursor.
|
466
|
+
# See also {#beginWaitCursor}.
|
467
467
|
def endWaitCursor(); end
|
468
468
|
|
469
469
|
#
|
@@ -473,7 +473,7 @@ module Fox
|
|
473
473
|
#
|
474
474
|
# rotateCursor = app.getDefaultCursor(DEF_ROTATE_CURSOR)
|
475
475
|
#
|
476
|
-
# See also #setDefaultCursor.
|
476
|
+
# See also {#setDefaultCursor}.
|
477
477
|
#
|
478
478
|
def getDefaultCursor(which) ; end
|
479
479
|
|
@@ -482,7 +482,7 @@ module Fox
|
|
482
482
|
#
|
483
483
|
# app.setDefaultCursor(DEF_ROTATE_CURSOR, myRotateCursor)
|
484
484
|
#
|
485
|
-
# See also #getDefaultCursor.
|
485
|
+
# See also {#getDefaultCursor}.
|
486
486
|
#
|
487
487
|
def setDefaultCursor(which, cursor); end
|
488
488
|
|
@@ -492,8 +492,8 @@ module Fox
|
|
492
492
|
#
|
493
493
|
# ==== Parameters:
|
494
494
|
#
|
495
|
-
# +store+::
|
496
|
-
# +window+::
|
495
|
+
# +store+:: {FXStream}
|
496
|
+
# +window+:: {FXWindow}
|
497
497
|
#
|
498
498
|
def writeWindow(store, window); end
|
499
499
|
|
@@ -504,9 +504,9 @@ module Fox
|
|
504
504
|
#
|
505
505
|
# ==== Parameters:
|
506
506
|
#
|
507
|
-
# +store+::
|
508
|
-
# +father+::
|
509
|
-
# +owner+::
|
507
|
+
# +store+:: {FXStream}
|
508
|
+
# +father+:: {FXWindow}
|
509
|
+
# +owner+:: {FXWindow}
|
510
510
|
#
|
511
511
|
def readWindow(store, father, owner); end
|
512
512
|
|