KiCad PCB EDA Suite
definitions.h File Reference

Go to the source code of this file.

Namespaces

 KIGFX
 Class CAIRO_GAL is the cairo implementation of the graphics abstraction layer.
 

Macros

#define SWAP(varA, condition, varB)
 Swap the variables if a condition is met. More...
 

Enumerations

enum  KIGFX::RENDER_TARGET { KIGFX::TARGET_CACHED = 0, KIGFX::TARGET_NONCACHED, KIGFX::TARGET_OVERLAY, KIGFX::TARGETS_NUMBER }
 RENDER_TARGET: Possible rendering targets. More...
 

Macro Definition Documentation

#define SWAP (   varA,
  condition,
  varB 
)
Value:
if( varA condition varB ) { double tmp = varA; varA = varB; \
varB = tmp; }

Swap the variables if a condition is met.

Definition at line 31 of file definitions.h.

Referenced by KIGFX::CAIRO_GAL::DrawArc(), KIGFX::OPENGL_GAL::DrawArc(), KIGFX::CAIRO_GAL::DrawArcSegment(), and KIGFX::OPENGL_GAL::DrawArcSegment().