KiCad PCB EDA Suite
eda_text.h File Reference

Definition of base KiCad text object. More...

#include <trigo.h>
#include <common.h>
#include <gr_basic.h>
#include <base_struct.h>

Go to the source code of this file.

Classes

struct  TEXT_EFFECTS
 Struct TEXT_EFFECTS is a bucket for text effects. More...
 
class  EDA_TEXT
 Class EDA_TEXT is a mix-in class (via multiple inheritance) that handles texts such as labels, parts, components, or footprints. More...
 

Macros

#define CTL_OMIT_HIDE   (1 << 6)
 
#define DEFAULT_SIZE_TEXT   60
 This is the "default-of-the-default" hardcoded text size; individual application define their own default policy starting with this (usually with a user option or project). More...
 
#define DIM_ANCRE_TEXTE   2
 

Enumerations

enum  EDA_TEXT_HJUSTIFY_T { GR_TEXT_HJUSTIFY_LEFT = -1, GR_TEXT_HJUSTIFY_CENTER = 0, GR_TEXT_HJUSTIFY_RIGHT = 1 }
 
enum  EDA_TEXT_VJUSTIFY_T { GR_TEXT_VJUSTIFY_TOP = -1, GR_TEXT_VJUSTIFY_CENTER = 0, GR_TEXT_VJUSTIFY_BOTTOM = 1 }
 
enum  EDA_DRAW_MODE_T { FILLED = true, SKETCH = false }
 

Detailed Description

Definition of base KiCad text object.

Definition in file eda_text.h.

Macro Definition Documentation

#define CTL_OMIT_HIDE   (1 << 6)

Definition at line 42 of file eda_text.h.

Referenced by PCB_IO::format(), and EDA_TEXT::Format().

#define DEFAULT_SIZE_TEXT   60

This is the "default-of-the-default" hardcoded text size; individual application define their own default policy starting with this (usually with a user option or project).

DO NOT change this value if you do not fully realize the effect it has on sexp serialization (text size equal to this is not explicitly wrote, so it would change subsequent reads)

Definition at line 74 of file eda_text.h.

Referenced by EDA_TEXT::EDA_TEXT(), EDA_TEXT::Format(), SCH_EDIT_FRAME::GetProjectFileParametersList(), and EDA_TEXT::IsDefaultFormatting().

#define DIM_ANCRE_TEXTE   2

Definition at line 75 of file eda_text.h.

Referenced by TEXTE_MODULE::Draw(), and EDA_TEXT::Draw().

Enumeration Type Documentation

Enumerator
FILLED 
SKETCH 

Definition at line 62 of file eda_text.h.

62  {
63  FILLED = true, // normal mode: solid segments
64  SKETCH = false // sketch mode: draw segments outlines only
65 };
Enumerator
GR_TEXT_HJUSTIFY_LEFT 
GR_TEXT_HJUSTIFY_CENTER 
GR_TEXT_HJUSTIFY_RIGHT 

Definition at line 47 of file eda_text.h.

Enumerator
GR_TEXT_VJUSTIFY_TOP 
GR_TEXT_VJUSTIFY_CENTER 
GR_TEXT_VJUSTIFY_BOTTOM 

Definition at line 54 of file eda_text.h.