Skip to main content

GroupContextMenuCallbacks

GroupContextMenuCallbacks

Callback structure for group-related actions. More…

#include <GroupContextMenuHandler.hpp>

Public Attributes

Name
std::function< std::unordered_set< EntityId >()> getSelectedEntities
Get the currently selected entity IDs.
std::function< void()> clearSelection
Clear the current selection in the widget.
std::function< bool()> hasSelection
Check if the widget has any selected entities If not provided, will use !getSelectedEntities().empty().
std::function< void()> onGroupOperationCompleted
Called after a group operation is completed Can be used to trigger a redraw or update.

Detailed Description

struct GroupContextMenuCallbacks;

Callback structure for group-related actions.

Widgets using this handler should provide implementations for these callbacks to perform the actual operations on their selected entities.

Public Attributes Documentation

variable getSelectedEntities

std::function< std::unordered_set< EntityId >()> getSelectedEntities;

Get the currently selected entity IDs.

Return: Set of selected EntityIds

variable clearSelection

std::function< void()> clearSelection;

Clear the current selection in the widget.

variable hasSelection

std::function< bool()> hasSelection;

Check if the widget has any selected entities If not provided, will use !getSelectedEntities().empty().

variable onGroupOperationCompleted

std::function< void()> onGroupOperationCompleted;

Called after a group operation is completed Can be used to trigger a redraw or update.


Updated on 2026-11-13 at 20:25:39 +0000