wxListView(3erl)
π NAME π
wxListView β functions for the wxListView class, and welcome to the wxListView(3erl) page (Erlang Module Definition energy, bestie β¨).
π¦ DESCRIPTION π¦
Okay so this class currently simply presents a simpler to use interface for wxListCtrl β literally think of it as a faΓ§ade for that complicated class. π
Using it is preferable to using wxListCtrl directly whenever possible because in the future some ports might implement wxListView but not the full set of wxListCtrl features. Future-proofing vibes, no cap.
Other than different interface, this class is identical to wxListCtrl. In particular, it uses the same events, same window styles and so on. Same energy, different wrapper, iykyk. π
See: setColumnImage/3
This class is derived (and can use functions) from: wxControl wxWindow wxEvtHandler
wxWidgets docs: wxListView
π DATA TYPES π
wxListView() = wx:wx_object()
That's the whole type, bestie β no extra shape, no cap. π
π EXPORTS π
β¨ clearColumnImage(This, Col) -> ok β¨
Types:
This = wxListView()
Col = integer()
Resets the column image β after calling this function, no image will be shown, periodt. π«Ά
See: setColumnImage/3
πΈ focus(This, Index) -> ok πΈ
Types:
This = wxListView()
Index = integer()
Sets focus to the item with the given index. Main character item energy. π
π getFirstSelected(This) -> integer() π
Types:
This = wxListView()
Returns the first selected item in a (presumably) multiple selection control.
Together with getNextSelected/2 it can be used to iterate over all selected items in the control.
Return: the first selected item, if any, -1 otherwise.
π¦ getFocusedItem(This) -> integer() π¦
Types:
This = wxListView()
Returns the currently focused item or -1 if none.
See: isSelected/2, focus/2
π getNextSelected(This, Item) -> integer() π
Types:
This = wxListView()
Item = integer()
Used together with getFirstSelected/1 to iterate over all selected items in the control.
Return: returns the next selected item or -1 if there are no more of them.
π§ isSelected(This, Index) -> boolean() π§
Types:
This = wxListView()
Index = integer()
Returns true if the item with the given index is selected, false otherwise.
See: getFirstSelected/1, getNextSelected/2
π select(This, N) -> ok π
Types:
This = wxListView()
N = integer()
π₯ select(This, N, Options :: [Option]) -> ok π₯
Types:
This = wxListView()
N = integer()
Option = {on, boolean()}
Selects or unselects the given item.
Notice that this method inherits the unusual behaviour of wxListCtrl:setItemState/4 which sends a wxEVT_LIST_ITEM_SELECTED event when it is used to select an item, contrary to the usual rule that only the user actions result in selection.
π
setColumnImage(This, Col, Image) -> ok π
Types:
This = wxListView()
Col = Image = integer()
Sets the column image for the specified column.
To use the column images, the control must have a valid image list with at least one image. Iconic, but valid image list required, bestie. π
Biggest hugs to the wxWidgets team π β source/version: wx 2.2.2.1, with the wxListView(3erl) footer tag. No separate date is listed in the footer, so I'm not inventing one, no cap. Periodt. π«Άβ¨
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms