Tree @d9c59338-f18b-4fad-8a1a-1ff5da989958/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
FXDial.rb @d9c59338-f18b-4fad-8a1a-1ff5da989958/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 | module Fox
#
# The Dial widget is a valuator widget which is able to provide a cyclic
# value range when the <tt>DIAL_CYCLIC</tt> is passed, or a simple linear value range.
# While being turned, the dial sends a <tt>SEL_CHANGED</tt> message to its target;
# at the end of the interaction, a <tt>SEL_COMMAND</tt> message is sent.
# The message data represents the current value (an integer). The options
# <tt>DIAL_VERTICAL</tt> and <tt>DIAL_HORIZONTAL</tt> control the orientation of the dial.
# An optional notch can be used to indicate the zero-position of
# the dial; display of the notch is controlled by the <tt>DIAL_HAS_NOTCH</tt> option.
#
# === Events
#
# The following messages are sent by FXDial 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_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
# +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
# +SEL_CHANGED+:: sent when the dial's value changes; the message data is the new value (an integer).
# +SEL_COMMAND+:: sent when the user stops changing the dial's value and releases the mouse button; the message data is the new value (an integer).
#
# === Dial style options
#
# +DIAL_VERTICAL+:: Vertically oriented
# +DIAL_HORIZONTAL+:: Horizontal oriented
# +DIAL_CYCLIC+:: Value wraps around
# +DIAL_HAS_NOTCH+:: Dial has a Center Notch
# +DIAL_NORMAL+:: same a +DIAL_VERTICAL+
#
class FXDial < FXFrame
# Dial value [Integer]
attr_accessor :value
# Dial range [Range]
attr_accessor :range
#
# The revolution increment is the amount of change in the position
# for revolution of the dial; the dial may go through multiple revolutions
# to go through its whole range. By default it takes one 360 degree turn of
# the dial to go from the lower to the upper range. [Integer]
#
attr_accessor :revolutionIncrement
#
# The spacing for the small notches; this should be set
# in tenths of degrees in the range [1,3600], and the value should
# be a divisor of 3600, so as to make the notches come out evenly. [Integer]
#
attr_accessor :notchSpacing
#
# The notch offset is the position of the center notch; the value should
# be tenths of degrees in the range [-3600,3600]. [Integer]
#
attr_accessor :notchOffset
# Current dial style [Integer]
attr_accessor :dialStyle
# Center notch color {FXColor}
attr_accessor :notchColor
# Status line help text for this dial [String]
attr_accessor :helpText
# Tool tip message for this dial
attr_accessor :tipText
#
# Construct a dial widget
#
# ==== Parameters:
#
# +p+:: parent widget for this dial {FXComposite}
# +target+:: message target object for this dial {FXObject}
# +selector+:: message identifier [Integer]
# +opts+::
# +x+::
# +y+::
# +width+::
# +height+::
# +padLeft+::
# +padRight+::
# +padTop+::
# +padBottom+::
#
def initialize(p, target=nil, selector=0, opts=DIAL_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theDial
end
#
# Set the dial value. If _notify_ is +true+, a +SEL_COMMAND+ message is
# sent to the dial's message target after the value is changed.
#
def setValue(value, notify=false); end
#
# Set the dial's range. If _notify_ is +true+, and the range modification
# causes the dial's value to change, a +SEL_COMMAND+ message is sent
# to the dial's message target after the value is changed.
#
def setRange(range, notify=false); end
end
end
|