Class: Fox::FXFrame

Inherits:
FXWindow show all
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

Instance Attribute Summary collapse

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

#height, #visual, #width

Attributes inherited from FXId

#app, #userData, #xid

Instance Method Summary collapse

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

#connect

Methods inherited from FXDrawable

#resize

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

#baseColorObject

Base GUI color Fox::FXColor


45
46
47
# File 'rdoc-sources/FXFrame.rb', line 45

def baseColor
  @baseColor
end

#borderColorObject

Border color Fox::FXColor


42
43
44
# File 'rdoc-sources/FXFrame.rb', line 42

def borderColor
  @borderColor
end

#borderWidthObject (readonly)

Border width, in pixels [Integer]


21
22
23
# File 'rdoc-sources/FXFrame.rb', line 21

def borderWidth
  @borderWidth
end

#frameStyleObject

Frame style [Integer]


18
19
20
# File 'rdoc-sources/FXFrame.rb', line 18

def frameStyle
  @frameStyle
end

#hiliteColorObject

Highlight color Fox::FXColor


36
37
38
# File 'rdoc-sources/FXFrame.rb', line 36

def hiliteColor
  @hiliteColor
end

#padBottomObject

Bottom interior padding, in pixels [Integer]


27
28
29
# File 'rdoc-sources/FXFrame.rb', line 27

def padBottom
  @padBottom
end

#padLeftObject

Left interior padding, in pixels [Integer]


30
31
32
# File 'rdoc-sources/FXFrame.rb', line 30

def padLeft
  @padLeft
end

#padRightObject

Right interior padding, in pixels [Integer]


33
34
35
# File 'rdoc-sources/FXFrame.rb', line 33

def padRight
  @padRight
end

#padTopObject

Top interior padding, in pixels [Integer]


24
25
26
# File 'rdoc-sources/FXFrame.rb', line 24

def padTop
  @padTop
end

#shadowColorObject

Shadow color Fox::FXColor


39
40
41
# File 'rdoc-sources/FXFrame.rb', line 39

def shadowColor
  @shadowColor
end