KiCad PCB EDA Suite
TEXT_EFFECTS Struct Reference

A container for text effects. More...

#include <eda_text.h>

Public Member Functions

 TEXT_EFFECTS (int aSetOfBits=0)
 
void Bit (int aBit, bool aValue)
 
bool Bit (int aBit) const
 

Public Attributes

int bits
 any set of booleans a client uses. More...
 
signed char hjustify
 horizontal justification More...
 
signed char vjustify
 vertical justification More...
 
wxSize size
 
int penwidth
 
double angle
 now: 0.1 degrees; future: degrees More...
 
wxPoint pos
 

Detailed Description

A container for text effects.

These fields are bundled so they can be easily copied together as a lot. The privacy policy is established by client (incorporating) code.

Definition at line 90 of file eda_text.h.

Constructor & Destructor Documentation

◆ TEXT_EFFECTS()

TEXT_EFFECTS::TEXT_EFFECTS ( int  aSetOfBits = 0)
inline

Definition at line 92 of file eda_text.h.

92  :
93  bits( aSetOfBits ),
96  penwidth( 0 ),
97  angle( 0.0 )
98  {}
signed char vjustify
vertical justification
Definition: eda_text.h:102
int bits
any set of booleans a client uses.
Definition: eda_text.h:100
double angle
now: 0.1 degrees; future: degrees
Definition: eda_text.h:105
signed char hjustify
horizontal justification
Definition: eda_text.h:101
int penwidth
Definition: eda_text.h:104

Member Function Documentation

◆ Bit() [1/2]

void TEXT_EFFECTS::Bit ( int  aBit,
bool  aValue 
)
inline

◆ Bit() [2/2]

bool TEXT_EFFECTS::Bit ( int  aBit) const
inline

Definition at line 109 of file eda_text.h.

109 { return bits & (1<<aBit); }
int bits
any set of booleans a client uses.
Definition: eda_text.h:100

References bits.

Member Data Documentation

◆ angle

double TEXT_EFFECTS::angle

now: 0.1 degrees; future: degrees

Definition at line 105 of file eda_text.h.

Referenced by EDA_TEXT::GetTextAngle(), and EDA_TEXT::SetTextAngle().

◆ bits

int TEXT_EFFECTS::bits

any set of booleans a client uses.

Definition at line 100 of file eda_text.h.

Referenced by Bit().

◆ hjustify

signed char TEXT_EFFECTS::hjustify

horizontal justification

Definition at line 101 of file eda_text.h.

Referenced by EDA_TEXT::GetHorizJustify(), and EDA_TEXT::SetHorizJustify().

◆ penwidth

int TEXT_EFFECTS::penwidth

Definition at line 104 of file eda_text.h.

Referenced by EDA_TEXT::GetTextThickness(), and EDA_TEXT::SetTextThickness().

◆ pos

wxPoint TEXT_EFFECTS::pos

◆ size

◆ vjustify

signed char TEXT_EFFECTS::vjustify

vertical justification

Definition at line 102 of file eda_text.h.

Referenced by EDA_TEXT::GetVertJustify(), and EDA_TEXT::SetVertJustify().


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