KiCad PCB EDA Suite
TEXT_EFFECTS Struct Reference

Struct TEXT_EFFECTS is a bucket 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

short 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

Struct TEXT_EFFECTS is a bucket 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 98 of file eda_text.h.

Constructor & Destructor Documentation

◆ TEXT_EFFECTS()

TEXT_EFFECTS::TEXT_EFFECTS ( int  aSetOfBits = 0)
inline

Definition at line 100 of file eda_text.h.

100  :
101  bits( aSetOfBits ),
104  penwidth( 0 ),
105  angle( 0.0 )
106  {}
signed char vjustify
vertical justification
Definition: eda_text.h:110
short bits
any set of booleans a client uses.
Definition: eda_text.h:108
double angle
now: 0.1 degrees; future: degrees
Definition: eda_text.h:113
signed char hjustify
horizontal justification
Definition: eda_text.h:109
int penwidth
Definition: eda_text.h:112

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 117 of file eda_text.h.

117 { return bits & (1<<aBit); }
short bits
any set of booleans a client uses.
Definition: eda_text.h:108

References bits.

Member Data Documentation

◆ angle

double TEXT_EFFECTS::angle

now: 0.1 degrees; future: degrees

Definition at line 113 of file eda_text.h.

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

◆ bits

short TEXT_EFFECTS::bits

any set of booleans a client uses.

Definition at line 108 of file eda_text.h.

Referenced by Bit().

◆ hjustify

signed char TEXT_EFFECTS::hjustify

horizontal justification

Definition at line 109 of file eda_text.h.

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

◆ penwidth

int TEXT_EFFECTS::penwidth

Definition at line 112 of file eda_text.h.

Referenced by EDA_TEXT::GetThickness(), and EDA_TEXT::SetThickness().

◆ pos

wxPoint TEXT_EFFECTS::pos

◆ size

◆ vjustify

signed char TEXT_EFFECTS::vjustify

vertical justification

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