File include/brisk/widgets/Item.hpp
¶
Item
class¶
Item
ItemWidget that represents a list item or a menu item.
This class encapsulates the behavior of an item widget, which can have an icon, be checkable, and interact with various user events.
Item
function (Item::Item
)¶
template <WidgetArgument... Args>
explicit Item(const Args&... args) : Item(Construction
Constructor for the Item class.
This constructor initializes the Item widget with the given arguments, including sub-widgets.
Template param Args
The types of the arguments passed to the constructor.
Param args
The arguments used for constructing the Item widget.
icon
variable (Item::icon
)¶
Property<Item, std::string, &Item::m_icon> icon
The icon property of the Item.
This property represents the icon displayed in the item.
checkable
variable (Item::checkable
)¶
Property<Item, bool, &Item::m_checkable> checkable
The checkable property of the Item.
This property indicates whether the item contains a checkbox and can be checked/unchecked.
checked
variable (Item::checked
)¶
Property<Item, bool, &Item::m_checked, nullptr, nullptr,
&Item::onChanged> checked
The checked property of the Item.
This property represents the checkbox state of the item. It triggers the(UNKNOWN ID: ('ref', 'onChanged'))function when the state changes.
closesPopup
variable (Item::closesPopup
)¶
Property<Item, bool, &Item::m_closesPopup> closesPopup
The closesPopup property of the Item.
If true, clicking the item will close the nearest parent widget that is a popup. This is typically used for menu items.
dynamicFocus
variable (Item::dynamicFocus
)¶
Property<Item, bool, &Item::m_dynamicFocus> dynamicFocus
The dynamicFocus property of the Item.
If true, the widget will take focus on mouse hover, similar to how a menu item behaves.
Auto-generated from sources, Revision , https://github.com/brisklib/brisk/blob//include/brisk/