Class: Fox::FXFrame
- Defined in:
- rdoc-sources/FXFrame.rb
Overview
The Frame widget provides borders around some contents. Borders may be raised, sunken, thick, ridged or etched. They can also be turned off completely. In addition, a certain amount of padding may be specified between the contents of the widget and the borders. The contents may be justified inside the widget using the justification options. The Frame widget is sometimes used by itself as a place holder, but most often is used as a convenient base class for simple controls.
Constants
DEFAULT_PAD
-
Default padding
Direct Known Subclasses
FX7Segment, FXArrowButton, FXBitmapFrame, FXColorBar, FXColorRing, FXColorWell, FXColorWheel, FXDial, FXDockHandler, FXGradientBar, FXHeader, FXImageFrame, FXKnob, FXLabel, FXProgressBar, FXRealSlider, FXRuler, FXSeparator, FXSlider, FXStatusLine, FXTextField, FXToolBarTab
Instance Attribute Summary collapse
-
#baseColor ⇒ Object
Base GUI color FXColor.
-
#borderColor ⇒ Object
Border color FXColor.
-
#borderWidth ⇒ Object
readonly
Border width, in pixels [Integer].
-
#frameStyle ⇒ Object
Frame style [Integer].
-
#hiliteColor ⇒ Object
Highlight color FXColor.
-
#padBottom ⇒ Object
Bottom interior padding, in pixels [Integer].
-
#padLeft ⇒ Object
Left interior padding, in pixels [Integer].
-
#padRight ⇒ Object
Right interior padding, in pixels [Integer].
-
#padTop ⇒ Object
Top interior padding, in pixels [Integer].
-
#shadowColor ⇒ Object
Shadow color FXColor.
Attributes inherited from FXWindow
#accelTable, #backColor, #defaultCursor, #dragCursor, #first, #focus, #key, #last, #layoutHints, #next, #numChildren, #owner, #parent, #prev, #root, #selector, #shell, #target, #x, #y
Attributes inherited from FXDrawable
Attributes inherited from FXId
Instance Method Summary collapse
-
#initialize(parent, opts = FRAME_NORMAL, x = 0, y = 0, width = 0, height = 0, padLeft = DEFAULT_PAD, padRight = DEFAULT_PAD, padTop = DEFAULT_PAD, padBottom = DEFAULT_PAD) ⇒ FXFrame
constructor
Construct frame window.
Methods inherited from FXWindow
#acceptDrop, #acquireClipboard, #acquireSelection, #active?, #addHotKey, after?, #after?, before?, #before?, #beginDrag, #canFocus?, #changeFocus, #childAtIndex, #childOf?, #children, #clearDragRectangle, #clearShape, colorType, colorTypeName, commonAncestor, #composeContext, #composite?, #contains?, #containsChild?, #create, #createComposeContext, #cursorPosition, #default?, #defaultHeight, #defaultWidth, deleteType, deleteTypeName, #destroy, #destroyComposeContext, #detach, #didAccept, #disable, #doesSaveUnder?, #dragging?, #dropDisable, #dropEnable, #dropEnabled?, #dropFinished, #dropTarget?, #each_child, #each_child_recursive, #enable, #enabled?, #endDrag, #forceRefresh, #getChildAt, #getDNDData, #getHeightForWidth, #getWidthForHeight, #grab, #grabKeyboard, #grabbed?, #grabbedKeyboard?, #handleDrag, #hasClipboard?, #hasFocus?, #hasSelection?, #height, #height=, #hide, imageType, #inFocusChain?, #indexOfChild, #initial?, #inquireDNDAction, #inquireDNDTypes, #killFocus, #layout, #linkAfter, #linkBefore, #lower, #move, octetType, octetTypeName, #offeredDNDType?, #position, #raiseWindow, #recalc, #releaseClipboard, #releaseSelection, #remHotKey, #removeChild, #repaint, #reparent, #resize, #scroll, #setCursorPosition, #setDNDData, #setDefault, #setDragRectangle, #setFocus, #setInitial, #setShape, #shell?, #show, #shown?, stringType, textType, textTypeName, #tr, #translateCoordinatesFrom, #translateCoordinatesTo, #underCursor?, #ungrab, #ungrabKeyboard, #update, urilistType, urilistTypeName, utf16Type, utf16TypeName, utf8Type, utf8TypeName, #visible=, #width, #width=
Methods included from Responder2
Methods inherited from FXDrawable
Methods inherited from FXId
#create, #created?, #destroy, #detach, #runOnUiThread
Methods inherited from FXObject
#bind, #handle, #load, #save, subclasses
Constructor Details
#initialize(parent, opts = FRAME_NORMAL, x = 0, y = 0, width = 0, height = 0, padLeft = DEFAULT_PAD, padRight = DEFAULT_PAD, padTop = DEFAULT_PAD, padBottom = DEFAULT_PAD) ⇒ FXFrame
Construct frame window.
50 51 |
# File 'rdoc-sources/FXFrame.rb', line 50 def initialize(parent, opts=FRAME_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theFrame end |
Instance Attribute Details
#baseColor ⇒ Object
Base GUI color Fox::FXColor
45 46 47 |
# File 'rdoc-sources/FXFrame.rb', line 45 def baseColor @baseColor end |
#borderColor ⇒ Object
Border color Fox::FXColor
42 43 44 |
# File 'rdoc-sources/FXFrame.rb', line 42 def borderColor @borderColor end |
#borderWidth ⇒ Object (readonly)
Border width, in pixels [Integer]
21 22 23 |
# File 'rdoc-sources/FXFrame.rb', line 21 def borderWidth @borderWidth end |
#frameStyle ⇒ Object
Frame style [Integer]
18 19 20 |
# File 'rdoc-sources/FXFrame.rb', line 18 def frameStyle @frameStyle end |
#hiliteColor ⇒ Object
Highlight color Fox::FXColor
36 37 38 |
# File 'rdoc-sources/FXFrame.rb', line 36 def hiliteColor @hiliteColor end |
#padBottom ⇒ Object
Bottom interior padding, in pixels [Integer]
27 28 29 |
# File 'rdoc-sources/FXFrame.rb', line 27 def padBottom @padBottom end |
#padLeft ⇒ Object
Left interior padding, in pixels [Integer]
30 31 32 |
# File 'rdoc-sources/FXFrame.rb', line 30 def padLeft @padLeft end |
#padRight ⇒ Object
Right interior padding, in pixels [Integer]
33 34 35 |
# File 'rdoc-sources/FXFrame.rb', line 33 def padRight @padRight end |
#padTop ⇒ Object
Top interior padding, in pixels [Integer]
24 25 26 |
# File 'rdoc-sources/FXFrame.rb', line 24 def padTop @padTop end |
#shadowColor ⇒ Object
Shadow color Fox::FXColor
39 40 41 |
# File 'rdoc-sources/FXFrame.rb', line 39 def shadowColor @shadowColor end |