Class: Fox::FXImageFrame
- Defined in:
- rdoc-sources/FXImageFrame.rb
Overview
An FXImageFrame is a simple frame widget that displays an FXImage image.
Instance Attribute Summary collapse
-
#image ⇒ Object
The current image being displayed FXImage.
-
#justify ⇒ Object
The current justification mode, some combination of the flags
JUSTIFY_LEFT
,JUSTIFY_RIGHT
,JUSTIFY_TOP
andJUSTIFY_BOTTOM
[Integer].
Attributes inherited from FXFrame
#baseColor, #borderColor, #borderWidth, #frameStyle, #hiliteColor, #padBottom, #padLeft, #padRight, #padTop, #shadowColor
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(p, img, opts = FRAME_SUNKEN|FRAME_THICK, x = 0, y = 0, width = 0, height = 0, padLeft = 0, padRight = 0, padTop = 0, padBottom = 0) ⇒ FXImageFrame
constructor
Return an initialized FXImageFrame instance.
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(p, img, opts = FRAME_SUNKEN|FRAME_THICK, x = 0, y = 0, width = 0, height = 0, padLeft = 0, padRight = 0, padTop = 0, padBottom = 0) ⇒ FXImageFrame
Return an initialized FXImageFrame instance.
Parameters:
p
-
the parent window for this image frame Fox::FXComposite
img
-
the image to display Fox::FXImage
opts
-
frame 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]
33 34 |
# File 'rdoc-sources/FXImageFrame.rb', line 33 def initialize(p, img, opts=FRAME_SUNKEN|FRAME_THICK, x=0, y=0, width=0, height=0, padLeft=0, padRight=0, padTop=0, padBottom=0) # :yields: theImageFrame end |
Instance Attribute Details
#image ⇒ Object
The current image being displayed Fox::FXImage
8 9 10 |
# File 'rdoc-sources/FXImageFrame.rb', line 8 def image @image end |
#justify ⇒ Object
The current justification mode, some combination of the flags JUSTIFY_LEFT
, JUSTIFY_RIGHT
, JUSTIFY_TOP
and JUSTIFY_BOTTOM
[Integer]
14 15 16 |
# File 'rdoc-sources/FXImageFrame.rb', line 14 def justify @justify end |