FXHeader

class FXHeader

Header control may be placed over a table or list to provide a resizable captions above a number of columns.

Inheritance:


Public Methods

[more] FXHeader(FXComposite* p, FXObject* tgt=NULL, FXSelector sel=0, FXuint opts=HEADER_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
Construct new header control
[more]virtual void create()
Create server-side resources
[more]virtual void detach()
Detach server-side resources
[more]FXint getNumItems() const
Return number of items
[more]virtual FXint getDefaultWidth()
Return default width
[more]virtual FXint getDefaultHeight()
Return default height
[more]FXHeaderItem* retrieveItem(FXint index) const
Return item at given index
[more]FXint replaceItem(FXint index, FXHeaderItem* item, FXbool notify=FALSE)
Replace the item with a [possibly subclassed] item
[more]FXint replaceItem(FXint index, const FXString& text, FXIcon* icon=NULL, FXint size=0, void* ptr=NULL, FXbool notify=FALSE)
Replace items text, icon, and user-data pointer
[more]FXint insertItem(FXint index, FXHeaderItem* item, FXbool notify=FALSE)
Insert a new [possibly subclassed] item at the give index
[more]FXint insertItem(FXint index, const FXString& text, FXIcon* icon=NULL, FXint size=0, void* ptr=NULL, FXbool notify=FALSE)
Insert item at index with given text, icon, and user-data pointer
[more]FXint appendItem(FXHeaderItem* item, FXbool notify=FALSE)
Append a [possibly subclassed] item to the list
[more]FXint appendItem(const FXString& text, FXIcon* icon=NULL, FXint size=0, void* ptr=NULL, FXbool notify=FALSE)
Append new item with given text and optional icon, and user-data pointer
[more]FXint prependItem(FXHeaderItem* item, FXbool notify=FALSE)
Prepend a [possibly subclassed] item to the list
[more]FXint prependItem(const FXString& text, FXIcon* icon=NULL, FXint size=0, void* ptr=NULL, FXbool notify=FALSE)
Prepend new item with given text and optional icon, and user-data pointer
[more]void removeItem(FXint index, FXbool notify=FALSE)
Remove item at index
[more]void clearItems(FXbool notify=FALSE)
Remove all items
[more]FXint getItemAt(FXint offset) const
Return item-index given pixel-offset from left
[more]void setItemText(FXint index, const FXString& text)
Change text label for item at index
[more]FXString getItemText(FXint index) const
Get text of item at index
[more]void setItemIcon(FXint index, FXIcon* icon)
Change icon of item at index
[more]FXIcon* getItemIcon(FXint index) const
Return icon of item at index
[more]void setItemSize(FXint index, FXint size)
Change size of item at index
[more]FXint getItemSize(FXint index) const
Return size of item at index
[more]FXint getItemOffset(FXint index) const
Compute offset from the left side of item at index
[more]void setItemData(FXint index, void* ptr)
Change data of item at index
[more]void* getItemData(FXint index) const
Return data of item at index
[more]void setArrowDir(FXint index, FXbool dir=MAYBE)
Change sort direction (FALSE, TRUE, MAYBE)
[more]FXbool getArrowDir(FXint index) const
Return sort direction (FALSE, TRUE, MAYBE)
[more]void setFont(FXFont* fnt)
Change text font
[more]FXFont* getFont() const
return text font
[more]FXColor getTextColor() const
Return text color
[more]void setTextColor(FXColor clr)
Change text color
[more]void setHeaderStyle(FXuint style)
Set header style options
[more]FXuint getHeaderStyle() const
Get header style options
[more]void setHelpText(const FXString& text)
Set the status line help text for this header
[more]FXString getHelpText() const
Get the status line help text for this header
[more]virtual void save(FXStream& store) const
Save header to a stream
[more]virtual void load(FXStream& store)
Load header from a stream
[more]virtual ~FXHeader()
Destructor


Inherited from FXFrame:

Public Methods

ovoid setFrameStyle(FXuint style)
oFXuint getFrameStyle() 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


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 destroy()
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
ovirtual FXbool isComposite() 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

Header control may be placed over a table or list to provide a resizable captions above a number of columns. Each caption comprises a label and an optional icon; in addition, an arrow may be shown to indicate whether the items in that column are sorted, and if so, whether they are sorted in increasing or decreasing order. Each caption can be interactively resized. During the resizing, if the HEADER_TRACKING was specified, the header control sends a SEL_CHANGED message to its target, with the message data set to the caption number being resized, of the type FXint. If the HEADER_TRACKING was not specified the SEL_CHANGED message is sent at the end of the resizing operation. Clicking on a caption causes a message of type SEL_COMMAND to be sent to the target, with the message data set to the caption number being clicked.
o FXHeader(FXComposite* p, FXObject* tgt=NULL, FXSelector sel=0, FXuint opts=HEADER_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
Construct new header control

ovirtual void create()
Create server-side resources

ovirtual void detach()
Detach server-side resources

oFXint getNumItems() const
Return number of items

ovirtual FXint getDefaultWidth()
Return default width

ovirtual FXint getDefaultHeight()
Return default height

oFXHeaderItem* retrieveItem(FXint index) const
Return item at given index

oFXint replaceItem(FXint index, FXHeaderItem* item, FXbool notify=FALSE)
Replace the item with a [possibly subclassed] item

oFXint replaceItem(FXint index, const FXString& text, FXIcon* icon=NULL, FXint size=0, void* ptr=NULL, FXbool notify=FALSE)
Replace items text, icon, and user-data pointer

oFXint insertItem(FXint index, FXHeaderItem* item, FXbool notify=FALSE)
Insert a new [possibly subclassed] item at the give index

oFXint insertItem(FXint index, const FXString& text, FXIcon* icon=NULL, FXint size=0, void* ptr=NULL, FXbool notify=FALSE)
Insert item at index with given text, icon, and user-data pointer

oFXint appendItem(FXHeaderItem* item, FXbool notify=FALSE)
Append a [possibly subclassed] item to the list

oFXint appendItem(const FXString& text, FXIcon* icon=NULL, FXint size=0, void* ptr=NULL, FXbool notify=FALSE)
Append new item with given text and optional icon, and user-data pointer

oFXint prependItem(FXHeaderItem* item, FXbool notify=FALSE)
Prepend a [possibly subclassed] item to the list

oFXint prependItem(const FXString& text, FXIcon* icon=NULL, FXint size=0, void* ptr=NULL, FXbool notify=FALSE)
Prepend new item with given text and optional icon, and user-data pointer

ovoid removeItem(FXint index, FXbool notify=FALSE)
Remove item at index

ovoid clearItems(FXbool notify=FALSE)
Remove all items

oFXint getItemAt(FXint offset) const
Return item-index given pixel-offset from left

ovoid setItemText(FXint index, const FXString& text)
Change text label for item at index

oFXString getItemText(FXint index) const
Get text of item at index

ovoid setItemIcon(FXint index, FXIcon* icon)
Change icon of item at index

oFXIcon* getItemIcon(FXint index) const
Return icon of item at index

ovoid setItemSize(FXint index, FXint size)
Change size of item at index

oFXint getItemSize(FXint index) const
Return size of item at index

oFXint getItemOffset(FXint index) const
Compute offset from the left side of item at index

ovoid setItemData(FXint index, void* ptr)
Change data of item at index

ovoid* getItemData(FXint index) const
Return data of item at index

ovoid setArrowDir(FXint index, FXbool dir=MAYBE)
Change sort direction (FALSE, TRUE, MAYBE)

oFXbool getArrowDir(FXint index) const
Return sort direction (FALSE, TRUE, MAYBE)

ovoid setFont(FXFont* fnt)
Change text font

oFXFont* getFont() const
return text font

oFXColor getTextColor() const
Return text color

ovoid setTextColor(FXColor clr)
Change text color

ovoid setHeaderStyle(FXuint style)
Set header style options

oFXuint getHeaderStyle() const
Get header style options

ovoid setHelpText(const FXString& text)
Set the status line help text for this header

oFXString getHelpText() const
Get the status line help text for this header

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

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

ovirtual ~FXHeader()
Destructor


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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