KiCad PCB EDA Suite
draw_panel.cpp File Reference
#include <fctsys.h>
#include <pgm_base.h>
#include <kiface_i.h>
#include <gr_basic.h>
#include <common.h>
#include <macros.h>
#include <id.h>
#include <class_drawpanel.h>
#include <class_draw_panel_gal.h>
#include <class_base_screen.h>
#include <draw_frame.h>
#include <view/view_controls.h>
#include <gal/gal_display_options.h>
#include <kicad_device_context.h>

Go to the source code of this file.

Macros

#define CLIP_BOX_PADDING   2
 
#define DEBUG_SHOW_CLIP_RECT   0
 
#define PIXEL_MARGIN   8
 
#define MIN_GRID_SIZE   10
 
#define DRAW_AXIS_AS_LINES   0
 
#define AXIS_SIZE_IN_PIXELS   15
 
#define MIN_DRAG_COUNT_FOR_START_BLOCK_COMMAND   5
 
#define BLOCK_MINSIZE_LIMIT   1
 
#define ENBL_ZOOM_NO_CENTER_KEY   wxT( "ZoomNoCenter" )
 
#define ENBL_MOUSEWHEEL_PAN_KEY   wxT( "MousewheelPAN" )
 
#define ENBL_MIDDLE_BUTT_PAN_KEY   wxT( "MiddleButtonPAN" )
 
#define MIDDLE_BUTT_PAN_LIMITED_KEY   wxT( "MiddleBtnPANLimited" )
 
#define ENBL_AUTO_PAN_KEY   wxT( "AutoPAN" )
 

Variables

static const int CURSOR_SIZE = 12
 Cursor size in pixels. More...
 
static const wxString kicadTraceCoords = wxT( "KICAD_TRACE_COORDS" )
 Flag to enable draw panel coordinate debug tracing. More...
 

Macro Definition Documentation

#define AXIS_SIZE_IN_PIXELS   15
#define BLOCK_MINSIZE_LIMIT   1
#define CLIP_BOX_PADDING   2

Definition at line 48 of file draw_panel.cpp.

Referenced by EDA_DRAW_PANEL::SetClipBox().

#define DEBUG_SHOW_CLIP_RECT   0

Definition at line 64 of file draw_panel.cpp.

#define DRAW_AXIS_AS_LINES   0

Definition at line 791 of file draw_panel.cpp.

#define MIN_DRAG_COUNT_FOR_START_BLOCK_COMMAND   5
#define MIN_GRID_SIZE   10
#define PIXEL_MARGIN   8

Variable Documentation

const int CURSOR_SIZE = 12
static

Cursor size in pixels.

Definition at line 46 of file draw_panel.cpp.

Referenced by EDA_DRAW_PANEL::DrawCrossHair().