KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SPIN_STYLE Class Reference

#include <sch_label.h>

Public Types

enum  SPIN : int { LEFT = 0 , UP = 1 , RIGHT = 2 , BOTTOM = 3 }
 

Public Member Functions

 SPIN_STYLE ()=default
 
constexpr SPIN_STYLE (SPIN aSpin)
 
constexpr bool operator== (SPIN a) const
 
constexpr bool operator!= (SPIN a) const
 
 operator int () const
 
SPIN_STYLE RotateCCW ()
 
SPIN_STYLE MirrorX ()
 Mirror the label spin style across the X axis or simply swaps up and bottom.
 
SPIN_STYLE MirrorY ()
 Mirror the label spin style across the Y axis or simply swaps left and right.
 

Private Attributes

SPIN m_spin
 

Detailed Description

Definition at line 40 of file sch_label.h.

Member Enumeration Documentation

◆ SPIN

enum SPIN_STYLE::SPIN : int
Enumerator
LEFT 
UP 
RIGHT 
BOTTOM 

Definition at line 43 of file sch_label.h.

Constructor & Destructor Documentation

◆ SPIN_STYLE() [1/2]

SPIN_STYLE::SPIN_STYLE ( )
default

Referenced by MirrorX(), MirrorY(), and RotateCCW().

◆ SPIN_STYLE() [2/2]

constexpr SPIN_STYLE::SPIN_STYLE ( SPIN  aSpin)
inlineconstexpr

Definition at line 53 of file sch_label.h.

Member Function Documentation

◆ MirrorX()

SPIN_STYLE SPIN_STYLE::MirrorX ( )

Mirror the label spin style across the X axis or simply swaps up and bottom.

Definition at line 173 of file sch_label.cpp.

References BOTTOM, LEFT, m_spin, RIGHT, SPIN_STYLE(), and UP.

Referenced by CADSTAR_SCH_ARCHIVE_LOADER::loadNets(), and orientLabel().

◆ MirrorY()

SPIN_STYLE SPIN_STYLE::MirrorY ( )

Mirror the label spin style across the Y axis or simply swaps left and right.

Definition at line 189 of file sch_label.cpp.

References BOTTOM, LEFT, m_spin, RIGHT, SPIN_STYLE(), and UP.

Referenced by CADSTAR_SCH_ARCHIVE_LOADER::loadNets(), and orientLabel().

◆ operator int()

SPIN_STYLE::operator int ( ) const
inline

Definition at line 67 of file sch_label.h.

References m_spin.

◆ operator!=()

constexpr bool SPIN_STYLE::operator!= ( SPIN  a) const
inlineconstexpr

Definition at line 62 of file sch_label.h.

References m_spin.

◆ operator==()

constexpr bool SPIN_STYLE::operator== ( SPIN  a) const
inlineconstexpr

Definition at line 57 of file sch_label.h.

References m_spin.

◆ RotateCCW()

Member Data Documentation

◆ m_spin

SPIN SPIN_STYLE::m_spin
private

Definition at line 85 of file sch_label.h.

Referenced by MirrorX(), MirrorY(), operator int(), operator!=(), operator==(), and RotateCCW().


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