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/FXList.rb
CHANGED
@@ -7,7 +7,7 @@ module Fox
|
|
7
7
|
# Text for this item [String]
|
8
8
|
attr_accessor :text
|
9
9
|
|
10
|
-
# Icon for this item
|
10
|
+
# Icon for this item {FXIcon}
|
11
11
|
attr_accessor :icon
|
12
12
|
|
13
13
|
# User data for this item [Object]
|
@@ -77,31 +77,31 @@ module Fox
|
|
77
77
|
#
|
78
78
|
# The following messages are sent by FXList to its target:
|
79
79
|
#
|
80
|
-
# +SEL_CHANGED+::
|
81
|
-
# +SEL_COMMAND+::
|
82
|
-
# +SEL_KEYPRESS+::
|
83
|
-
# +SEL_KEYRELEASE+::
|
84
|
-
# +SEL_LEFTBUTTONPRESS+::
|
85
|
-
# +SEL_LEFTBUTTONRELEASE+::
|
86
|
-
# +SEL_RIGHTBUTTONPRESS+::
|
87
|
-
# +SEL_RIGHTBUTTONRELEASE+::
|
88
|
-
# +SEL_CLICKED+::
|
89
|
-
# +SEL_DOUBLECLICKED+::
|
90
|
-
# +SEL_TRIPLECLICKED+::
|
91
|
-
# +SEL_SELECTED+::
|
92
|
-
# +SEL_DESELECTED+::
|
93
|
-
# +SEL_REPLACED+::
|
94
|
-
# +SEL_INSERTED+::
|
95
|
-
# +SEL_DELETED+::
|
80
|
+
# +SEL_CHANGED+:: sent when the current list item changes; the message data is an Integer indicating the index of the current item.
|
81
|
+
# +SEL_COMMAND+:: sent when the current list item changes; the message data is an Integer indicating the index of the current item.
|
82
|
+
# +SEL_KEYPRESS+:: sent when a key goes down; the message data is an FXEvent instance.
|
83
|
+
# +SEL_KEYRELEASE+:: sent when a key goes up; the message data is an FXEvent instance.
|
84
|
+
# +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
|
85
|
+
# +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
|
86
|
+
# +SEL_RIGHTBUTTONPRESS+:: sent when the right mouse button goes down; the message data is an FXEvent instance.
|
87
|
+
# +SEL_RIGHTBUTTONRELEASE+:: sent when the right mouse button goes up; the message data is an FXEvent instance.
|
88
|
+
# +SEL_CLICKED+:: sent when a list item is single-clicked; the message data is an Integer indicating the index of the current item.
|
89
|
+
# +SEL_DOUBLECLICKED+:: sent when a list item is double-clicked; the message data is an Integer indicating the index of the current item.
|
90
|
+
# +SEL_TRIPLECLICKED+:: sent when a list item is triple-clicked; the message data is an Integer indicating the index of the current item.
|
91
|
+
# +SEL_SELECTED+:: sent when a list item is selected; the message data is an Integer indicating the index of the selected item.
|
92
|
+
# +SEL_DESELECTED+:: sent when a list item is deselected; the message data is an Integer indicating the index of the deselected item.
|
93
|
+
# +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.
|
94
|
+
# +SEL_INSERTED+:: sent after a list item is inserted; the message data is an Integer indicating the index of the item that was inserted.
|
95
|
+
# +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.
|
96
96
|
#
|
97
97
|
# === List styles
|
98
98
|
#
|
99
|
-
# +LIST_EXTENDEDSELECT+::
|
100
|
-
# +LIST_SINGLESELECT+::
|
101
|
-
# +LIST_BROWSESELECT+::
|
102
|
-
# +LIST_MULTIPLESELECT+::
|
103
|
-
# +LIST_AUTOSELECT+::
|
104
|
-
# +LIST_NORMAL+::
|
99
|
+
# +LIST_EXTENDEDSELECT+:: Extended selection mode allows for drag-selection of ranges of items
|
100
|
+
# +LIST_SINGLESELECT+:: Single selection mode allows up to one item to be selected
|
101
|
+
# +LIST_BROWSESELECT+:: Browse selection mode enforces one single item to be selected at all times
|
102
|
+
# +LIST_MULTIPLESELECT+:: Multiple selection mode is used for selection of individual items
|
103
|
+
# +LIST_AUTOSELECT+:: Automatically select under cursor
|
104
|
+
# +LIST_NORMAL+:: same as +LIST_EXTENDEDSELECT+
|
105
105
|
#
|
106
106
|
# === Message identifiers
|
107
107
|
#
|
@@ -111,7 +111,7 @@ module Fox
|
|
111
111
|
class FXList < FXScrollArea
|
112
112
|
|
113
113
|
# Number of items in the list [Integer]
|
114
|
-
attr_reader
|
114
|
+
attr_reader :numItems
|
115
115
|
|
116
116
|
# Number of visible items [Integer]
|
117
117
|
attr_accessor :numVisible
|
@@ -120,21 +120,21 @@ module Fox
|
|
120
120
|
attr_accessor :currentItem
|
121
121
|
|
122
122
|
# Index of anchor item, or -1 if no anchor item [Integer]
|
123
|
-
attr_reader
|
123
|
+
attr_reader :anchorItem
|
124
124
|
|
125
125
|
# Index of item under the cursor, or -1 if none [Integer]
|
126
|
-
attr_reader
|
126
|
+
attr_reader :cursorItem
|
127
127
|
|
128
|
-
# Text font
|
128
|
+
# Text font {FXFont}
|
129
129
|
attr_accessor :font
|
130
130
|
|
131
|
-
# Normal text color
|
131
|
+
# Normal text color {FXColor}
|
132
132
|
attr_accessor :textColor
|
133
133
|
|
134
|
-
# Selected text background color
|
134
|
+
# Selected text background color {FXColor}
|
135
135
|
attr_accessor :selBackColor
|
136
136
|
|
137
|
-
# Selected text color
|
137
|
+
# Selected text color {FXColor}
|
138
138
|
attr_accessor :selTextColor
|
139
139
|
|
140
140
|
# List style [Integer]
|
@@ -303,7 +303,7 @@ module Fox
|
|
303
303
|
#
|
304
304
|
# Scroll to bring item into view. The argument is either a reference to
|
305
305
|
# an FXListItem instance, or the integer index of an item in the list.
|
306
|
-
# For the latter case, #makeItemVisible raises IndexError if the index
|
306
|
+
# For the latter case, {#makeItemVisible} raises IndexError if the index
|
307
307
|
# is out of bounds.
|
308
308
|
#
|
309
309
|
def makeItemVisible(itemOrIndex) ; end
|
data/rdoc-sources/FXListBox.rb
CHANGED
@@ -19,7 +19,7 @@ module Fox
|
|
19
19
|
#
|
20
20
|
# === List Box styles
|
21
21
|
#
|
22
|
-
# +LISTBOX_NORMAL+::
|
22
|
+
# +LISTBOX_NORMAL+:: Normal style
|
23
23
|
#
|
24
24
|
# === Message identifiers
|
25
25
|
#
|
@@ -37,19 +37,19 @@ module Fox
|
|
37
37
|
# Current item's index, or -1 if no current item [Integer]
|
38
38
|
attr_accessor :currentItem
|
39
39
|
|
40
|
-
# Text font
|
40
|
+
# Text font {FXFont}
|
41
41
|
attr_accessor :font
|
42
42
|
|
43
|
-
# Background color
|
43
|
+
# Background color {FXColor}
|
44
44
|
attr_reader :backColor
|
45
45
|
|
46
|
-
# Text color
|
46
|
+
# Text color {FXColor}
|
47
47
|
attr_accessor :textColor
|
48
48
|
|
49
|
-
# Background color for selected items
|
49
|
+
# Background color for selected items {FXColor}
|
50
50
|
attr_accessor :selBackColor
|
51
51
|
|
52
|
-
# Text color for selected items
|
52
|
+
# Text color for selected items {FXColor}
|
53
53
|
attr_accessor :selTextColor
|
54
54
|
|
55
55
|
# Status line help text [String]
|
@@ -96,7 +96,7 @@ module Fox
|
|
96
96
|
def insertItem(index, text, icon=nil, ptr=nil); end
|
97
97
|
|
98
98
|
# Add an item to the end of the list.
|
99
|
-
def appendItem(text, icon=nil, ptr=nil);
|
99
|
+
def appendItem(text, icon=nil, ptr=nil); end
|
100
100
|
|
101
101
|
# Prepend an item to the list
|
102
102
|
def prependItem(text, icon=nil, ptr=nil); end
|
data/rdoc-sources/FXMDIChild.rb
CHANGED
@@ -26,32 +26,32 @@ module Fox
|
|
26
26
|
#
|
27
27
|
# The following messages are sent by FXMDIChild to its target:
|
28
28
|
#
|
29
|
-
# +SEL_LEFTBUTTONPRESS+::
|
30
|
-
# +SEL_LEFTBUTTONRELEASE+::
|
31
|
-
# +SEL_MIDDLEBUTTONPRESS+::
|
32
|
-
# +SEL_MIDDLEBUTTONRELEASE+::
|
33
|
-
# +SEL_RIGHTBUTTONPRESS+::
|
34
|
-
# +SEL_RIGHTBUTTONRELEASE+::
|
29
|
+
# +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
|
30
|
+
# +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
|
31
|
+
# +SEL_MIDDLEBUTTONPRESS+:: sent when the middle mouse button goes down; the message data is an FXEvent instance.
|
32
|
+
# +SEL_MIDDLEBUTTONRELEASE+:: sent when the middle mouse button goes up; the message data is an FXEvent instance.
|
33
|
+
# +SEL_RIGHTBUTTONPRESS+:: sent when the right mouse button goes down; the message data is an FXEvent instance.
|
34
|
+
# +SEL_RIGHTBUTTONRELEASE+:: sent when the right mouse button goes up; the message data is an FXEvent instance.
|
35
35
|
# +SEL_SELECTED+::
|
36
36
|
# sent when the window is selected; the message data is a reference to the MDI client's previous active
|
37
37
|
# child window, or +nil+ if there was no active child window.
|
38
38
|
# +SEL_DESELECTED+::
|
39
39
|
# sent when the window is deselected; the message data is a reference to the MDI client's new active child window,
|
40
40
|
# or +nil+ if there is no active child window.
|
41
|
-
# +SEL_MAXIMIZE+::
|
42
|
-
# +SEL_MINIMIZE+::
|
43
|
-
# +SEL_RESTORE+::
|
41
|
+
# +SEL_MAXIMIZE+:: sent when the window is maximized
|
42
|
+
# +SEL_MINIMIZE+:: sent when the window is minimized
|
43
|
+
# +SEL_RESTORE+:: sent when the window is restored to its normal size and position
|
44
44
|
# +SEL_CLOSE+::
|
45
45
|
# sent when the user is trying to close this window. The message handler for this message should
|
46
46
|
# return 1 (or true) if the target objects to closing the window; otherwise it should just return false (or zero).
|
47
|
-
# +SEL_DELETE+::
|
47
|
+
# +SEL_DELETE+:: sent immediately before this window is destroyed
|
48
48
|
#
|
49
49
|
# === MDI Child Window styles
|
50
50
|
#
|
51
|
-
# +MDI_NORMAL+::
|
52
|
-
# +MDI_MAXIMIZED+::
|
53
|
-
# +MDI_MINIMIZED+::
|
54
|
-
# +MDI_TRACKING+::
|
51
|
+
# +MDI_NORMAL+:: Normal display mode
|
52
|
+
# +MDI_MAXIMIZED+:: Window appears maximized
|
53
|
+
# +MDI_MINIMIZED+:: Window is iconified or minimized
|
54
|
+
# +MDI_TRACKING+:: Track continuously during dragging
|
55
55
|
#
|
56
56
|
class FXMDIChild < FXComposite
|
57
57
|
|
@@ -79,37 +79,37 @@ module Fox
|
|
79
79
|
# Iconified height [Integer]
|
80
80
|
attr_accessor :iconHeight
|
81
81
|
|
82
|
-
# Content window
|
82
|
+
# Content window {FXWindow}
|
83
83
|
attr_reader :contentWindow
|
84
84
|
|
85
85
|
# Window title [String]
|
86
86
|
attr_accessor :title
|
87
87
|
|
88
|
-
# Highlight color
|
88
|
+
# Highlight color {FXColor}
|
89
89
|
attr_accessor :hiliteColor
|
90
90
|
|
91
|
-
# Shadow color
|
91
|
+
# Shadow color {FXColor}
|
92
92
|
attr_accessor :shadowColor
|
93
93
|
|
94
|
-
# Base color
|
94
|
+
# Base color {FXColor}
|
95
95
|
attr_accessor :baseColor
|
96
96
|
|
97
|
-
# Border color
|
97
|
+
# Border color {FXColor}
|
98
98
|
attr_accessor :borderColor
|
99
99
|
|
100
|
-
# Title color
|
100
|
+
# Title color {FXColor}
|
101
101
|
attr_accessor :titleColor
|
102
102
|
|
103
|
-
# Title background color
|
103
|
+
# Title background color {FXColor}
|
104
104
|
attr_accessor :titleBackColor
|
105
105
|
|
106
|
-
# Window icon
|
106
|
+
# Window icon {FXIcon}
|
107
107
|
attr_accessor :icon
|
108
108
|
|
109
|
-
# Window menu
|
109
|
+
# Window menu {FXPopup}
|
110
110
|
attr_accessor :menu
|
111
111
|
|
112
|
-
# Title font
|
112
|
+
# Title font {FXFont}
|
113
113
|
attr_accessor :font
|
114
114
|
|
115
115
|
# Construct MDI Child window with given name and icon
|
data/rdoc-sources/FXMDIClient.rb
CHANGED
data/rdoc-sources/FXMatrix.rb
CHANGED
@@ -18,8 +18,8 @@ module Fox
|
|
18
18
|
#
|
19
19
|
# === Matrix packing options
|
20
20
|
#
|
21
|
-
# +MATRIX_BY_ROWS+::
|
22
|
-
# +MATRIX_BY_COLUMNS+::
|
21
|
+
# +MATRIX_BY_ROWS+:: Fixed number of rows, add columns as needed
|
22
|
+
# +MATRIX_BY_COLUMNS+:: Fixed number of columns, adding rows as needed
|
23
23
|
#
|
24
24
|
class FXMatrix < FXPacker
|
25
25
|
|
@@ -18,46 +18,46 @@ module Fox
|
|
18
18
|
#
|
19
19
|
# The following messages are sent by FXMenuButton to its target:
|
20
20
|
#
|
21
|
-
# +SEL_KEYPRESS+::
|
22
|
-
# +SEL_KEYRELEASE+::
|
23
|
-
# +SEL_LEFTBUTTONPRESS+::
|
24
|
-
# +SEL_LEFTBUTTONRELEASE+::
|
21
|
+
# +SEL_KEYPRESS+:: sent when a key goes down; the message data is an FXEvent instance.
|
22
|
+
# +SEL_KEYRELEASE+:: sent when a key goes up; the message data is an FXEvent instance.
|
23
|
+
# +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
|
24
|
+
# +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
|
25
25
|
#
|
26
26
|
# === Menu Button Style Flags
|
27
27
|
#
|
28
28
|
# Any combination of the following flags can be assigned as the menu
|
29
29
|
# button style flags.
|
30
30
|
#
|
31
|
-
# +MENUBUTTON_AUTOGRAY+::
|
32
|
-
# +MENUBUTTON_AUTOHIDE+::
|
33
|
-
# +MENUBUTTON_TOOLBAR+::
|
34
|
-
# +MENUBUTTON_NOARROWS+::
|
31
|
+
# +MENUBUTTON_AUTOGRAY+:: Automatically gray out when no target
|
32
|
+
# +MENUBUTTON_AUTOHIDE+:: Automatically hide when no target
|
33
|
+
# +MENUBUTTON_TOOLBAR+:: Toolbar style
|
34
|
+
# +MENUBUTTON_NOARROWS+:: Do not show arrows
|
35
35
|
#
|
36
36
|
# === Menu Button Popup Style
|
37
37
|
#
|
38
38
|
# Any one of the following options can be assigned as the menu
|
39
39
|
# button's popup style.
|
40
40
|
#
|
41
|
-
# +MENUBUTTON_DOWN+::
|
42
|
-
# +MENUBUTTON_UP+::
|
43
|
-
# +MENUBUTTON_LEFT+::
|
44
|
-
# +MENUBUTTON_RIGHT+::
|
41
|
+
# +MENUBUTTON_DOWN+:: Popup window appears below menu button
|
42
|
+
# +MENUBUTTON_UP+:: Popup window appears above menu button
|
43
|
+
# +MENUBUTTON_LEFT+:: Popup window to the left of the menu button
|
44
|
+
# +MENUBUTTON_RIGHT+:: Popup window to the right of the menu button
|
45
45
|
#
|
46
46
|
# === Menu Button Attachment
|
47
47
|
#
|
48
48
|
# Any combination of the following flags can be assigned as the menu
|
49
49
|
# button's attachment flags.
|
50
50
|
#
|
51
|
-
# +MENUBUTTON_ATTACH_LEFT+::
|
52
|
-
# +MENUBUTTON_ATTACH_TOP+::
|
53
|
-
# +MENUBUTTON_ATTACH_RIGHT+::
|
54
|
-
# +MENUBUTTON_ATTACH_BOTTOM+::
|
55
|
-
# +MENUBUTTON_ATTACH_CENTER+::
|
56
|
-
# +MENUBUTTON_ATTACH_BOTH+::
|
51
|
+
# +MENUBUTTON_ATTACH_LEFT+:: Popup attaches to the left side of the menu button
|
52
|
+
# +MENUBUTTON_ATTACH_TOP+:: Popup attaches to the top of the menu button
|
53
|
+
# +MENUBUTTON_ATTACH_RIGHT+:: Popup attaches to the right side of the menu button
|
54
|
+
# +MENUBUTTON_ATTACH_BOTTOM+:: Popup attaches to the bottom of the menu button
|
55
|
+
# +MENUBUTTON_ATTACH_CENTER+:: Popup attaches to the center of the menu button
|
56
|
+
# +MENUBUTTON_ATTACH_BOTH+:: Popup attaches to both sides of the menu button
|
57
57
|
#
|
58
58
|
class FXMenuButton < FXLabel
|
59
59
|
|
60
|
-
# The popup menu
|
60
|
+
# The popup menu {FXPopup}
|
61
61
|
attr_accessor :menu
|
62
62
|
|
63
63
|
# X-offset where menu pops up relative to button [Integer]
|
@@ -79,6 +79,7 @@ module Fox
|
|
79
79
|
# Constructor
|
80
80
|
#
|
81
81
|
def initialize(parent, text, icon=nil, popupMenu=nil, opts=JUSTIFY_NORMAL|ICON_BEFORE_TEXT|MENUBUTTON_DOWN, x=0, y=0, width=0, height=0, padLeft=DEFAULT_SPACING, padRight=DEFAULT_SPACING, padTop=DEFAULT_SPACING, padBottom=DEFAULT_SPACING) # :yields: theMenuButton
|
82
|
+
end
|
82
83
|
end
|
83
84
|
end
|
84
85
|
|
@@ -5,33 +5,33 @@ module Fox
|
|
5
5
|
#
|
6
6
|
# === Menu caption options
|
7
7
|
#
|
8
|
-
# +MENU_AUTOGRAY+::
|
9
|
-
# +MENU_AUTOHIDE+::
|
8
|
+
# +MENU_AUTOGRAY+:: Automatically gray out when not updated
|
9
|
+
# +MENU_AUTOHIDE+:: Automatically hide button when not updated
|
10
10
|
#
|
11
11
|
class FXMenuCaption < FXWindow
|
12
12
|
|
13
13
|
# The text for this menu [String]
|
14
14
|
attr_accessor :text
|
15
15
|
|
16
|
-
# The icon for this menu
|
16
|
+
# The icon for this menu {FXIcon}
|
17
17
|
attr_accessor :icon
|
18
18
|
|
19
|
-
# The text font
|
19
|
+
# The text font {FXFont}
|
20
20
|
attr_accessor :font
|
21
21
|
|
22
|
-
# Text color
|
22
|
+
# Text color {FXColor}
|
23
23
|
attr_accessor :textColor
|
24
24
|
|
25
|
-
# Selection background color
|
25
|
+
# Selection background color {FXColor}
|
26
26
|
attr_accessor :selBackColor
|
27
27
|
|
28
|
-
# Selection text color
|
28
|
+
# Selection text color {FXColor}
|
29
29
|
attr_accessor :selTextColor
|
30
30
|
|
31
|
-
# Highlight color
|
31
|
+
# Highlight color {FXColor}
|
32
32
|
attr_accessor :hiliteColor
|
33
33
|
|
34
|
-
# Shadow color
|
34
|
+
# Shadow color {FXColor}
|
35
35
|
attr_accessor :shadowColor
|
36
36
|
|
37
37
|
# Status line help text for this menu [String]
|
data/rdoc-sources/FXMenuCheck.rb
CHANGED
@@ -10,14 +10,14 @@ module Fox
|
|
10
10
|
#
|
11
11
|
# The following messages are sent by FXMenuCheck to its target:
|
12
12
|
#
|
13
|
-
# +SEL_COMMAND+::
|
13
|
+
# +SEL_COMMAND+:: sent when the command is activated
|
14
14
|
#
|
15
15
|
class FXMenuCheck < FXMenuCommand
|
16
16
|
|
17
17
|
# Check state, one of +TRUE+, +FALSE+ or +MAYBE+
|
18
18
|
attr_accessor :check
|
19
19
|
|
20
|
-
# Box background color
|
20
|
+
# Box background color {FXColor}
|
21
21
|
attr_accessor :boxColor
|
22
22
|
|
23
23
|
#
|
data/rdoc-sources/FXMenuRadio.rb
CHANGED
@@ -13,14 +13,14 @@ module Fox
|
|
13
13
|
#
|
14
14
|
# The following messages are sent by FXMenuRadio to its target:
|
15
15
|
#
|
16
|
-
# +SEL_COMMAND+::
|
16
|
+
# +SEL_COMMAND+:: sent when the command is activated
|
17
17
|
#
|
18
18
|
class FXMenuRadio < FXMenuCommand
|
19
19
|
|
20
20
|
# Radio button state, one of +TRUE+, +FALSE+ or +MAYBE+
|
21
21
|
attr_accessor :check
|
22
22
|
|
23
|
-
# Radio background color
|
23
|
+
# Radio background color {FXColor}
|
24
24
|
attr_accessor :radioColor
|
25
25
|
|
26
26
|
#
|