KiCad PCB EDA Suite
|
#include <sch_text.h>
Public Types | |
enum | SPIN : int { LEFT = 0 , UP = 1 , RIGHT = 2 , BOTTOM = 3 } |
Public Member Functions | |
TEXT_SPIN_STYLE ()=default | |
constexpr | TEXT_SPIN_STYLE (SPIN aSpin) |
constexpr bool | operator== (SPIN a) const |
constexpr bool | operator!= (SPIN a) const |
operator int () const | |
TEXT_SPIN_STYLE | RotateCW () |
TEXT_SPIN_STYLE | RotateCCW () |
TEXT_SPIN_STYLE | MirrorX () |
Mirror the label spin style across the X axis or simply swaps up and bottom. More... | |
TEXT_SPIN_STYLE | MirrorY () |
Mirror the label spin style across the Y axis or simply swaps left and right. More... | |
Private Attributes | |
SPIN | m_spin |
Definition at line 41 of file sch_text.h.
enum TEXT_SPIN_STYLE::SPIN : int |
|
default |
Referenced by MirrorX(), MirrorY(), RotateCCW(), and RotateCW().
|
inlineconstexpr |
Definition at line 54 of file sch_text.h.
TEXT_SPIN_STYLE TEXT_SPIN_STYLE::MirrorX | ( | ) |
Mirror the label spin style across the X axis or simply swaps up and bottom.
Definition at line 83 of file sch_text.cpp.
References BOTTOM, LEFT, m_spin, RIGHT, TEXT_SPIN_STYLE(), and UP.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::loadNets(), and orientLabel().
TEXT_SPIN_STYLE TEXT_SPIN_STYLE::MirrorY | ( | ) |
Mirror the label spin style across the Y axis or simply swaps left and right.
Definition at line 99 of file sch_text.cpp.
References BOTTOM, LEFT, m_spin, RIGHT, TEXT_SPIN_STYLE(), and UP.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::loadNets(), and orientLabel().
|
inline |
Definition at line 68 of file sch_text.h.
References m_spin.
|
inlineconstexpr |
|
inlineconstexpr |
TEXT_SPIN_STYLE TEXT_SPIN_STYLE::RotateCCW | ( | ) |
Definition at line 67 of file sch_text.cpp.
References BOTTOM, LEFT, m_spin, RIGHT, TEXT_SPIN_STYLE(), and UP.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::getSpinStyle(), and orientLabel().
TEXT_SPIN_STYLE TEXT_SPIN_STYLE::RotateCW | ( | ) |
Definition at line 51 of file sch_text.cpp.
References BOTTOM, LEFT, m_spin, RIGHT, TEXT_SPIN_STYLE(), and UP.
|
private |
Definition at line 88 of file sch_text.h.
Referenced by MirrorX(), MirrorY(), operator int(), operator!=(), operator==(), RotateCCW(), and RotateCW().