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 );
const char * 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 );
const char * name

Definition at line 185 of file kicad_device_context.h.

Referenced by EDA_DRAW_PANEL::OnPaint().

#define INSTALL_UNBUFFERED_DC (   name,
  parent 
)
Value:
wxClientDC name( parent ); \
parent->DoPrepareDC( name );
const char * name

Definition at line 198 of file kicad_device_context.h.

Referenced by PCB_BASE_FRAME::CursorGoto(), PCB_BASE_EDIT_FRAME::duplicateItem(), EDA_DRAW_PANEL::EndMouseCapture(), EVT_UPDATE_UI_RANGE(), SCH_EDIT_FRAME::FindComponentAndItem(), EDA_DRAW_PANEL::GetScreenCenterLogicalPosition(), EDA_DRAW_PANEL::IsPointOnDisplay(), PCB_EDIT_FRAME::ListNetsAndSelect(), EDA_DRAW_PANEL::MoveCursor(), SCH_EDIT_FRAME::OnConvertTextType(), SCH_EDIT_FRAME::OnCopySchematicItemRequest(), LIB_EDIT_FRAME::OnCreateNewPartFromExisting(), SCH_EDIT_FRAME::OnDragItem(), EDA_DRAW_PANEL::OnKeyEvent(), EDA_DRAW_PANEL::OnMouseEvent(), EDA_DRAW_PANEL::OnMouseLeaving(), EDA_DRAW_PANEL::OnMouseWheel(), SCH_EDIT_FRAME::OnMoveItem(), LIB_EDIT_FRAME::OnOrient(), SCH_EDIT_FRAME::OnOrient(), PCB_EDIT_FRAME::OnPlaceOrRouteFootprints(), EDA_DRAW_PANEL::OnRightClick(), SCH_EDIT_FRAME::OnRotate(), SCH_EDIT_FRAME::OnSelectTool(), PCB_EDIT_FRAME::OnSelectTool(), SCH_EDIT_FRAME::OnSelectUnit(), EDA_DRAW_FRAME::OnToggleCrossHairStyle(), SCH_EDIT_FRAME::OrientComponent(), FOOTPRINT_EDIT_FRAME::Process_Special_Functions(), LIB_EDIT_FRAME::Process_Special_Functions(), SCH_EDIT_FRAME::Process_Special_Functions(), PCB_EDIT_FRAME::Process_Special_Functions(), PCB_EDIT_FRAME::ProcessMuWaveFunctions(), EDA_DRAW_PANEL::RefreshDrawingRect(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::SetInitCmp(), EDA_DRAW_PANEL::ToDeviceXY(), and EDA_DRAW_PANEL::ToLogicalXY().

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