Tree @17fceeaa-fa1f-4a4d-bdee-14b1cd159ab3/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
FXRectangle.rb @17fceeaa-fa1f-4a4d-bdee-14b1cd159ab3/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 136 137 138 139 140 141 142 143 144 145 146 147 148 | module Fox
#
# Rectangle
#
class FXRectangle
#
# Upper left corner's x-coordinate [Integer]
#
attr_accessor :x
# Upper left corner's y-coordinate [Integer]
attr_accessor :y
# Rectangle width [Integer]
attr_accessor :w
# Rectangle height [Integer]
attr_accessor :h
#
# Return an uninitialized FXRectangle instance.
#
def initialize; end
#
# Return an initialized FXRectangle instance.
#
# ==== Parameters:
#
# +xx+:: upper left corner's initial x-coordinate [Integer]
# +yy+:: upper left corner's initial y-coordinate [Integer]
# +ww+:: initial width [Integer]
# +hh+:: initial height [Integer]
#
def initialize(xx, yy, ww, hh); end
#
# Return an initialized FXRectangle instance.
#
# ==== Parameters:
#
# +p+:: upper left corner's initial position {FXPoint}
# +s+:: initial size {FXSize}
#
def initialize(p, s); end
#
# Return an initialized FXRectangle instance.
#
# ==== Parameters:
#
# +topleft+:: upper left corner's initial position {FXPoint}
# +bottomright+:: bottom right corner's initial position {FXPoint}
#
def initialize(topleft, bottomright); end
#
# Return true if _p_ (an FXPoint instance) is contained within this rectangle.
#
def contains?(p); end
#
# Return true if the point at (_xx_, _yy_) is contained within this rectangle.
#
def contains?(xx, yy); end
#
# Return true if _r_ (another FXRectangle instance) is properly contained within
# this rectangle.
#
def contains?(r); end
#
# Shift each of the rectangle's corners by the amount _p_ (an FXPoint
# instance) and return a reference to the rectangle.
#
def move!(p); end
#
# Shift each of the rectangle's corners by the amount (_dx_, _dy_)
# and return a reference to the rectangle.
#
def move!(dx, dy); end
#
# Grow the rectangle by some amount and return a reference to the rectangle.
#
# ==== Parameters:
#
# +margin+:: number of units to grow on each side [Integer]
#
def grow!(margin); end
#
# Grow the rectangle by some amount and return a reference to the rectangle.
#
# ==== Parameters:
#
# +hormargin+:: number of units to grow on the left and right sides [Integer]
# +vermargin+:: number of units to grow on the top and bottom sides [Integer]
#
def grow!(hormargin, vermargin); end
#
# Grow the rectangle by some amount and return a reference to the rectangle.
#
# ==== Parameters:
#
# +leftmargin+:: number of units to grow on the left side [Integer]
# +rightmargin+:: number of units to grow on the right side [Integer]
# +topmargin+:: number of units to grow on the top side [Integer]
# +bottommargin+:: number of units to grow on the bottom side [Integer]
#
def grow!(leftmargin, rightmargin, topmargin, bottommargin); end
#
# Shrink the rectangle by _margin_ units, and return a reference to the rectangle.
#
# ==== Parameters:
#
# +margin+:: number of units to shrink on each side [Integer]
#
def shrink!(margin); end
#
# Shrink the rectangle by some amount, and return a reference to the rectangle.
#
# ==== Parameters:
#
# +hormargin+:: number of units to shrink on the left and right sides [Integer]
# +vermargin+:: number of units to shrink on the top and bottom sides [Integer]
#
def shrink!(hormargin, vermargin); end
#
# Shrink the rectangle by some amount, and return a reference to the rectangle.
#
# ==== Parameters:
#
# +leftmargin+:: number of units to shrink on the left side [Integer]
# +rightmargin+:: number of units to shrink on the right side [Integer]
# +topmargin+:: number of units to shrink on the top side [Integer]
# +bottommargin+:: number of units to shrink on the bottom side [Integer]
#
def shrink!(leftmargin, rightmargin, topmargin, bottommargin); end
end
end
|