Packer is a layout manager which automatically places child windows inside its area against the left, right, top, or bottom side.
Inheritance:
Public Methods
-
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
-
virtual FXint getDefaultWidth()
- Return default width
-
virtual FXint getDefaultHeight()
- Return default height
-
void setFrameStyle(FXuint style)
- Change frame style
-
FXuint getFrameStyle() const
- Get current frame style
-
void setPackingHints(FXuint ph)
- Change packing hints
-
FXuint getPackingHints() const
- Return packing hints
-
FXint getBorderWidth() const
- Get border width
-
void setPadTop(FXint pt)
- Change top padding
-
FXint getPadTop() const
- Get top interior padding
-
void setPadBottom(FXint pb)
- Change bottom padding
-
FXint getPadBottom() const
- Get bottom interior padding
-
void setPadLeft(FXint pl)
- Change left padding
-
FXint getPadLeft() const
- Get left interior padding
-
void setPadRight(FXint pr)
- Change right padding
-
FXint getPadRight() const
- Get right interior padding
-
void setHiliteColor(FXColor clr)
- Change highlight color
-
FXColor getHiliteColor() const
- Get highlight color
-
void setShadowColor(FXColor clr)
- Change shadow color
-
FXColor getShadowColor() const
- Get shadow color
-
void setBorderColor(FXColor clr)
- Change border color
-
FXColor getBorderColor() const
- Get border color
-
void setBaseColor(FXColor clr)
- Change base gui color
-
FXColor getBaseColor() const
- Get base gui color
-
void setHSpacing(FXint hs)
- Change horizontal inter-child spacing
-
FXint getHSpacing() const
- Return current horizontal inter-child spacing
-
void setVSpacing(FXint vs)
- Change vertical inter-child spacing
-
FXint getVSpacing() const
- Return current vertical inter-child spacing
-
virtual void save(FXStream& store) const
- Save to stream
-
virtual void load(FXStream& store)
- Load from stream
Public Methods
-
virtual void create()
-
virtual void detach()
-
virtual void destroy()
-
FXint maxChildWidth() const
-
FXint maxChildHeight() const
-
virtual FXbool isComposite() const
Public Methods
-
FXWindow* getParent() const
-
FXWindow* getOwner() const
-
FXWindow* getShell() const
-
FXWindow* getRoot() const
-
FXWindow* getNext() const
-
FXWindow* getPrev() const
-
FXWindow* getFirst() const
-
FXWindow* getLast() const
-
FXWindow* getFocus() const
-
void setKey(FXuint k)
-
FXuint getKey() const
-
void setTarget(FXObject* t)
-
FXObject* getTarget() const
-
void setSelector(FXSelector sel)
-
FXSelector getSelector() const
-
FXint getX() const
-
FXint getY() const
-
virtual FXint getWidthForHeight(FXint givenheight)
-
virtual FXint getHeightForWidth(FXint givenwidth)
-
void setX(FXint x)
-
void setY(FXint y)
-
void setWidth(FXint w)
-
void setHeight(FXint h)
-
void setLayoutHints(FXuint lout)
-
FXuint getLayoutHints() const
-
FXAccelTable* getAccelTable() const
-
void setAccelTable(FXAccelTable* acceltable)
-
void addHotKey(FXHotKey code)
-
void remHotKey(FXHotKey code)
-
FXbool isShell() const
-
FXbool isChildOf(const FXWindow* window) const
-
FXbool containsChild(const FXWindow* child) const
-
FXWindow* getChildAt(FXint x, FXint y) const
-
FXint numChildren() const
-
FXint indexOfChild(const FXWindow* window) const
-
FXWindow* childAtIndex(FXint index) const
-
static FXWindow* commonAncestor(FXWindow* a, FXWindow* b)
-
void setDefaultCursor(FXCursor* cur)
-
FXCursor* getDefaultCursor() const
-
void setDragCursor(FXCursor* cur)
-
FXCursor* getDragCursor() const
-
FXint getCursorPosition(FXint& x, FXint& y, FXuint& buttons) const
-
FXint setCursorPosition(FXint x, FXint y)
-
FXbool isEnabled() const
-
FXbool isActive() const
-
virtual FXbool canFocus() const
-
FXbool hasFocus() const
-
virtual void setFocus()
-
virtual void killFocus()
-
virtual void setDefault(FXbool enable=TRUE)
-
FXbool isDefault() const
-
void setInitial(FXbool enable=TRUE)
-
FXbool isInitial() const
-
virtual void enable()
-
virtual void disable()
-
virtual void raise()
-
virtual void lower()
-
virtual void move(FXint x, FXint y)
-
virtual void resize(FXint w, FXint h)
-
virtual void position(FXint x, FXint y, FXint w, FXint h)
-
virtual void recalc()
-
void forceRefresh()
-
virtual void reparent(FXWindow* newparent)
-
void scroll(FXint x, FXint y, FXint w, FXint h, FXint dx, FXint dy)
-
void update(FXint x, FXint y, FXint w, FXint h)
-
void update()
-
void repaint(FXint x, FXint y, FXint w, FXint h)
-
void repaint()
-
void grab()
-
void ungrab()
-
FXbool grabbed() const
-
void grabKeyboard()
-
void ungrabKeyboard()
-
FXbool grabbedKeyboard() const
-
virtual void show()
-
virtual void hide()
-
FXbool shown() const
-
FXbool underCursor() const
-
FXbool hasSelection() const
-
FXbool acquireSelection(const FXDragType* types, FXuint numtypes)
-
FXbool releaseSelection()
-
FXbool hasClipboard() const
-
FXbool acquireClipboard(const FXDragType* types, FXuint numtypes)
-
FXbool releaseClipboard()
-
void dropEnable()
-
void dropDisable()
-
FXbool isDropEnabled() const
-
FXbool isDragging() const
-
FXbool beginDrag(const FXDragType* types, FXuint numtypes)
-
FXbool handleDrag(FXint x, FXint y, FXDragAction action=DRAG_COPY)
-
FXbool endDrag(FXbool drop=TRUE)
-
FXbool isDropTarget() const
-
void setDragRectangle(FXint x, FXint y, FXint w, FXint h, FXbool wantupdates=TRUE)
-
void clearDragRectangle()
-
void acceptDrop(FXDragAction action=DRAG_ACCEPT)
-
FXDragAction didAccept() const
-
FXbool inquireDNDTypes(FXDNDOrigin origin, FXDragType*& types, FXuint& numtypes)
-
FXbool offeredDNDType(FXDNDOrigin origin, FXDragType type)
-
FXDragAction inquireDNDAction() const
-
FXbool setDNDData(FXDNDOrigin origin, FXDragType type, FXuchar* data, FXuint size)
-
FXbool getDNDData(FXDNDOrigin origin, FXDragType type, FXuchar*& data, FXuint& size)
-
virtual FXbool contains(FXint parentx, FXint parenty) const
-
void translateCoordinatesFrom(FXint& tox, FXint& toy, const FXWindow* fromwindow, FXint fromx, FXint fromy) const
-
void translateCoordinatesTo(FXint& tox, FXint& toy, const FXWindow* towindow, FXint fromx, FXint fromy) const
-
virtual void setBackColor(FXColor clr)
-
FXColor getBackColor() const
-
void linkBefore(FXWindow* sibling)
-
void linkAfter(FXWindow* sibling)
Public Methods
-
FXint getWidth() const
-
FXint getHeight() const
-
FXVisual* getVisual() const
-
void setVisual(FXVisual* vis)
Inherited from FXId:
Public Methods
-
FXApp* getApp() const
-
FXID id() const
-
void setUserData(void* ptr)
-
void* getUserData() const
Public Methods
-
const FXchar* getClassName() const
-
FXbool 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.
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
virtual FXint getDefaultWidth()
- Return default width
virtual FXint getDefaultHeight()
- Return default height
void setFrameStyle(FXuint style)
- Change frame style
FXuint getFrameStyle() const
- Get current frame style
void setPackingHints(FXuint ph)
- Change packing hints
FXuint getPackingHints() const
- Return packing hints
FXint getBorderWidth() const
- Get border width
void setPadTop(FXint pt)
- Change top padding
FXint getPadTop() const
- Get top interior padding
void setPadBottom(FXint pb)
- Change bottom padding
FXint getPadBottom() const
- Get bottom interior padding
void setPadLeft(FXint pl)
- Change left padding
FXint getPadLeft() const
- Get left interior padding
void setPadRight(FXint pr)
- Change right padding
FXint getPadRight() const
- Get right interior padding
void setHiliteColor(FXColor clr)
- Change highlight color
FXColor getHiliteColor() const
- Get highlight color
void setShadowColor(FXColor clr)
- Change shadow color
FXColor getShadowColor() const
- Get shadow color
void setBorderColor(FXColor clr)
- Change border color
FXColor getBorderColor() const
- Get border color
void setBaseColor(FXColor clr)
- Change base gui color
FXColor getBaseColor() const
- Get base gui color
void setHSpacing(FXint hs)
- Change horizontal inter-child spacing
FXint getHSpacing() const
- Return current horizontal inter-child spacing
void setVSpacing(FXint vs)
- Change vertical inter-child spacing
FXint getVSpacing() const
- Return current vertical inter-child spacing
virtual void save(FXStream& store) const
- Save to stream
virtual 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++.