KiCad PCB EDA Suite
MSG_PANEL_ITEM Class Reference

EDA_MSG_ITEM is used EDA_MSG_PANEL as the item type 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_ITEM is used EDA_MSG_PANEL as the item type for displaying messages.

Definition at line 54 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 66 of file msgpanel.h.

67  :
68  m_UpperText( aUpperText ),
69  m_LowerText( aLowerText ),
70  m_Padding( aPadding )
71  {
72  m_X = 0;
73  m_UpperY = 0;
74  m_LowerY = 0;
75  }
wxString m_LowerText
Definition: msgpanel.h:60
wxString m_UpperText
Definition: msgpanel.h:59

References m_LowerY, m_UpperY, and m_X.

◆ MSG_PANEL_ITEM() [2/2]

MSG_PANEL_ITEM::MSG_PANEL_ITEM ( )
inline

Definition at line 77 of file msgpanel.h.

77  :
79 
80  {
81  m_X = 0;
82  m_UpperY = 0;
83  m_LowerY = 0;
84  }
#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 90 of file msgpanel.h.

90 { return m_LowerText; }
wxString m_LowerText
Definition: msgpanel.h:60

References m_LowerText.

Referenced by EDA_MSG_PANEL::AppendMessage().

◆ GetPadding()

int MSG_PANEL_ITEM::GetPadding ( ) const
inline

Definition at line 93 of file msgpanel.h.

93 { return m_Padding; }

References m_Padding.

Referenced by EDA_MSG_PANEL::AppendMessage().

◆ GetUpperText()

const wxString& MSG_PANEL_ITEM::GetUpperText ( ) const
inline

Definition at line 87 of file msgpanel.h.

87 { return m_UpperText; }
wxString m_UpperText
Definition: msgpanel.h:59

References m_UpperText.

Referenced by EDA_MSG_PANEL::AppendMessage().

◆ SetLowerText()

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

Definition at line 89 of file msgpanel.h.

89 { m_LowerText = aLowerText; }
wxString m_LowerText
Definition: msgpanel.h:60

References m_LowerText.

◆ SetPadding()

void MSG_PANEL_ITEM::SetPadding ( int  aPadding)
inline

Definition at line 92 of file msgpanel.h.

92 { m_Padding = aPadding; }

References m_Padding.

◆ SetUpperText()

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

Definition at line 86 of file msgpanel.h.

86 { m_UpperText = aUpperText; }
wxString m_UpperText
Definition: msgpanel.h:59

References m_UpperText.

Friends And Related Function Documentation

◆ EDA_MSG_PANEL

friend class EDA_MSG_PANEL
friend

Definition at line 63 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 61 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: