KiCad PCB EDA Suite
kicad_device_context.h File Reference

a helper to handle the real device context used in KiCad More...

#include <wx/dcbuffer.h>

Go to the source code of this file.

Classes

class  BUFFERED_DC_HELPER
 Class BUFFERED_DC_HELPER fixes a bug on Windows when using buffered device context. More...
 
class  EDA_BLIT_NORMALIZER
 Class EDA_BLIT_NORMALIZER is a helper class for clearing a device context scale and offset parameters before performing a Blit operation. More...
 

Macros

#define KICAD_USE_BUFFERED_PAINTDC   1
 
#define KICAD_USE_BUFFERED_DC_HELPER   1
 
#define KICAD_USE_BUFFERED_DC   1
 
#define INSTALL_DC(name, parent)
 
#define INSTALL_PAINTDC(name, parent)
 
#define INSTALL_UNBUFFERED_DC(name, parent)
 

Detailed Description

a helper to handle the real device context used in KiCad

Definition in file kicad_device_context.h.

Macro Definition Documentation

#define INSTALL_DC (   name,
  parent 
)
Value:
wxClientDC _cDC( parent ); \
wxBufferedDC name(&_cDC, _cDC.GetSize() ); \
parent->DoPrepareDC( name ); \
BUFFERED_DC_HELPER helper( &name );

Definition at line 158 of file kicad_device_context.h.

#define INSTALL_PAINTDC (   name,
  parent 
)
Value:
wxBufferedPaintDC name( parent ); \
parent->DoPrepareDC( name ); \
BUFFERED_DC_HELPER help( &name );

Definition at line 185 of file kicad_device_context.h.

Referenced by EDA_DRAW_PANEL::OnPaint().

#define INSTALL_UNBUFFERED_DC (   name,
  parent 
)
#define KICAD_USE_BUFFERED_DC   1

Definition at line 54 of file kicad_device_context.h.

#define KICAD_USE_BUFFERED_DC_HELPER   1

Definition at line 53 of file kicad_device_context.h.

#define KICAD_USE_BUFFERED_PAINTDC   1

Definition at line 52 of file kicad_device_context.h.