KiCad PCB EDA Suite
Loading...
Searching...
No Matches
BUTTON_ROW_PANEL::BTN_DEF Struct Reference

The information needed to instantiate a button on a BUTTON_ROW_PANEL. More...

#include <button_row_panel.h>

Public Attributes

wxWindowID m_id
 The button ID.
 
wxString m_text
 The button display text.
 
wxString m_tooltip
 Button tooltip text - empty string for no tooltip.
 
BTN_CALLBACK m_callback
 The callback fired when the button is clicked.
 

Detailed Description

The information needed to instantiate a button on a BUTTON_ROW_PANEL.

Definition at line 53 of file button_row_panel.h.

Member Data Documentation

◆ m_callback

BTN_CALLBACK BUTTON_ROW_PANEL::BTN_DEF::m_callback

The callback fired when the button is clicked.

Can be nullptr, but then the button is useless.

Definition at line 75 of file button_row_panel.h.

◆ m_id

wxWindowID BUTTON_ROW_PANEL::BTN_DEF::m_id

The button ID.

Can be wxID_ANY, but should be unique if you want to work out which button this was from an event handler.

Definition at line 59 of file button_row_panel.h.

◆ m_text

wxString BUTTON_ROW_PANEL::BTN_DEF::m_text

The button display text.

Definition at line 64 of file button_row_panel.h.

◆ m_tooltip

wxString BUTTON_ROW_PANEL::BTN_DEF::m_tooltip

Button tooltip text - empty string for no tooltip.

Definition at line 69 of file button_row_panel.h.


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