Class: Fox::FXToolBarGrip
- Inherits:
-
FXDockHandler
- Object
- FXObject
- FXId
- FXDrawable
- FXWindow
- FXFrame
- FXDockHandler
- Fox::FXToolBarGrip
- Defined in:
- rdoc-sources/FXToolBarGrip.rb
Overview
A tool bar grip is used to move its container, a dock bar. The grip draws either a single or double bar; it is customary to use the single bar grip for toolbar-rearrangements only, and use the double-bar when the toolbar needs to be floated or docked. The tool bar grip is automatically oriented properly by the the toolbar widget, similar to the FXSeparator widget. Holding the Control Key while dragging the grip will prevent the toolbar from docking when it is near a dock site.
Toolbar Grip styles
TOOLBARGRIP_SINGLE
-
Single bar mode for movable tool bars
TOOLBARGRIP_DOUBLE
-
Double bar mode for dockable tool bars
Instance Attribute Summary collapse
-
#activeColor ⇒ Object
Active color FXColor.
-
#doubleBar ⇒ Object
writeonly
Indicates whether the grip is displayed as a double-bar [Boolean].
Attributes inherited from FXDockHandler
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
-
#doubleBar? ⇒ Boolean
Return
true
if this tool bar grip is displayed as a double bar (i.e. as opposed to a single bar). -
#initialize(p, target = nil, selector = 0, opts = TOOLBARGRIP_SINGLE, x = 0, y = 0, width = 0, height = 0) ⇒ FXToolBarGrip
constructor
Return an initialized FXToolBarGrip 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, target = nil, selector = 0, opts = TOOLBARGRIP_SINGLE, x = 0, y = 0, width = 0, height = 0) ⇒ FXToolBarGrip
Return an initialized FXToolBarGrip instance.
Parameters:
p
-
the parent window for this tool bar grip Fox::FXComposite
target
-
the message target, if any, for this tool bar grip Fox::FXObject
selector
-
the message identifier for this tool bar grip [Integer]
opts
-
tool bar grip options [Integer]
x
-
initial x-position [Integer]
y
-
initial y-position [Integer]
width
-
initial width [Integer]
height
-
initial height [Integer]
40 41 |
# File 'rdoc-sources/FXToolBarGrip.rb', line 40 def initialize(p, target=nil, selector=0, opts=TOOLBARGRIP_SINGLE, x=0, y=0, width=0, height=0) # :yields: theToolBarGrip end |
Instance Attribute Details
#activeColor ⇒ Object
Active color Fox::FXColor
24 25 26 |
# File 'rdoc-sources/FXToolBarGrip.rb', line 24 def activeColor @activeColor end |
#doubleBar=(value) ⇒ Object (writeonly)
Indicates whether the grip is displayed as a double-bar [Boolean]
21 22 23 |
# File 'rdoc-sources/FXToolBarGrip.rb', line 21 def doubleBar=(value) @doubleBar = value end |
Instance Method Details
#doubleBar? ⇒ Boolean
Return true
if this tool bar grip is displayed as a double bar (i.e. as opposed to a single bar).
47 |
# File 'rdoc-sources/FXToolBarGrip.rb', line 47 def doubleBar? ; end |