KiCad PCB EDA Suite
page_layout_graphic_items.cpp File Reference

description of graphic items and texts to build a title block More...

#include <fctsys.h>
#include <class_eda_rect.h>
#include <drawtxt.h>
#include <worksheet.h>
#include <class_title_block.h>
#include <worksheet_shape_builder.h>
#include <class_worksheet_dataitem.h>
#include <polygon_test_point_inside.h>

Go to the source code of this file.

Functions

void drawMarker (EDA_RECT *aClipBox, wxDC *aDC, const wxPoint &aPos, int aSize, bool aEndPointShape=false)
 

Detailed Description

description of graphic items and texts to build a title block

Definition in file page_layout_graphic_items.cpp.

Function Documentation

void drawMarker ( EDA_RECT aClipBox,
wxDC *  aDC,
const wxPoint aPos,
int  aSize,
bool  aEndPointShape = false 
)
inline

Definition at line 69 of file page_layout_graphic_items.cpp.

References GREEN, GRFilledCircle(), GRFilledRect(), wxPoint::x, and wxPoint::y.

Referenced by WS_DRAW_ITEM_LIST::Draw().

71 {
72  int markerHalfSize = aSize/2;
73 
74  if( aEndPointShape )
75  GRFilledCircle( aClipBox, aDC, aPos.x, aPos.y, markerHalfSize,
76  0, GREEN, GREEN );
77  else
78  GRFilledRect( aClipBox, aDC,
79  aPos.x - markerHalfSize, aPos.y - markerHalfSize,
80  aPos.x + markerHalfSize, aPos.y + markerHalfSize,
81  0, GREEN, GREEN );
82 }
void GRFilledRect(EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, COLOR4D Color, COLOR4D BgColor)
Definition: gr_basic.cpp:1117
void GRFilledCircle(EDA_RECT *ClipBox, wxDC *DC, int x, int y, int r, int width, COLOR4D Color, COLOR4D BgColor)
Definition: gr_basic.cpp:833
Definition: colors.h:58