Icon List Widget
Construct icon list.
Argument | Type | Default | Description |
p | FXComposite | ||
tgt | FXObject | None | |
sel | Int | 0 | |
opts | Int | ICONLIST_NORMAL | |
x | Int | 0 | |
y | Int | 0 | |
w | Int | 0 | |
h | Int | 0 |
Append header with given text and optional icon.
Argument | Type | Default | Description |
text | String | ||
icon | FXIcon | None | |
size | Int | 1 |
Append new item with given text and optional icons, and user-data pointer.
Argument | Type | Default | Description |
text | String | ||
big | FXIcon | None | |
mini | FXIcon | None | |
ptr | String | None | |
notify | Bool | False |
Append a [possibly subclassed] item to the end of the list.
Argument | Type | Default | Description |
item | FXIconItem | ||
notify | Bool | False |
Remove all items from list.
Argument | Type | Default | Description |
notify | Bool | False |
Create server-side resources.
Reimplemented from FXComposite.
Reimplemented in FXFileList.
Deselect item at index.
Argument | Type | Default | Description |
index | Int | ||
notify | Bool | False |
Detach server-side resources.
Reimplemented from FXComposite.
Reimplemented in FXFileList.
Extend selection from anchor index to index.
Argument | Type | Default | Description |
index | Int | ||
notify | Bool | False |
Search items for item by name, starting from start item; the flags argument controls the search direction, and case sensitivity.
Argument | Type | Default | Description |
text | String | ||
start | Int | -1 | |
flags | Int | SEARCH_FORWARD| SEARCH_WRAP |
Return icon of header at index.
Argument | Type | Default | Description |
index | Int |
Return width of header at index.
Argument | Type | Default | Description |
index | Int |
Return text of header at index.
Argument | Type | Default | Description |
index | Int |
Return index of item at x,y, or -1 if none.
Argument | Type | Default | Description |
x | Int | ||
y | Int |
Return big icon of item at index.
Argument | Type | Default | Description |
index | Int |
Return mini icon of item at index.
Argument | Type | Default | Description |
index | Int |
Return item hit code: 0 outside, 1 icon, 2 text.
Argument | Type | Default | Description |
index | Int | ||
x | Int | ||
y | Int | ||
ww | Int | 1 | |
hh | Int | 1 |
Insert item at index with given text, icons, and user-data pointer.
Argument | Type | Default | Description |
index | Int | ||
text | String | ||
big | FXIcon | None | |
mini | FXIcon | None | |
ptr | String | None | |
notify | Bool | False |
Insert a new [possibly subclassed] item at the give index.
Argument | Type | Default | Description |
index | Int | ||
item | FXIconItem | ||
notify | Bool | False |
Return True if item at index is current.
Argument | Type | Default | Description |
index | Int |
Return True if item at index is enabled.
Argument | Type | Default | Description |
index | Int |
Return True if item at index is selected.
Argument | Type | Default | Description |
index | Int |
Return True if item at index is visible.
Argument | Type | Default | Description |
index | Int |
Deselect all items.
Argument | Type | Default | Description |
notify | Bool | False |
Scroll to make item at index visible.
Argument | Type | Default | Description |
index | Int |
Move contents to the specified position.
Reimplemented from FXScrollArea.
Argument | Type | Default | Description |
x | Int | ||
y | Int |
Move and resize this window in the parent's coordinates.
Reimplemented from FXWindow.
Argument | Type | Default | Description |
x | Int | ||
y | Int | ||
w | Int | ||
h | Int |
Append new item with given text and optional icons, and user-data pointer.
Argument | Type | Default | Description |
text | String | ||
big | FXIcon | None | |
mini | FXIcon | None | |
ptr | String | None | |
notify | Bool | False |
Append a [possibly subclassed] item to the end of the list.
Argument | Type | Default | Description |
item | FXIconItem | ||
notify | Bool | False |
Remove item from list.
Argument | Type | Default | Description |
index | Int | ||
notify | Bool | False |
Replace items text, icons, and user-data pointer.
Argument | Type | Default | Description |
index | Int | ||
text | String | ||
big | FXIcon | None | |
mini | FXIcon | None | |
ptr | String | None | |
notify | Bool | False |
Replace the item with a [possibly subclassed] item.
Argument | Type | Default | Description |
index | Int | ||
item | FXIconItem | ||
notify | Bool | False |
Resize this window to the specified width and height.
Reimplemented from FXWindow.
Argument | Type | Default | Description |
w | Int | ||
h | Int |
Return the item at the given index.
Argument | Type | Default | Description |
index | Int |
Select items in rectangle.
Argument | Type | Default | Description |
x | Int | ||
y | Int | ||
w | Int | ||
h | Int | ||
notify | Bool | False |
Select item at index.
Argument | Type | Default | Description |
index | Int | ||
notify | Bool | False |
Change current item index.
Argument | Type | Default | Description |
index | Int | ||
notify | Bool | False |
Change icon of header at index.
Argument | Type | Default | Description |
index | Int | ||
icon | FXIcon |
Change size of header at index.
Argument | Type | Default | Description |
index | Int | ||
size | Int |
Change text of header at index.
Argument | Type | Default | Description |
index | Int | ||
text | String |
Set the status line help text for this widget.
Argument | Type | Default | Description |
text | String |
Change item big icon.
Argument | Type | Default | Description |
index | Int | ||
icon | FXIcon |
Change item user-data pointer.
Argument | Type | Default | Description |
index | Int | ||
ptr | String |
Change item mini icon.
Argument | Type | Default | Description |
index | Int | ||
icon | FXIcon |
Change maximum item space for each item.
Argument | Type | Default | Description |
s | Int |
Change item text.
Argument | Type | Default | Description |
index | Int | ||
text | String |
Set the current icon list style.
Argument | Type | Default | Description |
style | Int |
Change selected text background.
Argument | Type | Default | Description |
clr | FXColor |
Change selected text color.
Argument | Type | Default | Description |
clr | FXColor |
Change sort function.
Argument | Type | Default | Description |
func | FXIconListSortFunc |
Toggle item at index.
Argument | Type | Default | Description |
index | Int | ||
notify | Bool | False |
Icon list styles
ICONLIST_EXTENDEDSELECT | Extended selection mode. |
ICONLIST_SINGLESELECT | At most one selected item. |
ICONLIST_BROWSESELECT | Always exactly one selected item. |
ICONLIST_MULTIPLESELECT | Multiple selection mode. |
ICONLIST_AUTOSIZE | Automatically size item spacing. |
ICONLIST_DETAILED | List mode. |
ICONLIST_MINI_ICONS | Mini Icon mode. |
ICONLIST_BIG_ICONS | Big Icon mode. |
ICONLIST_ROWS | Row-wise mode. |
ICONLIST_COLUMNS | Column-wise mode. |