FXToolbar

class FXToolbar

Toolbar control

Inheritance:


Public Methods

[more] FXToolbar(FXComposite* p, FXComposite* q, FXuint opts=LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=3, FXint pr=3, FXint pt=2, FXint pb=2, FXint hs=DEFAULT_SPACING, FXint vs=DEFAULT_SPACING)
Construct a floatable toolbar Normally, the toolbar is docked under window p.
[more] FXToolbar(FXComposite* p, FXuint opts=LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=2, FXint pr=3, FXint pt=3, FXint pb=2, FXint hs=DEFAULT_SPACING, FXint vs=DEFAULT_SPACING)
Construct a non-floatable toolbar.
[more]void setDryDock(FXComposite* dry)
Set parent when docked.
[more]void setWetDock(FXComposite* wet)
Set parent when floating.
[more]FXComposite* getDryDock() const
Return parent when docked
[more]FXComposite* getWetDock() const
Return parent when floating
[more]FXbool isDocked() const
Return true if toolbar is docked
[more]virtual void dock(FXuint side=LAYOUT_SIDE_TOP, FXWindow* after=(FXWindow*)-1)
Dock the bar against the given side, after some other widget.
[more]virtual void undock()
Undock or float the bar.
[more]virtual FXint getDefaultWidth()
Return default width
[more]virtual FXint getDefaultHeight()
Return default height
[more]virtual FXint getWidthForHeight(FXint h)
Return width for given height
[more]virtual FXint getHeightForWidth(FXint w)
Return height for given width
[more]void setDockingSide(FXuint side=LAYOUT_SIDE_TOP)
Set docking side
[more]FXuint getDockingSide() const
Return docking side
[more]virtual void save(FXStream& store) const
Save toolbar to a stream
[more]virtual void load(FXStream& store)
Load toolbar from a stream
[more]virtual ~FXToolbar()
Destroy


Inherited from FXPacker:

Public Methods

ovoid setFrameStyle(FXuint style)
oFXuint getFrameStyle() const
ovoid setPackingHints(FXuint ph)
oFXuint getPackingHints() const
oFXint getBorderWidth() const
ovoid setPadTop(FXint pt)
oFXint getPadTop() const
ovoid setPadBottom(FXint pb)
oFXint getPadBottom() const
ovoid setPadLeft(FXint pl)
oFXint getPadLeft() const
ovoid setPadRight(FXint pr)
oFXint getPadRight() const
ovoid setHiliteColor(FXColor clr)
oFXColor getHiliteColor() const
ovoid setShadowColor(FXColor clr)
oFXColor getShadowColor() const
ovoid setBorderColor(FXColor clr)
oFXColor getBorderColor() const
ovoid setBaseColor(FXColor clr)
oFXColor getBaseColor() const
ovoid setHSpacing(FXint hs)
oFXint getHSpacing() const
ovoid setVSpacing(FXint vs)
oFXint getVSpacing() const


Inherited from FXComposite:

Public Methods

ovirtual void create()
ovirtual void detach()
ovirtual void destroy()
oFXint maxChildWidth() const
oFXint maxChildHeight() const
ovirtual FXbool isComposite() const


Inherited from FXWindow:

Public Methods

oFXWindow* getParent() const
oFXWindow* getOwner() const
oFXWindow* getShell() const
oFXWindow* getRoot() const
oFXWindow* getNext() const
oFXWindow* getPrev() const
oFXWindow* getFirst() const
oFXWindow* getLast() const
oFXWindow* getFocus() const
ovoid setKey(FXuint k)
oFXuint getKey() const
ovoid setTarget(FXObject* t)
oFXObject* getTarget() const
ovoid setSelector(FXSelector sel)
oFXSelector getSelector() const
oFXint getX() const
oFXint getY() const
ovoid setX(FXint x)
ovoid setY(FXint y)
ovoid setWidth(FXint w)
ovoid setHeight(FXint h)
ovoid setLayoutHints(FXuint lout)
oFXuint getLayoutHints() const
oFXAccelTable* getAccelTable() const
ovoid setAccelTable(FXAccelTable* acceltable)
ovoid addHotKey(FXHotKey code)
ovoid remHotKey(FXHotKey code)
oFXbool isShell() const
oFXbool isChildOf(const FXWindow* window) const
oFXbool containsChild(const FXWindow* child) const
oFXWindow* getChildAt(FXint x, FXint y) const
oFXint numChildren() const
oFXint indexOfChild(const FXWindow* window) const
oFXWindow* childAtIndex(FXint index) const
ostatic FXWindow* commonAncestor(FXWindow* a, FXWindow* b)
ovoid setDefaultCursor(FXCursor* cur)
oFXCursor* getDefaultCursor() const
ovoid setDragCursor(FXCursor* cur)
oFXCursor* getDragCursor() const
oFXint getCursorPosition(FXint& x, FXint& y, FXuint& buttons) const
oFXint setCursorPosition(FXint x, FXint y)
oFXbool isEnabled() const
oFXbool isActive() const
ovirtual FXbool canFocus() const
oFXbool hasFocus() const
ovirtual void setFocus()
ovirtual void killFocus()
ovirtual void setDefault(FXbool enable=TRUE)
oFXbool isDefault() const
ovoid setInitial(FXbool enable=TRUE)
oFXbool isInitial() const
ovirtual void enable()
ovirtual void disable()
ovirtual void raise()
ovirtual void lower()
ovirtual void move(FXint x, FXint y)
ovirtual void resize(FXint w, FXint h)
ovirtual void position(FXint x, FXint y, FXint w, FXint h)
ovirtual void recalc()
ovoid forceRefresh()
ovirtual void reparent(FXWindow* newparent)
ovoid scroll(FXint x, FXint y, FXint w, FXint h, FXint dx, FXint dy)
ovoid update(FXint x, FXint y, FXint w, FXint h)
ovoid update()
ovoid repaint(FXint x, FXint y, FXint w, FXint h)
ovoid repaint()
ovoid grab()
ovoid ungrab()
oFXbool grabbed() const
ovoid grabKeyboard()
ovoid ungrabKeyboard()
oFXbool grabbedKeyboard() const
ovirtual void show()
ovirtual void hide()
oFXbool shown() const
oFXbool underCursor() const
oFXbool hasSelection() const
oFXbool acquireSelection(const FXDragType* types, FXuint numtypes)
oFXbool releaseSelection()
oFXbool hasClipboard() const
oFXbool acquireClipboard(const FXDragType* types, FXuint numtypes)
oFXbool releaseClipboard()
ovoid dropEnable()
ovoid dropDisable()
oFXbool isDropEnabled() const
oFXbool isDragging() const
oFXbool beginDrag(const FXDragType* types, FXuint numtypes)
oFXbool handleDrag(FXint x, FXint y, FXDragAction action=DRAG_COPY)
oFXbool endDrag(FXbool drop=TRUE)
oFXbool isDropTarget() const
ovoid setDragRectangle(FXint x, FXint y, FXint w, FXint h, FXbool wantupdates=TRUE)
ovoid clearDragRectangle()
ovoid acceptDrop(FXDragAction action=DRAG_ACCEPT)
oFXDragAction didAccept() const
oFXbool inquireDNDTypes(FXDNDOrigin origin, FXDragType*& types, FXuint& numtypes)
oFXbool offeredDNDType(FXDNDOrigin origin, FXDragType type)
oFXDragAction inquireDNDAction() const
oFXbool setDNDData(FXDNDOrigin origin, FXDragType type, FXuchar* data, FXuint size)
oFXbool getDNDData(FXDNDOrigin origin, FXDragType type, FXuchar*& data, FXuint& size)
ovirtual FXbool contains(FXint parentx, FXint parenty) const
ovoid translateCoordinatesFrom(FXint& tox, FXint& toy, const FXWindow* fromwindow, FXint fromx, FXint fromy) const
ovoid translateCoordinatesTo(FXint& tox, FXint& toy, const FXWindow* towindow, FXint fromx, FXint fromy) const
ovirtual void setBackColor(FXColor clr)
oFXColor getBackColor() const
ovoid linkBefore(FXWindow* sibling)
ovoid linkAfter(FXWindow* sibling)


Inherited from FXDrawable:

Public Methods

oFXint getWidth() const
oFXint getHeight() const
oFXVisual* getVisual() const
ovoid setVisual(FXVisual* vis)


Inherited from FXId:

Public Methods

oFXApp* getApp() const
oFXID id() const
ovoid setUserData(void* ptr)
ovoid* getUserData() const


Inherited from FXObject:

Public Methods

oconst FXchar* getClassName() const
oFXbool isMemberOf(const FXMetaClass* metaclass) const


Documentation

Toolbar control
o FXToolbar(FXComposite* p, FXComposite* q, FXuint opts=LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=3, FXint pr=3, FXint pt=2, FXint pb=2, FXint hs=DEFAULT_SPACING, FXint vs=DEFAULT_SPACING)
Construct a floatable toolbar Normally, the toolbar is docked under window p. When floated, the toolbar can be docked under window q, which is typically an FXToolbarShell window.

o FXToolbar(FXComposite* p, FXuint opts=LAYOUT_TOP|LAYOUT_LEFT|LAYOUT_FILL_X, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=2, FXint pr=3, FXint pt=3, FXint pb=2, FXint hs=DEFAULT_SPACING, FXint vs=DEFAULT_SPACING)
Construct a non-floatable toolbar. The toolbar can not be undocked.

ovoid setDryDock(FXComposite* dry)
Set parent when docked. If it was docked, reparent under the new docking window.

ovoid setWetDock(FXComposite* wet)
Set parent when floating. If it was undocked, then reparent under the new floating window.

oFXComposite* getDryDock() const
Return parent when docked

oFXComposite* getWetDock() const
Return parent when floating

oFXbool isDocked() const
Return true if toolbar is docked

ovirtual void dock(FXuint side=LAYOUT_SIDE_TOP, FXWindow* after=(FXWindow*)-1)
Dock the bar against the given side, after some other widget. However, if after is -1, it will be docked as the innermost bar just before the work-area, while if after is 0, if will be docked as the outermost bar.

ovirtual void undock()
Undock or float the bar. The initial position of the wet dock is a few pixels below and to the right of the original docked position.

ovirtual FXint getDefaultWidth()
Return default width

ovirtual FXint getDefaultHeight()
Return default height

ovirtual FXint getWidthForHeight(FXint h)
Return width for given height

ovirtual FXint getHeightForWidth(FXint w)
Return height for given width

ovoid setDockingSide(FXuint side=LAYOUT_SIDE_TOP)
Set docking side

oFXuint getDockingSide() const
Return docking side

ovirtual void save(FXStream& store) const
Save toolbar to a stream

ovirtual void load(FXStream& store)
Load toolbar from a stream

ovirtual ~FXToolbar()
Destroy


Direct child classes:
FXMenubar

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.