KiCad PCB EDA Suite
text_attributes.h File Reference
#include <iostream>
#include <wx/log.h>
#include <cmath>
#include <math/vector2d.h>
#include <gal/color4d.h>
#include "../../libs/kimath/include/geometry/eda_angle.h"

Go to the source code of this file.

Classes

class  TEXT_ATTRIBUTES
 

Namespaces

namespace  KIFONT
 

Macros

#define TO_HJUSTIFY(x)   static_cast<GR_TEXT_H_ALIGN_T>( x )
 
#define TO_VJUSTIFY(x)   static_cast<GR_TEXT_V_ALIGN_T>( x )
 

Enumerations

enum  GR_TEXT_H_ALIGN_T { GR_TEXT_H_ALIGN_LEFT = -1 , GR_TEXT_H_ALIGN_CENTER = 0 , GR_TEXT_H_ALIGN_RIGHT = 1 }
 
enum  GR_TEXT_V_ALIGN_T { GR_TEXT_V_ALIGN_TOP = -1 , GR_TEXT_V_ALIGN_CENTER = 0 , GR_TEXT_V_ALIGN_BOTTOM = 1 }
 

Macro Definition Documentation

◆ TO_HJUSTIFY

#define TO_HJUSTIFY (   x)    static_cast<GR_TEXT_H_ALIGN_T>( x )

Definition at line 59 of file text_attributes.h.

◆ TO_VJUSTIFY

#define TO_VJUSTIFY (   x)    static_cast<GR_TEXT_V_ALIGN_T>( x )

Definition at line 60 of file text_attributes.h.

Enumeration Type Documentation

◆ GR_TEXT_H_ALIGN_T

Enumerator
GR_TEXT_H_ALIGN_LEFT 
GR_TEXT_H_ALIGN_CENTER 
GR_TEXT_H_ALIGN_RIGHT 

Definition at line 44 of file text_attributes.h.

45{
49};
@ GR_TEXT_H_ALIGN_CENTER
@ GR_TEXT_H_ALIGN_RIGHT
@ GR_TEXT_H_ALIGN_LEFT

◆ GR_TEXT_V_ALIGN_T

Enumerator
GR_TEXT_V_ALIGN_TOP 
GR_TEXT_V_ALIGN_CENTER 
GR_TEXT_V_ALIGN_BOTTOM 

Definition at line 51 of file text_attributes.h.

52{
56};
@ GR_TEXT_V_ALIGN_BOTTOM
@ GR_TEXT_V_ALIGN_CENTER
@ GR_TEXT_V_ALIGN_TOP