FXPacker

class FXPacker

Packer is a layout manager which automatically places child windows inside its area against the left, right, top, or bottom side.

Inheritance:


Public Methods

[more] FXPacker(FXComposite* p, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_SPACING, FXint pr=DEFAULT_SPACING, FXint pt=DEFAULT_SPACING, FXint pb=DEFAULT_SPACING, FXint hs=DEFAULT_SPACING, FXint vs=DEFAULT_SPACING)
Construct packer layout manager
[more]virtual FXint getDefaultWidth()
Return default width
[more]virtual FXint getDefaultHeight()
Return default height
[more]void setFrameStyle(FXuint style)
Change frame style
[more]FXuint getFrameStyle() const
Get current frame style
[more]void setPackingHints(FXuint ph)
Change packing hints
[more]FXuint getPackingHints() const
Return packing hints
[more]FXint getBorderWidth() const
Get border width
[more]void setPadTop(FXint pt)
Change top padding
[more]FXint getPadTop() const
Get top interior padding
[more]void setPadBottom(FXint pb)
Change bottom padding
[more]FXint getPadBottom() const
Get bottom interior padding
[more]void setPadLeft(FXint pl)
Change left padding
[more]FXint getPadLeft() const
Get left interior padding
[more]void setPadRight(FXint pr)
Change right padding
[more]FXint getPadRight() const
Get right interior padding
[more]void setHiliteColor(FXColor clr)
Change highlight color
[more]FXColor getHiliteColor() const
Get highlight color
[more]void setShadowColor(FXColor clr)
Change shadow color
[more]FXColor getShadowColor() const
Get shadow color
[more]void setBorderColor(FXColor clr)
Change border color
[more]FXColor getBorderColor() const
Get border color
[more]void setBaseColor(FXColor clr)
Change base gui color
[more]FXColor getBaseColor() const
Get base gui color
[more]void setHSpacing(FXint hs)
Change horizontal inter-child spacing
[more]FXint getHSpacing() const
Return current horizontal inter-child spacing
[more]void setVSpacing(FXint vs)
Change vertical inter-child spacing
[more]FXint getVSpacing() const
Return current vertical inter-child spacing
[more]virtual void save(FXStream& store) const
Save to stream
[more]virtual void load(FXStream& store)
Load from stream


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
ovirtual FXint getWidthForHeight(FXint givenheight)
ovirtual FXint getHeightForWidth(FXint givenwidth)
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

Packer is a layout manager which automatically places child windows inside its area against the left, right, top, or bottom side. Each time a child is placed, the remaining space is decreased by the amount of space taken by the child window. The side against which a child is placed is determined by the LAYOUT_SIDE_TOP, LAYOUT_SIDE_BOTTOM, LAYOUT_SIDE_LEFT, and LAYOUT_SIDE_RIGHT hints given by the child window. Other layout hints from the child are observed as far as sensible. So for example, a child placed against the right edge can still have LAYOUT_FILL_Y or LAYOUT_TOP, and so on. The last child may have both LAYOUT_FILL_X and LAYOUT_FILL_Y, in which case it will be placed to take all remaining space.
o FXPacker(FXComposite* p, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_SPACING, FXint pr=DEFAULT_SPACING, FXint pt=DEFAULT_SPACING, FXint pb=DEFAULT_SPACING, FXint hs=DEFAULT_SPACING, FXint vs=DEFAULT_SPACING)
Construct packer layout manager

ovirtual FXint getDefaultWidth()
Return default width

ovirtual FXint getDefaultHeight()
Return default height

ovoid setFrameStyle(FXuint style)
Change frame style

oFXuint getFrameStyle() const
Get current frame style

ovoid setPackingHints(FXuint ph)
Change packing hints

oFXuint getPackingHints() const
Return packing hints

oFXint getBorderWidth() const
Get border width

ovoid setPadTop(FXint pt)
Change top padding

oFXint getPadTop() const
Get top interior padding

ovoid setPadBottom(FXint pb)
Change bottom padding

oFXint getPadBottom() const
Get bottom interior padding

ovoid setPadLeft(FXint pl)
Change left padding

oFXint getPadLeft() const
Get left interior padding

ovoid setPadRight(FXint pr)
Change right padding

oFXint getPadRight() const
Get right interior padding

ovoid setHiliteColor(FXColor clr)
Change highlight color

oFXColor getHiliteColor() const
Get highlight color

ovoid setShadowColor(FXColor clr)
Change shadow color

oFXColor getShadowColor() const
Get shadow color

ovoid setBorderColor(FXColor clr)
Change border color

oFXColor getBorderColor() const
Get border color

ovoid setBaseColor(FXColor clr)
Change base gui color

oFXColor getBaseColor() const
Get base gui color

ovoid setHSpacing(FXint hs)
Change horizontal inter-child spacing

oFXint getHSpacing() const
Return current horizontal inter-child spacing

ovoid setVSpacing(FXint vs)
Change vertical inter-child spacing

oFXint getVSpacing() const
Return current vertical inter-child spacing

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

ovirtual void load(FXStream& store)
Load from stream


Direct child classes:
FXVerticalFrame
FXTreeListBox
FXToolbar
FXToolBar
FXTabBar
FXSwitcher
FXSpinner
FXMatrix
FXListBox
FXHorizontalFrame
FXGroupBox
FXFontSelector
FXFileSelector
FXDirSelector
FXComboBox
FXColorSelector

Alphabetic index HTML hierarchy of classes or Java



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