Tree @cb63f682-3105-405b-b98d-adc5549605be/main (Download .tar.gz)
- ..
- FX4Splitter.rb
- FX7Segment.rb
- FXAccelTable.rb
- FXApp.rb
- FXArrowButton.rb
- FXBitmap.rb
- FXBitmapFrame.rb
- FXBitmapView.rb
- FXBMPIcon.rb
- FXBMPImage.rb
- FXButton.rb
- FXCanvas.rb
- FXCheckButton.rb
- FXChoiceBox.rb
- FXColorBar.rb
- FXColorDialog.rb
- FXColorList.rb
- FXColorRing.rb
- FXColorSelector.rb
- FXColorWell.rb
- FXColorWheel.rb
- FXComboBox.rb
- FXComposite.rb
- FXCURCursor.rb
- FXCursor.rb
- FXDataTarget.rb
- FXDC.rb
- FXDCPrint.rb
- FXDCWindow.rb
- FXDebugTarget.rb
- fxdefs.rb
- FXDelegator.rb
- FXDial.rb
- FXDialogBox.rb
- FXDict.rb
- FXDirBox.rb
- FXDirDialog.rb
- FXDirList.rb
- FXDirSelector.rb
- FXDockBar.rb
- FXDockHandler.rb
- FXDockSite.rb
- FXDockTitle.rb
- FXDocument.rb
- FXDragCorner.rb
- FXDrawable.rb
- FXDriveBox.rb
- FXExtentd.rb
- FXExtentf.rb
- FXFileDialog.rb
- FXFileDict.rb
- FXFileList.rb
- FXFileSelector.rb
- FXFileStream.rb
- FXFoldingList.rb
- FXFont.rb
- FXFontDialog.rb
- FXFontSelector.rb
- FXFrame.rb
- FXGIFCursor.rb
- FXGIFIcon.rb
- FXGIFImage.rb
- FXGLCanvas.rb
- FXGLContext.rb
- FXGLObject.rb
- FXGLShape.rb
- FXGLViewer.rb
- FXGLVisual.rb
- FXGradientBar.rb
- FXGroupBox.rb
- FXHeader.rb
- FXHorizontalFrame.rb
- FXICOIcon.rb
- FXICOImage.rb
- FXIcon.rb
- FXIconDict.rb
- FXIconList.rb
- FXIconSource.rb
- FXId.rb
- FXImage.rb
- FXImageFrame.rb
- FXImageView.rb
- FXInputDialog.rb
- FXJPGIcon.rb
- FXJPGImage.rb
- FXKnob.rb
- FXLabel.rb
- FXList.rb
- FXListBox.rb
- FXMainWindow.rb
- FXMatrix.rb
- FXMDIButton.rb
- FXMDIChild.rb
- FXMDIClient.rb
- FXMemoryBuffer.rb
- FXMemoryStream.rb
- FXMenuBar.rb
- FXMenuButton.rb
- FXMenuCaption.rb
- FXMenuCascade.rb
- FXMenuCheck.rb
- FXMenuCommand.rb
- FXMenuPane.rb
- FXMenuRadio.rb
- FXMenuSeparator.rb
- FXMenuTitle.rb
- FXMessageBox.rb
- FXObject.rb
- FXOptionMenu.rb
- FXPacker.rb
- FXPCXIcon.rb
- FXPCXImage.rb
- FXPicker.rb
- FXPNGIcon.rb
- FXPNGImage.rb
- FXPopup.rb
- FXPPMIcon.rb
- FXPPMImage.rb
- FXPrintDialog.rb
- FXProgressBar.rb
- FXProgressDialog.rb
- FXQuatd.rb
- FXQuatf.rb
- FXRadioButton.rb
- FXRanged.rb
- FXRangef.rb
- FXRealSlider.rb
- FXRealSpinner.rb
- FXRecentFiles.rb
- FXRectangle.rb
- FXRegion.rb
- FXRegistry.rb
- FXReplaceDialog.rb
- FXRGBIcon.rb
- FXRGBImage.rb
- FXRootWindow.rb
- FXRuler.rb
- FXRulerView.rb
- FXScintilla.rb
- FXScrollArea.rb
- FXScrollBar.rb
- FXScrollPane.rb
- FXScrollWindow.rb
- FXSearchDialog.rb
- FXSeparator.rb
- FXSettings.rb
- FXShell.rb
- FXShutter.rb
- FXSize.rb
- FXSlider.rb
- FXSphered.rb
- FXSpheref.rb
- FXSpinner.rb
- FXSplashWindow.rb
- FXSplitter.rb
- FXSpring.rb
- FXStatusBar.rb
- FXStatusLine.rb
- FXStream.rb
- FXStringDict.rb
- FXSwitcher.rb
- FXTabBar.rb
- FXTabBook.rb
- FXTabItem.rb
- FXTable.rb
- FXText.rb
- FXTextField.rb
- FXTGAIcon.rb
- FXTGAImage.rb
- FXTIFIcon.rb
- FXTIFImage.rb
- FXToggleButton.rb
- FXToolBar.rb
- FXToolBarGrip.rb
- FXToolBarShell.rb
- FXToolBarTab.rb
- FXToolTip.rb
- FXTopWindow.rb
- FXTranslator.rb
- FXTreeList.rb
- FXTreeListBox.rb
- FXTriStateButton.rb
- FXVec2d.rb
- FXVec2f.rb
- FXVec3d.rb
- FXVec3f.rb
- FXVec4d.rb
- FXVec4f.rb
- FXVerticalFrame.rb
- FXVisual.rb
- FXWindow.rb
- FXWizard.rb
- FXXBMIcon.rb
- FXXBMImage.rb
- FXXPMIcon.rb
- FXXPMImage.rb
- Makefile
- README.rdoc
FXSpinner.rb @cb63f682-3105-405b-b98d-adc5549605be/main — raw · history · blame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | module Fox
#
# Spinner control
#
# === Events
#
# The following messages are sent by FXSpinner to its target:
#
# +SEL_KEYPRESS+:: sent when a key goes down; the message data is an FXEvent instance.
# +SEL_KEYRELEASE+:: sent when a key goes up; the message data is an FXEvent instance.
# +SEL_COMMAND+::
# sent whenever the spinner's value changes; the message data is an integer
# indicating the new spinner value.
# +SEL_CHANGED+::
# sent whenever the text in the spinner's text field changes; the message
# data is an integer indicating the new spinner value.
#
# === Spinner options
#
# +SPIN_NORMAL+:: Normal, non-cyclic
# +SPIN_CYCLIC+:: Cyclic spinner
# +SPIN_NOTEXT+:: No text visible
# +SPIN_NOMAX+:: Spin all the way up to infinity
# +SPIN_NOMIN+:: Spin all the way down to -infinity
#
# === Message identifiers
#
# +ID_INCREMENT+:: x
# +ID_DECREMENT+:: x
# +ID_ENTRY+:: x
#
class FXSpinner < FXPacker
# Current value [Integer]
attr_accessor :value
# Spinner range (low and high values) [Range]
attr_accessor :range
# Text font for this spinner {FXFont}
attr_accessor :font
# Status line help text for this spinner [String]
attr_accessor :helpText
# Tool tip text for this spinner [String]
attr_accessor :tipText
# Spinner style [Integer]
attr_accessor :spinnerStyle
# Color of the "up" arrow {FXColor}
attr_accessor :upArrowColor
# Color of the "down" arrow {FXColor}
attr_accessor :downArrowColor
# Normal text color {FXColor}
attr_accessor :textColor
# Background color for selected text {FXColor}
attr_accessor :selBackColor
# Foreground color for selected text {FXColor}
attr_accessor :selTextColor
# Cursor color {FXColor}
attr_accessor :cursorColor
# Number of columns (i.e. width of spinner's text field, in terms of number of columns of 'm') [Integer]
attr_accessor :numColumns
#
# Return an initialized FXSpinner instance.
#
# ==== Parameters:
#
# +p+:: the parent window for this spinner {FXComposite}
# +cols+:: number of columns to display in the text field [Integer]
# +target+:: the message target, if any, for this spinner {FXObject}
# +selector+:: the message identifier for this spinner [Integer]
# +opts+:: the options [Integer]
# +x+:: initial x-position [Integer]
# +y+:: initial y-position [Integer]
# +width+:: initial width [Integer]
# +height+:: initial height [Integer]
# +padLeft+:: internal padding on the left side, in pixels [Integer]
# +padRight+:: internal padding on the right side, in pixels [Integer]
# +padTop+:: internal padding on the top side, in pixels [Integer]
# +padBottom+:: internal padding on the bottom side, in pixels [Integer]
#
def initialize(p, cols, target=nil, selector=0, opts=SPIN_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theSpinner
end
# Increment spinner
def increment(notify=FALSE); end
# Increment spinner by certain amount
def incrementByAmount(amt, notify=false); end
# Decrement spinner
def decrement(notify=FALSE); end
# Decrement spinner by certain amount
def decrementByAmount(amt, notify=false); end
# Return +true+ if the spinner is in cyclic mode.
def cyclic?; end
#
# Set to cyclic mode, i.e. wrap around at maximum/minimum.
#
def cyclic=(cyc); end
# Return +true+ if this spinner's text field is visible.
def textVisible?; end
# Set the visibility of this spinner's text field.
def textVisible=(shown); end
#
# Change the spinner increment value, i.e. the amount by which the spinner's
# value increases when the up arrow is clicked.
#
def setIncrement(inc); end
# Get the spinner increment value.
def getIncrement(); end
# Set the "editability" of this spinner's text field.
def editable=(ed); end
# Return +true+ if the spinner's text field is editable.
def editable?; end
end
end
|