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

Constructor & Destructor Documentation

TEXT_EFFECTS::TEXT_EFFECTS ( int  aSetOfBits = 0)
inline

Definition at line 86 of file eda_text.h.

86  :
87  bits( aSetOfBits ),
90  penwidth( 0 ),
91  angle( 0.0 )
92  {}
signed char vjustify
vertical justification
Definition: eda_text.h:96
short bits
any set of booleans a client uses.
Definition: eda_text.h:94
double angle
now: 0.1 degrees; future: degrees
Definition: eda_text.h:99
signed char hjustify
horizontal justification
Definition: eda_text.h:95
int penwidth
Definition: eda_text.h:98

Member Function Documentation

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

Definition at line 103 of file eda_text.h.

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

Member Data Documentation

double TEXT_EFFECTS::angle

now: 0.1 degrees; future: degrees

Definition at line 99 of file eda_text.h.

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

short TEXT_EFFECTS::bits

any set of booleans a client uses.

Definition at line 94 of file eda_text.h.

signed char TEXT_EFFECTS::hjustify

horizontal justification

Definition at line 95 of file eda_text.h.

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

int TEXT_EFFECTS::penwidth

Definition at line 98 of file eda_text.h.

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

signed char TEXT_EFFECTS::vjustify

vertical justification

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