Icon List Widget
Inheritance:
Public Methods
-
FXIconList(FXComposite* p, FXObject* tgt=NULL, FXSelector sel=0, FXuint opts=ICONLIST_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
- Construct icon list
-
virtual void create()
- Create server-side resources
-
virtual void detach()
- Detach server-side resources
-
virtual void recalc()
- Recalculate layout
-
virtual FXint getContentWidth()
- Compute and return content width
-
virtual FXint getContentHeight()
- Return content height
-
virtual FXbool canFocus() const
- Icon list can receive focus
-
virtual void setFocus()
- Move the focus to this window
-
virtual void killFocus()
- Remove the focus from this window
-
virtual FXint getViewportHeight()
- Return viewport size
-
virtual void moveContents(FXint x, FXint y)
- Move contents to the specified position
-
virtual void resize(FXint w, FXint h)
- Resize this window to the specified width and height
-
virtual void position(FXint x, FXint y, FXint w, FXint h)
- Move and resize this window in the parent's coordinates
-
FXint getNumItems() const
- Return number of items
-
FXint getNumRows() const
- Return number of rows
-
FXint getNumCols() const
- Return number of columns
-
FXHeader* getHeader() const
- Return header control
-
void appendHeader(const FXString& text, FXIcon* icon=NULL, FXint size=1)
- Append header with given text and optional icon
-
void removeHeader(FXint index)
- Remove header at index
-
void setHeaderText(FXint index, const FXString& text)
- Change text of header at index
-
FXString getHeaderText(FXint index) const
- Return text of header at index
-
void setHeaderIcon(FXint index, FXIcon* icon)
- Change icon of header at index
-
FXIcon* getHeaderIcon(FXint index) const
- Return icon of header at index
-
void setHeaderSize(FXint index, FXint size)
- Change size of header at index
-
FXint getHeaderSize(FXint index) const
- Return width of header at index
-
FXint getNumHeaders() const
- Return number of headers
-
FXIconItem* retrieveItem(FXint index) const
- Return the item at the given index
-
FXint replaceItem(FXint index, FXIconItem* item, FXbool notify=FALSE)
- Replace the item with a [possibly subclassed] item
-
FXint replaceItem(FXint index, const FXString& text, FXIcon* big=NULL, FXIcon* mini=NULL, void* ptr=NULL, FXbool notify=FALSE)
- Replace items text, icons, and user-data pointer
-
FXint insertItem(FXint index, FXIconItem* item, FXbool notify=FALSE)
- Insert a new [possibly subclassed] item at the give index
-
FXint insertItem(FXint index, const FXString& text, FXIcon* big=NULL, FXIcon* mini=NULL, void* ptr=NULL, FXbool notify=FALSE)
- Insert item at index with given text, icons, and user-data pointer
-
FXint appendItem(FXIconItem* item, FXbool notify=FALSE)
- Append a [possibly subclassed] item to the end of the list
-
FXint appendItem(const FXString& text, FXIcon* big=NULL, FXIcon* mini=NULL, void* ptr=NULL, FXbool notify=FALSE)
- Append new item with given text and optional icons, and user-data pointer
-
FXint prependItem(FXIconItem* item, FXbool notify=FALSE)
- Append a [possibly subclassed] item to the end of the list
-
FXint prependItem(const FXString& text, FXIcon* big=NULL, FXIcon* mini=NULL, void* ptr=NULL, FXbool notify=FALSE)
- Append new item with given text and optional icons, and user-data pointer
-
void removeItem(FXint index, FXbool notify=FALSE)
- Remove item from list
-
void clearItems(FXbool notify=FALSE)
- Remove all items from list
-
FXint getItemWidth() const
- Return item width
-
FXint getItemHeight() const
- Return item height
-
FXint getItemAt(FXint x, FXint y) const
- Return index of item at x,y, or -1 if none
-
FXint findItem(const FXString& text, FXint start=-1, FXuint flags=SEARCH_FORWARD|SEARCH_WRAP) const
- Search items for item by name, starting from start item; the flags argument controls the search direction, and case sensitivity
-
void makeItemVisible(FXint index)
- Scroll to make item at index visible
-
void setItemText(FXint index, const FXString& text)
- Change item text
-
FXString getItemText(FXint index) const
- Return item text
-
void setItemBigIcon(FXint index, FXIcon* icon)
- Change item big icon
-
FXIcon* getItemBigIcon(FXint index) const
- Return big icon of item at index
-
void setItemMiniIcon(FXint index, FXIcon* icon)
- Change item mini icon
-
FXIcon* getItemMiniIcon(FXint index) const
- Return mini icon of item at index
-
void setItemData(FXint index, void* ptr)
- Change item user-data pointer
-
void* getItemData(FXint index) const
- Return item user-data pointer
-
FXbool isItemSelected(FXint index) const
- Return TRUE if item at index is selected
-
FXbool isItemCurrent(FXint index) const
- Return TRUE if item at index is current
-
FXbool isItemVisible(FXint index) const
- Return TRUE if item at index is visible
-
FXbool isItemEnabled(FXint index) const
- Return TRUE if item at index is enabled
-
FXint hitItem(FXint index, FXint x, FXint y, FXint ww=1, FXint hh=1) const
- Return item hit code: 0 outside, 1 icon, 2 text
-
void updateItem(FXint index)
- Repaint item at index
-
FXbool selectInRectangle(FXint x, FXint y, FXint w, FXint h, FXbool notify=FALSE)
- Select items in rectangle
-
FXbool enableItem(FXint index)
- Enable item at index
-
FXbool disableItem(FXint index)
- Disable item at index
-
FXbool selectItem(FXint index, FXbool notify=FALSE)
- Select item at index
-
FXbool deselectItem(FXint index, FXbool notify=FALSE)
- Deselect item at index
-
FXbool toggleItem(FXint index, FXbool notify=FALSE)
- Toggle item at index
-
void setCurrentItem(FXint index, FXbool notify=FALSE)
- Change current item index
-
FXint getCurrentItem() const
- Return current item index, or -1 if none
-
void setAnchorItem(FXint index)
- Change anchor item index
-
FXint getAnchorItem() const
- Return anchor item index, or -1 if none
-
FXint getCursorItem() const
- Return index of item under cursor, or -1 if none
-
FXbool extendSelection(FXint index, FXbool notify=FALSE)
- Extend selection from anchor index to index
-
FXbool killSelection(FXbool notify=FALSE)
- Deselect all items
-
void sortItems()
- Sort items
-
void setFont(FXFont* fnt)
- Change text font
-
FXFont* getFont() const
- Return text font
-
FXColor getTextColor() const
- Return normal text color
-
void setTextColor(FXColor clr)
- Change normal text color
-
FXColor getSelBackColor() const
- Return selected text background
-
void setSelBackColor(FXColor clr)
- Change selected text background
-
FXColor getSelTextColor() const
- Return selected text color
-
void setSelTextColor(FXColor clr)
- Change selected text color
-
void setItemSpace(FXint s)
- Change maximum item space for each item
-
FXint getItemSpace() const
- Return maximum item space
-
FXIconListSortFunc getSortFunc() const
- Return sort function
-
void setSortFunc(FXIconListSortFunc func)
- Change sort function
-
FXuint getListStyle() const
- Get the current icon list style
-
void setListStyle(FXuint style)
- Set the current icon list style
-
void setHelpText(const FXString& text)
- Set the status line help text for this widget
-
FXString getHelpText() const
- Get the status line help text for this widget
-
virtual void save(FXStream& store) const
- Save list to a stream
-
virtual void load(FXStream& store)
- Load list from a stream
-
virtual ~FXIconList()
- Destructor
Public Methods
-
virtual FXint getDefaultWidth()
-
virtual FXint getDefaultHeight()
-
void setScrollStyle(FXuint style)
-
FXuint getScrollStyle() const
-
FXbool isHorizontalScrollable() const
-
FXbool isVerticalScrollable() const
-
FXScrollbar* horizontalScrollbar() const
-
FXScrollbar* verticalScrollbar() const
-
FXint getXPosition() const
-
FXint getYPosition() const
-
void setPosition(FXint x, FXint y)
-
void getPosition(FXint& x, FXint& y) const
Public Methods
-
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
-
FXbool hasFocus() const
-
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)
-
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
Icon List Widget
FXIconList(FXComposite* p, FXObject* tgt=NULL, FXSelector sel=0, FXuint opts=ICONLIST_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
- Construct icon list
virtual void create()
- Create server-side resources
virtual void detach()
- Detach server-side resources
virtual void recalc()
- Recalculate layout
virtual FXint getContentWidth()
- Compute and return content width
virtual FXint getContentHeight()
- Return content height
virtual FXbool canFocus() const
- Icon list can receive focus
virtual void setFocus()
- Move the focus to this window
virtual void killFocus()
- Remove the focus from this window
virtual FXint getViewportHeight()
- Return viewport size
virtual void moveContents(FXint x, FXint y)
- Move contents to the specified position
virtual void resize(FXint w, FXint h)
- Resize this window to the specified width and height
virtual void position(FXint x, FXint y, FXint w, FXint h)
- Move and resize this window in the parent's coordinates
FXint getNumItems() const
- Return number of items
FXint getNumRows() const
- Return number of rows
FXint getNumCols() const
- Return number of columns
FXHeader* getHeader() const
- Return header control
void appendHeader(const FXString& text, FXIcon* icon=NULL, FXint size=1)
- Append header with given text and optional icon
void removeHeader(FXint index)
- Remove header at index
void setHeaderText(FXint index, const FXString& text)
- Change text of header at index
FXString getHeaderText(FXint index) const
- Return text of header at index
void setHeaderIcon(FXint index, FXIcon* icon)
- Change icon of header at index
FXIcon* getHeaderIcon(FXint index) const
- Return icon of header at index
void setHeaderSize(FXint index, FXint size)
- Change size of header at index
FXint getHeaderSize(FXint index) const
- Return width of header at index
FXint getNumHeaders() const
- Return number of headers
FXIconItem* retrieveItem(FXint index) const
- Return the item at the given index
FXint replaceItem(FXint index, FXIconItem* item, FXbool notify=FALSE)
- Replace the item with a [possibly subclassed] item
FXint replaceItem(FXint index, const FXString& text, FXIcon* big=NULL, FXIcon* mini=NULL, void* ptr=NULL, FXbool notify=FALSE)
- Replace items text, icons, and user-data pointer
FXint insertItem(FXint index, FXIconItem* item, FXbool notify=FALSE)
- Insert a new [possibly subclassed] item at the give index
FXint insertItem(FXint index, const FXString& text, FXIcon* big=NULL, FXIcon* mini=NULL, void* ptr=NULL, FXbool notify=FALSE)
- Insert item at index with given text, icons, and user-data pointer
FXint appendItem(FXIconItem* item, FXbool notify=FALSE)
- Append a [possibly subclassed] item to the end of the list
FXint appendItem(const FXString& text, FXIcon* big=NULL, FXIcon* mini=NULL, void* ptr=NULL, FXbool notify=FALSE)
- Append new item with given text and optional icons, and user-data pointer
FXint prependItem(FXIconItem* item, FXbool notify=FALSE)
- Append a [possibly subclassed] item to the end of the list
FXint prependItem(const FXString& text, FXIcon* big=NULL, FXIcon* mini=NULL, void* ptr=NULL, FXbool notify=FALSE)
- Append new item with given text and optional icons, and user-data pointer
void removeItem(FXint index, FXbool notify=FALSE)
- Remove item from list
void clearItems(FXbool notify=FALSE)
- Remove all items from list
FXint getItemWidth() const
- Return item width
FXint getItemHeight() const
- Return item height
FXint getItemAt(FXint x, FXint y) const
- Return index of item at x,y, or -1 if none
FXint findItem(const FXString& text, FXint start=-1, FXuint flags=SEARCH_FORWARD|SEARCH_WRAP) const
-
Search items for item by name, starting from start item; the
flags argument controls the search direction, and case sensitivity
void makeItemVisible(FXint index)
- Scroll to make item at index visible
void setItemText(FXint index, const FXString& text)
- Change item text
FXString getItemText(FXint index) const
- Return item text
void setItemBigIcon(FXint index, FXIcon* icon)
- Change item big icon
FXIcon* getItemBigIcon(FXint index) const
- Return big icon of item at index
void setItemMiniIcon(FXint index, FXIcon* icon)
- Change item mini icon
FXIcon* getItemMiniIcon(FXint index) const
- Return mini icon of item at index
void setItemData(FXint index, void* ptr)
- Change item user-data pointer
void* getItemData(FXint index) const
- Return item user-data pointer
FXbool isItemSelected(FXint index) const
- Return TRUE if item at index is selected
FXbool isItemCurrent(FXint index) const
- Return TRUE if item at index is current
FXbool isItemVisible(FXint index) const
- Return TRUE if item at index is visible
FXbool isItemEnabled(FXint index) const
- Return TRUE if item at index is enabled
FXint hitItem(FXint index, FXint x, FXint y, FXint ww=1, FXint hh=1) const
- Return item hit code: 0 outside, 1 icon, 2 text
void updateItem(FXint index)
- Repaint item at index
FXbool selectInRectangle(FXint x, FXint y, FXint w, FXint h, FXbool notify=FALSE)
- Select items in rectangle
FXbool enableItem(FXint index)
- Enable item at index
FXbool disableItem(FXint index)
- Disable item at index
FXbool selectItem(FXint index, FXbool notify=FALSE)
- Select item at index
FXbool deselectItem(FXint index, FXbool notify=FALSE)
- Deselect item at index
FXbool toggleItem(FXint index, FXbool notify=FALSE)
- Toggle item at index
void setCurrentItem(FXint index, FXbool notify=FALSE)
- Change current item index
FXint getCurrentItem() const
- Return current item index, or -1 if none
void setAnchorItem(FXint index)
- Change anchor item index
FXint getAnchorItem() const
- Return anchor item index, or -1 if none
FXint getCursorItem() const
- Return index of item under cursor, or -1 if none
FXbool extendSelection(FXint index, FXbool notify=FALSE)
- Extend selection from anchor index to index
FXbool killSelection(FXbool notify=FALSE)
- Deselect all items
void sortItems()
- Sort items
void setFont(FXFont* fnt)
- Change text font
FXFont* getFont() const
- Return text font
FXColor getTextColor() const
- Return normal text color
void setTextColor(FXColor clr)
- Change normal text color
FXColor getSelBackColor() const
- Return selected text background
void setSelBackColor(FXColor clr)
- Change selected text background
FXColor getSelTextColor() const
- Return selected text color
void setSelTextColor(FXColor clr)
- Change selected text color
void setItemSpace(FXint s)
- Change maximum item space for each item
FXint getItemSpace() const
- Return maximum item space
FXIconListSortFunc getSortFunc() const
- Return sort function
void setSortFunc(FXIconListSortFunc func)
- Change sort function
FXuint getListStyle() const
- Get the current icon list style
void setListStyle(FXuint style)
- Set the current icon list style
void setHelpText(const FXString& text)
- Set the status line help text for this widget
FXString getHelpText() const
- Get the status line help text for this widget
virtual void save(FXStream& store) const
- Save list to a stream
virtual void load(FXStream& store)
- Load list from a stream
virtual ~FXIconList()
- Destructor
- Direct child classes:
- FXFileList
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.