wxListItem(3erl)
π NAME π
wxListItem β Functions for wxListItem class. This is the Erlang module definition page for wxListItem, aka wxListItem(3erl), and she is literally here to explain the class. π
β¨ DESCRIPTION β¨
This class stores info about a wxListCtrl item or column. Lowkey that's the whole vibe.
The page says wxListItem is a class which contains information about: β¦ and then the list itself is just not here in this copy, so I'm not inventing bullets β no cap.
The wxListItem object can also carry item-specific colour and font info. For that, you call one of setTextColour/2, setBackgroundColour/2, or setFont/2 on it and pass in the colour/font to use. If the colour/font is not specified, the default list control colour/font is used. Slay.
See: wxListCtrl
wxWidgets docs: wxListItem
π¦ DATA TYPES π¦
wxListItem() = wx:wx_object()
That's the type, bestie. π
π EXPORTS π
Okay here's the full roster β every function keeps her exact signature, no merging, no skipping.
new() -> wxListItem()β Constructor. β¨new(Item) -> wxListItem()β Types: Item =wxListItem().clear(This) -> okβ Resets the item state to the default.- Types: This =
wxListItem()
- Types: This =
getAlign(This) -> wx:wx_enum()β Returns the alignment for this item.- Types: This =
wxListItem() - Can be one of
wxLIST_FORMAT_LEFT,wxLIST_FORMAT_RIGHT, orwxLIST_FORMAT_CENTRE.
- Types: This =
getBackgroundColour(This) -> wx:wx_colour4()β Returns the background colour for this item.- Types: This =
wxListItem()
- Types: This =
getColumn(This) -> integer()β Returns the zero-based column; meaningful only in report mode.- Types: This =
wxListItem()
- Types: This =
getFont(This) -> wxFont:wxFont()β Returns the font used to display the item.- Types: This =
wxListItem()
- Types: This =
getId(This) -> integer()β Returns the zero-based item position.- Types: This =
wxListItem()
- Types: This =
getImage(This) -> integer()β Returns the zero-based index of the image associated with the item into the image list.- Types: This =
wxListItem()
- Types: This =
getMask(This) -> integer()β Returns a bit mask indicating which fields of the structure are valid.- Types: This =
wxListItem() - Can be any combination of the following values: β and the actual value list isn't in this copy, so no invented flags, periodt.
- Types: This =
getState(This) -> integer()β Returns a bit field representing the state of the item.- Types: This =
wxListItem() - Can be any combination of: β again, the list is missing here in this copy, so I'm not making up state flags, bestie.
- Types: This =
getText(This) -> unicode:charlist()β Returns the label/header text.- Types: This =
wxListItem()
- Types: This =
getTextColour(This) -> wx:wx_colour4()β Returns the text colour.- Types: This =
wxListItem()
- Types: This =
getWidth(This) -> integer()β Meaningful only for column headers in report mode. Returns the column width.- Types: This =
wxListItem()
- Types: This =
setAlign(This, Align) -> okβ Sets the alignment for the item. See alsogetAlign/1.- Types: This =
wxListItem(), Align =wx:wx_enum()
- Types: This =
setBackgroundColour(This, ColBack) -> okβ Sets the background colour for the item.- Types: This =
wxListItem(), ColBack =wx:wx_colour()
- Types: This =
setColumn(This, Col) -> okβ Sets the zero-based column. Meaningful only in report mode.- Types: This =
wxListItem(), Col =integer()
- Types: This =
setFont(This, Font) -> okβ Sets the font for the item.- Types: This =
wxListItem(), Font =wxFont:wxFont()
- Types: This =
setId(This, Id) -> okβ Sets the zero-based item position.- Types: This =
wxListItem(), Id =integer()
- Types: This =
setImage(This, Image) -> okβ Sets the zero-based index of the image associated with the item into the image list.- Types: This =
wxListItem(), Image =integer()
- Types: This =
setMask(This, Mask) -> okβ Sets the mask of valid fields. SeegetMask/1.- Types: This =
wxListItem(), Mask =integer()
- Types: This =
setState(This, State) -> okβ Sets the item state flags. Note that the valid state flags are influenced by the value of the state mask, seesetStateMask/2. SeegetState/1for valid flag values.- Types: This =
wxListItem(), State =integer()
- Types: This =
setStateMask(This, StateMask) -> okβ Sets the bitmask that is used to determine which of the state flags are to be set. See alsosetState/2.- Types: This =
wxListItem(), StateMask =integer()
- Types: This =
setText(This, Text) -> okβ Sets the text label for the item.- Types: This =
wxListItem(), Text =unicode:chardata()
- Types: This =
setTextColour(This, ColText) -> okβ Sets the text colour for the item.- Types: This =
wxListItem(), ColText =wx:wx_colour()
- Types: This =
setWidth(This, Width) -> okβ Meaningful only for column headers in report mode. Sets the column width.- Types: This =
wxListItem(), Width =integer()
- Types: This =
destroy(This :: wxListItem()) -> okβ Destroys the object. π
Bye bestie! This page was brought to you by the wxWidgets team, version wx 2.2.2.1, and the footer tag wxListItem(3erl). π«Άπ
No date in sight in that footer, just so you know.
π¦ 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