KiCad PCB EDA Suite
Loading...
Searching...
No Matches
page_info.cpp File Reference
#include <common.h>
#include <page_info.h>
#include <macros.h>
#include <eda_units.h>
#include <richio.h>

Go to the source code of this file.

Macros

#define PAPER_A0   wxPAPER_A2
 
#define PAPER_A1   wxPAPER_A2
 
#define MMsize(x, y)   VECTOR2D( EDA_UNIT_UTILS::Mm2mils( x ), EDA_UNIT_UTILS::Mm2mils( y ) )
 

Functions

static double clampWidth (double aWidthInMils)
 
static double clampHeight (double aHeightInMils)
 

Macro Definition Documentation

◆ MMsize

#define MMsize (   x,
 
)    VECTOR2D( EDA_UNIT_UTILS::Mm2mils( x ), EDA_UNIT_UTILS::Mm2mils( y ) )

Definition at line 68 of file page_info.cpp.

◆ PAPER_A0

#define PAPER_A0   wxPAPER_A2

Definition at line 38 of file page_info.cpp.

◆ PAPER_A1

#define PAPER_A1   wxPAPER_A2

Definition at line 39 of file page_info.cpp.

Function Documentation

◆ clampHeight()

static double clampHeight ( double  aHeightInMils)
static

Definition at line 218 of file page_info.cpp.

Referenced by PAGE_INFO::SetCustomHeightMils(), and PAGE_INFO::SetHeightMils().

◆ clampWidth()

static double clampWidth ( double  aWidthInMils)
static

Definition at line 203 of file page_info.cpp.

Referenced by PAGE_INFO::SetCustomWidthMils(), and PAGE_INFO::SetWidthMils().