KiCad PCB EDA Suite
eda_text.h File Reference

Definition of base KiCad text object. More...

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

Go to the source code of this file.

Classes

class  UNIQUE_MUTEX
 
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   50
 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 57 of file eda_text.h.

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

#define DEFAULT_SIZE_TEXT   50

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).

Definition at line 87 of file eda_text.h.

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

#define DIM_ANCRE_TEXTE   2

Definition at line 88 of file eda_text.h.

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

Enumeration Type Documentation

Enumerator
FILLED 
SKETCH 

Definition at line 77 of file eda_text.h.

77  {
78  FILLED = true, // normal mode: solid segments
79  SKETCH = false // sketch mode: draw segments outlines only
80 };
Enumerator
GR_TEXT_HJUSTIFY_LEFT 
GR_TEXT_HJUSTIFY_CENTER 
GR_TEXT_HJUSTIFY_RIGHT 

Definition at line 62 of file eda_text.h.

Enumerator
GR_TEXT_VJUSTIFY_TOP 
GR_TEXT_VJUSTIFY_CENTER 
GR_TEXT_VJUSTIFY_BOTTOM 

Definition at line 69 of file eda_text.h.