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

Constructor & Destructor Documentation

TEXT_EFFECTS::TEXT_EFFECTS ( int  aSetOfBits = 0)
inline

Definition at line 84 of file eda_text.h.

84  :
85  bits( aSetOfBits ),
88  penwidth( 0 ),
89  angle( 0.0 )
90  {}
signed char vjustify
vertical justification
Definition: eda_text.h:94
short bits
any set of booleans a client uses.
Definition: eda_text.h:92
double angle
now: 0.1 degrees; future: degrees
Definition: eda_text.h:97
signed char hjustify
horizontal justification
Definition: eda_text.h:93
int penwidth
Definition: eda_text.h:96

Member Function Documentation

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

Definition at line 100 of file eda_text.h.

100 { aValue ? bits |= (1<<aBit) : bits &= ~(1<<aBit); }
short bits
any set of booleans a client uses.
Definition: eda_text.h:92
bool TEXT_EFFECTS::Bit ( int  aBit) const
inline

Definition at line 101 of file eda_text.h.

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

Member Data Documentation

double TEXT_EFFECTS::angle

now: 0.1 degrees; future: degrees

Definition at line 97 of file eda_text.h.

short TEXT_EFFECTS::bits

any set of booleans a client uses.

Definition at line 92 of file eda_text.h.

signed char TEXT_EFFECTS::hjustify

horizontal justification

Definition at line 93 of file eda_text.h.

int TEXT_EFFECTS::penwidth

Definition at line 96 of file eda_text.h.

wxPoint TEXT_EFFECTS::pos

Definition at line 98 of file eda_text.h.

wxSize TEXT_EFFECTS::size

Definition at line 95 of file eda_text.h.

signed char TEXT_EFFECTS::vjustify

vertical justification

Definition at line 94 of file eda_text.h.


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