KiCad PCB EDA Suite
DANGLING_END_ITEM Class Reference

Class DANGLING_END_ITEM is a helper class used to store the state of schematic items that can be connected to other schematic items. More...

#include <sch_item_struct.h>

Public Member Functions

 DANGLING_END_ITEM (DANGLING_END_T aType, const EDA_ITEM *aItem, const wxPoint &aPosition)
 
wxPoint GetPosition () const
 
const EDA_ITEMGetItem () const
 
DANGLING_END_T GetType () const
 

Private Attributes

const EDA_ITEMm_item
 A pointer to the connectable object. More...
 
wxPoint m_pos
 The position of the connection point. More...
 
DANGLING_END_T m_type
 The type of connection of m_item. More...
 

Detailed Description

Class DANGLING_END_ITEM is a helper class used to store the state of schematic items that can be connected to other schematic items.

Definition at line 86 of file sch_item_struct.h.

Constructor & Destructor Documentation

DANGLING_END_ITEM::DANGLING_END_ITEM ( DANGLING_END_T  aType,
const EDA_ITEM aItem,
const wxPoint aPosition 
)
inline

Definition at line 99 of file sch_item_struct.h.

100  {
101  m_item = aItem;
102  m_type = aType;
103  m_pos = aPosition;
104  }
DANGLING_END_T m_type
The type of connection of m_item.
const EDA_ITEM * m_item
A pointer to the connectable object.
wxPoint m_pos
The position of the connection point.

Member Function Documentation

const EDA_ITEM* DANGLING_END_ITEM::GetItem ( ) const
inline

Definition at line 107 of file sch_item_struct.h.

References m_item.

Referenced by SCH_TEXT::IsDanglingStateChanged().

107 { return m_item; }
const EDA_ITEM * m_item
A pointer to the connectable object.
wxPoint DANGLING_END_ITEM::GetPosition ( ) const
inline

Definition at line 106 of file sch_item_struct.h.

References m_pos.

Referenced by SCH_TEXT::IsDanglingStateChanged().

106 { return m_pos; }
wxPoint m_pos
The position of the connection point.
DANGLING_END_T DANGLING_END_ITEM::GetType ( ) const
inline

Definition at line 108 of file sch_item_struct.h.

References m_type.

Referenced by SCH_TEXT::IsDanglingStateChanged().

108 { return m_type; }
DANGLING_END_T m_type
The type of connection of m_item.

Member Data Documentation

const EDA_ITEM* DANGLING_END_ITEM::m_item
private

A pointer to the connectable object.

Definition at line 90 of file sch_item_struct.h.

Referenced by GetItem().

wxPoint DANGLING_END_ITEM::m_pos
private

The position of the connection point.

Definition at line 93 of file sch_item_struct.h.

Referenced by GetPosition().

DANGLING_END_T DANGLING_END_ITEM::m_type
private

The type of connection of m_item.

Definition at line 96 of file sch_item_struct.h.

Referenced by GetType().


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