41 MFXListIcon(FXComposite* p, FXObject* tgt = NULL, FXSelector sel = 0, FXuint opts = LIST_NORMAL, FXint x = 0, FXint y = 0, FXint w = 0, FXint h = 0);
81 return (
int)
items.size();
99 FXint
editItem(FXint index,
const FXString& text, FXIcon* icon = NULL,
void* ptr = NULL, FXbool notify = FALSE);
105 FXint
insertItem(FXint index,
const FXString& text, FXIcon* icon = NULL,
void* ptr = NULL, FXbool notify = FALSE);
111 FXint
appendItem(
const FXString& text, FXIcon* icon = NULL,
void* ptr = NULL, FXbool notify = FALSE);
114 void removeItem(FXint index, FXbool notify = FALSE);
120 void setFilter(
const FXString& value, FXLabel* label);
132 int findItem(
const FXString& text)
const;
218 long onPaint(FXObject*, FXSelector,
void*);
219 long onEnter(FXObject*, FXSelector,
void*);
220 long onLeave(FXObject*, FXSelector,
void*);
222 long onKeyPress(FXObject*, FXSelector,
void*);
228 long onMotion(FXObject*, FXSelector,
void*);
229 long onFocusIn(FXObject*, FXSelector,
void*);
230 long onFocusOut(FXObject*, FXSelector,
void*);
232 long onClicked(FXObject*, FXSelector,
void*);
235 long onCommand(FXObject*, FXSelector,
void*);
236 long onQueryTip(FXObject*, FXSelector,
void*);
238 long onTipTimer(FXObject*, FXSelector,
void*);
253 std::vector<MFXListIconItem*>
items;
317 bool showItem(
const FXString& itemName)
const;
A list item which allows for custom coloring.
long onDoubleClicked(FXObject *, FXSelector, void *)
FXint listWidth
List width.
FXint getDefaultWidth()
Return default width.
void recalc()
Recalculate layout.
MFXListIcon(const FXList &)=delete
invalidate copy constructor
long onKeyRelease(FXObject *, FXSelector, void *)
long onRightBtnPress(FXObject *, FXSelector, void *)
long onCommand(FXObject *, FXSelector, void *)
FXint getNumVisible() const
Return number of visible items.
FXint setItem(FXint index, MFXListIconItem *item, FXbool notify=FALSE)
Replace the item with a [possibly subclassed] item.
long onQueryTip(FXObject *, FXSelector, void *)
void setNumVisible(FXint nvis)
Change the number of visible items.
void makeItemVisible(MFXListIconItem *item)
Scroll to bring item into view.
long onAutoScroll(FXObject *, FXSelector, void *)
FXbool state
State of item.
long onClicked(FXObject *, FXSelector, void *)
FXint getDefaultHeight()
Return default height.
long onTripleClicked(FXObject *, FXSelector, void *)
FXint editItem(FXint index, const FXString &text, FXIcon *icon=NULL, void *ptr=NULL, FXbool notify=FALSE)
Replace items text, icon, and user-data pointer.
int findItem(const FXString &text) const
Search items by name (In all items)
FXFont * getFont() const
Return text font.
MFXListIconItem * getCursorItem() const
Get item under the cursor, if any.
void updateItem(MFXListIconItem *item) const
Repaint item.
FXint getItemHeight(FXint index) const
Return item height.
FXString tolowerString(const FXString &str) const
tolower string
FXint getContentWidth()
Compute and return content width.
FXint getNumItems() const
Return the number of items in the list.
MFXListIconItem * cursor
Cursor item.
FXbool selectItem(MFXListIconItem *item, FXbool notify=FALSE)
Select item by index.
FXbool killSelection(FXbool notify=FALSE)
Deselect all items.
FXint appendItem(MFXListIconItem *item, FXbool notify=FALSE)
Append a [possibly subclassed] item to the list.
FXint getItemWidth(FXint index) const
Return item width.
std::vector< MFXListIconItem * > itemFiltered
Selected item list.
long onUngrabbed(FXObject *, FXSelector, void *)
FXColor seltextColor
Selected text color.
bool canFocus() const
List widget can receive focus.
MFXListIconItem * createItem(const FXString &text, FXIcon *icon, void *ptr)
create item
MFXListIcon & operator=(const FXList &)=delete
invalidate assignement operator
void setFocus()
Move the focus to this window.
FXbool isItemCurrent(FXint index) const
Return TRUE if item is current.
void killFocus()
Remove the focus from this window.
long onLeftBtnPress(FXObject *, FXSelector, void *)
FXint hitItem(MFXListIconItem *item, FXint x, FXint y) const
Return item hit code: 0 no hit; 1 hit the icon; 2 hit the text.
long onEnter(FXObject *, FXSelector, void *)
FXint getCurrentItemIndex() const
Return current item, if any.
bool showItem(const FXString &itemName) const
check if filter element
FXColor selbackColor
Selected back color.
long onLookupTimer(FXObject *, FXSelector, void *)
FXint getContentHeight()
Return content height.
long onLeave(FXObject *, FXSelector, void *)
long onTipTimer(FXObject *, FXSelector, void *)
FXint listHeight
List height.
const FXString & getHelpText() const
Get the status line help text for this list.
FXint getAnchorItem() const
Return anchor item, if any.
MFXListIconItem * currentItem
Current item.
void recompute()
recompute list
FXint visible
Number of rows high.
void setHelpText(const FXString &text)
Set the status line help text for this list.
FXColor getTextColor() const
Return normal text color.
FXString lookup
Lookup string.
FXbool toggleItem(MFXListIconItem *item, FXbool notify=FALSE)
Toggle item selection state.
MFXListIconItem * viewable
Viewable item.
void setAnchorItem(MFXListIconItem *item)
Change anchor item.
void setFilter(const FXString &value, FXLabel *label)
filter items in list
FXint(* FXCompareFunc)(const FXString &, const FXString &, FXint)
typedef used for comparing elements
MFXListIconItem * getItem(FXint index) const
Return the item at the given index.
FXbool deselectItem(MFXListIconItem *item, FXbool notify=FALSE)
Deselect item.
MFXListIcon()
FOX need this.
std::vector< MFXListIconItem * > items
Item list.
void detach()
Detach server-side resources.
long onPaint(FXObject *, FXSelector, void *)
long onRightBtnRelease(FXObject *, FXSelector, void *)
FXColor getSelBackColor() const
Return selected text background.
void setTextColor(FXColor clr)
Change normal text color.
void layout()
Perform layout.
~MFXListIcon()
Destructor.
long onKeyPress(FXObject *, FXSelector, void *)
void clearItems(FXbool notify=FALSE)
Remove all items from list.
FXbool isItemVisible(MFXListIconItem *item) const
Return TRUE if item is visible.
long onFocusOut(FXObject *, FXSelector, void *)
void removeItem(FXint index, FXbool notify=FALSE)
Remove node from list.
MFXListIconItem * getItemAt(FXint y) const
Return index of item at y, if any.
FXColor getSelTextColor() const
Return selected text color.
long onQueryHelp(FXObject *, FXSelector, void *)
void create()
Create server-side resources.
void setCurrentItem(MFXListIconItem *item, FXbool notify=FALSE)
Change current item.
long onLeftBtnRelease(FXObject *, FXSelector, void *)
FXint getViewableItem() const
Return viewable item, if any.
FXint insertItem(FXint index, MFXListIconItem *item, FXbool notify=FALSE)
Insert a new [possibly subclassed] item at the give index.
long onMotion(FXObject *, FXSelector, void *)
long onFocusIn(FXObject *, FXSelector, void *)
FXColor textColor
Text color.