KiCad PCB EDA Suite
MSG_PANEL_ITEM Class Reference

EDA_MSG_PANEL items for displaying messages. More...

#include <msgpanel.h>

Public Member Functions

 MSG_PANEL_ITEM (const wxString &aUpperText, const wxString &aLowerText, int aPadding=MSG_PANEL_DEFAULT_PAD)
 
 MSG_PANEL_ITEM ()
 
void SetUpperText (const wxString &aUpperText)
 
const wxString & GetUpperText () const
 
void SetLowerText (const wxString &aLowerText)
 
const wxString & GetLowerText () const
 
void SetPadding (int aPadding)
 
int GetPadding () const
 

Private Attributes

int m_X
 
int m_UpperY
 
int m_LowerY
 
wxString m_UpperText
 
wxString m_LowerText
 
int m_Padding
 

Friends

class EDA_MSG_PANEL
 

Detailed Description

EDA_MSG_PANEL items for displaying messages.

Definition at line 53 of file msgpanel.h.

Constructor & Destructor Documentation

◆ MSG_PANEL_ITEM() [1/2]

MSG_PANEL_ITEM::MSG_PANEL_ITEM ( const wxString &  aUpperText,
const wxString &  aLowerText,
int  aPadding = MSG_PANEL_DEFAULT_PAD 
)
inline

Definition at line 56 of file msgpanel.h.

57  :
58  m_UpperText( aUpperText ),
59  m_LowerText( aLowerText ),
60  m_Padding( aPadding )
61  {
62  m_X = 0;
63  m_UpperY = 0;
64  m_LowerY = 0;
65  }
wxString m_LowerText
Definition: msgpanel.h:92
wxString m_UpperText
Definition: msgpanel.h:91

References m_LowerY, m_UpperY, and m_X.

◆ MSG_PANEL_ITEM() [2/2]

MSG_PANEL_ITEM::MSG_PANEL_ITEM ( )
inline

Definition at line 67 of file msgpanel.h.

67  :
69 
70  {
71  m_X = 0;
72  m_UpperY = 0;
73  m_LowerY = 0;
74  }
#define MSG_PANEL_DEFAULT_PAD
The default number of spaces between each text string.
Definition: msgpanel.h:44

References m_LowerY, m_UpperY, and m_X.

Member Function Documentation

◆ GetLowerText()

const wxString& MSG_PANEL_ITEM::GetLowerText ( ) const
inline

Definition at line 80 of file msgpanel.h.

80 { return m_LowerText; }
wxString m_LowerText
Definition: msgpanel.h:92

References m_LowerText.

Referenced by EDA_MSG_PANEL::AppendMessage().

◆ GetPadding()

int MSG_PANEL_ITEM::GetPadding ( ) const
inline

Definition at line 83 of file msgpanel.h.

83 { return m_Padding; }

References m_Padding.

Referenced by EDA_MSG_PANEL::AppendMessage().

◆ GetUpperText()

const wxString& MSG_PANEL_ITEM::GetUpperText ( ) const
inline

Definition at line 77 of file msgpanel.h.

77 { return m_UpperText; }
wxString m_UpperText
Definition: msgpanel.h:91

References m_UpperText.

Referenced by EDA_MSG_PANEL::AppendMessage().

◆ SetLowerText()

void MSG_PANEL_ITEM::SetLowerText ( const wxString &  aLowerText)
inline

Definition at line 79 of file msgpanel.h.

79 { m_LowerText = aLowerText; }
wxString m_LowerText
Definition: msgpanel.h:92

References m_LowerText.

◆ SetPadding()

void MSG_PANEL_ITEM::SetPadding ( int  aPadding)
inline

Definition at line 82 of file msgpanel.h.

82 { m_Padding = aPadding; }

References m_Padding.

◆ SetUpperText()

void MSG_PANEL_ITEM::SetUpperText ( const wxString &  aUpperText)
inline

Definition at line 76 of file msgpanel.h.

76 { m_UpperText = aUpperText; }
wxString m_UpperText
Definition: msgpanel.h:91

References m_UpperText.

Friends And Related Function Documentation

◆ EDA_MSG_PANEL

friend class EDA_MSG_PANEL
friend

Definition at line 86 of file msgpanel.h.

Member Data Documentation

◆ m_LowerText

wxString MSG_PANEL_ITEM::m_LowerText
private

◆ m_LowerY

int MSG_PANEL_ITEM::m_LowerY
private

◆ m_Padding

int MSG_PANEL_ITEM::m_Padding
private

Definition at line 93 of file msgpanel.h.

Referenced by GetPadding(), and SetPadding().

◆ m_UpperText

wxString MSG_PANEL_ITEM::m_UpperText
private

◆ m_UpperY

int MSG_PANEL_ITEM::m_UpperY
private

◆ m_X

int MSG_PANEL_ITEM::m_X
private

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