lecui 1.0.0-alpha.20
lecui C++ user interface library
Public Attributes | List of all members
liblec::lecui::widgets::table_view::table_view_events Struct Reference

Events specific to this widget. More...

#include <table_view.h>

Inheritance diagram for liblec::lecui::widgets::table_view::table_view_events:
liblec::lecui::widgets::widget::basic_events

Public Attributes

std::function< void(const std::vector< table_row > &rows)> selection = nullptr
 Selection event. Happens when the selection changes. More...
 
std::function< void(const std::vector< table_row > &rows)> context_menu = nullptr
 Context menu event. Happens when the table view is right clicked. More...
 
- Public Attributes inherited from liblec::lecui::widgets::widget::basic_events
std::function< void()> action = nullptr
 Action event. Happens when either the space bar or enter key is pressed, or if the widget is clicked.
 
std::function< void()> click = nullptr
 Click event. Happens when the widget is clicked.
 
std::function< void()> right_click = nullptr
 Right click event. Happens when the widget is right-clicked.
 
std::function< void()> mouse_enter = nullptr
 Mouse enter event. Happens when the mouse enters the widget.
 
std::function< void()> mouse_leave = nullptr
 Mouse leave event. Happens when the mouse leaves the widget.
 

Detailed Description

Events specific to this widget.

Member Data Documentation

◆ context_menu

std::function<void( const std::vector<table_row>& rows)> liblec::lecui::widgets::table_view::table_view_events::context_menu = nullptr

Context menu event. Happens when the table view is right clicked.

The parameter contained the selected rows.

◆ selection

std::function<void( const std::vector<table_row>& rows)> liblec::lecui::widgets::table_view::table_view_events::selection = nullptr

Selection event. Happens when the selection changes.

The parameter contains the selected rows.


The documentation for this struct was generated from the following file: