KiCad PCB EDA Suite
lib_polyline.cpp
Go to the documentation of this file.
1 /*
2  * This program source code file is part of KiCad, a free EDA CAD application.
3  *
4  * Copyright (C) 2017 Jean-Pierre Charras, jp.charras at wanadoo.fr
5  * Copyright (C) 2004-2017 KiCad Developers, see AUTHORS.txt for contributors.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, you may find one here:
19  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20  * or you may search the http://www.gnu.org website for the version 2 license,
21  * or you may write to the Free Software Foundation, Inc.,
22  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23  */
24 
29 #include <fctsys.h>
30 #include <gr_basic.h>
31 #include <macros.h>
32 #include <class_drawpanel.h>
33 #include <class_plotter.h>
34 #include <trigo.h>
35 #include <wxstruct.h>
36 #include <base_units.h>
37 #include <msgpanel.h>
38 #include <bitmaps.h>
39 
40 #include <general.h>
41 #include <lib_polyline.h>
42 #include <transform.h>
43 
44 
46  LIB_ITEM( LIB_POLYLINE_T, aParent )
47 {
48  m_Fill = NO_FILL;
49  m_Width = 0;
50  m_isFillable = true;
51  m_typeName = _( "PolyLine" );
52  m_ModifyIndex = 0;
53 }
54 
55 
57 {
58  return new LIB_POLYLINE( *this );
59 }
60 
61 
62 int LIB_POLYLINE::compare( const LIB_ITEM& aOther ) const
63 {
64  wxASSERT( aOther.Type() == LIB_POLYLINE_T );
65 
66  const LIB_POLYLINE* tmp = (LIB_POLYLINE*) &aOther;
67 
68  if( m_PolyPoints.size() != tmp->m_PolyPoints.size() )
69  return m_PolyPoints.size() - tmp->m_PolyPoints.size();
70 
71  for( size_t i = 0; i < m_PolyPoints.size(); i++ )
72  {
73  if( m_PolyPoints[i].x != tmp->m_PolyPoints[i].x )
74  return m_PolyPoints[i].x - tmp->m_PolyPoints[i].x;
75 
76  if( m_PolyPoints[i].y != tmp->m_PolyPoints[i].y )
77  return m_PolyPoints[i].y - tmp->m_PolyPoints[i].y;
78  }
79 
80  return 0;
81 }
82 
83 
84 void LIB_POLYLINE::SetOffset( const wxPoint& aOffset )
85 {
86  for( size_t i = 0; i < m_PolyPoints.size(); i++ )
87  m_PolyPoints[i] += aOffset;
88 }
89 
90 
91 bool LIB_POLYLINE::Inside( EDA_RECT& aRect ) const
92 {
93  for( size_t i = 0; i < m_PolyPoints.size(); i++ )
94  {
95  if( aRect.Contains( m_PolyPoints[i].x, -m_PolyPoints[i].y ) )
96  return true;
97  }
98 
99  return false;
100 }
101 
102 
103 void LIB_POLYLINE::Move( const wxPoint& aPosition )
104 {
105  SetOffset( aPosition - m_PolyPoints[0] );
106 }
107 
108 
110 {
111  size_t i, imax = m_PolyPoints.size();
112 
113  for( i = 0; i < imax; i++ )
114  {
115  m_PolyPoints[i].x -= aCenter.x;
116  m_PolyPoints[i].x *= -1;
117  m_PolyPoints[i].x += aCenter.x;
118  }
119 }
120 
121 void LIB_POLYLINE::MirrorVertical( const wxPoint& aCenter )
122 {
123  size_t i, imax = m_PolyPoints.size();
124 
125  for( i = 0; i < imax; i++ )
126  {
127  m_PolyPoints[i].y -= aCenter.y;
128  m_PolyPoints[i].y *= -1;
129  m_PolyPoints[i].y += aCenter.y;
130  }
131 }
132 
133 void LIB_POLYLINE::Rotate( const wxPoint& aCenter, bool aRotateCCW )
134 {
135  int rot_angle = aRotateCCW ? -900 : 900;
136 
137  size_t i, imax = m_PolyPoints.size();
138 
139  for( i = 0; i < imax; i++ )
140  {
141  RotatePoint( &m_PolyPoints[i], aCenter, rot_angle );
142  }
143 }
144 
145 
146 void LIB_POLYLINE::Plot( PLOTTER* aPlotter, const wxPoint& aOffset, bool aFill,
147  const TRANSFORM& aTransform )
148 {
149  wxASSERT( aPlotter != NULL );
150 
151  static std::vector< wxPoint > cornerList;
152  cornerList.clear();
153 
154  for( unsigned ii = 0; ii < m_PolyPoints.size(); ii++ )
155  {
156  wxPoint pos = m_PolyPoints[ii];
157  pos = aTransform.TransformCoordinate( pos ) + aOffset;
158  cornerList.push_back( pos );
159  }
160 
161  if( aFill && m_Fill == FILLED_WITH_BG_BODYCOLOR )
162  {
164  aPlotter->PlotPoly( cornerList, FILLED_WITH_BG_BODYCOLOR, 0 );
165  }
166 
167  bool already_filled = m_Fill == FILLED_WITH_BG_BODYCOLOR;
168  aPlotter->SetColor( GetLayerColor( LAYER_DEVICE ) );
169  aPlotter->PlotPoly( cornerList, already_filled ? NO_FILL : m_Fill, GetPenSize() );
170 }
171 
172 
173 void LIB_POLYLINE::AddPoint( const wxPoint& point )
174 {
175  m_PolyPoints.push_back( point );
176 }
177 
178 
180 {
181  return ( m_Width == 0 ) ? GetDefaultLineThickness() : m_Width;
182 }
183 
184 
185 void LIB_POLYLINE::drawGraphic( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aOffset,
186  COLOR4D aColor, GR_DRAWMODE aDrawMode, void* aData,
187  const TRANSFORM& aTransform )
188 {
189  wxPoint pos1;
191  wxPoint* buffer = NULL;
192 
193  if( aColor == COLOR4D::UNSPECIFIED ) // Used normal color or selected color
194  {
195  if( IsSelected() )
196  color = GetItemSelectedColor();
197  }
198  else
199  {
200  color = aColor;
201  }
202 
203  buffer = new wxPoint[ m_PolyPoints.size() ];
204 
205  for( unsigned ii = 0; ii < m_PolyPoints.size(); ii++ )
206  {
207  buffer[ii] = aTransform.TransformCoordinate( m_PolyPoints[ii] ) + aOffset;
208  }
209 
210  FILL_T fill = aData ? NO_FILL : m_Fill;
211 
212  if( aColor != COLOR4D::UNSPECIFIED )
213  fill = NO_FILL;
214 
215  GRSetDrawMode( aDC, aDrawMode );
216 
217  EDA_RECT* const clipbox = aPanel? aPanel->GetClipBox() : NULL;
218  if( fill == FILLED_WITH_BG_BODYCOLOR )
219  GRPoly( clipbox, aDC, m_PolyPoints.size(), buffer, 1, GetPenSize(),
222  else if( fill == FILLED_SHAPE )
223  GRPoly( clipbox, aDC, m_PolyPoints.size(), buffer, 1, GetPenSize(),
224  color, color );
225  else
226  GRPoly( clipbox, aDC, m_PolyPoints.size(), buffer, 0, GetPenSize(),
227  color, color );
228 
229  delete[] buffer;
230 
231  /* Set to one (1) to draw bounding box around polyline to validate
232  * bounding box calculation. */
233 #if 0
234  EDA_RECT bBox = GetBoundingBox();
235  bBox.RevertYAxis();
236  bBox = aTransform.TransformCoordinate( bBox );
237  bBox.Move( aOffset );
238  GRRect( clipbox, aDC, bBox, 0, LIGHTMAGENTA );
239 #endif
240 }
241 
242 
243 bool LIB_POLYLINE::HitTest( const wxPoint& aPosition ) const
244 {
245  int mindist = GetPenSize() / 2;
246 
247  // Have a minimal tolerance for hit test
248  if( mindist < MINIMUM_SELECTION_DISTANCE )
249  mindist = MINIMUM_SELECTION_DISTANCE;
250 
251  return HitTest( aPosition, mindist, DefaultTransform );
252 }
253 
254 
255 bool LIB_POLYLINE::HitTest( const wxPoint &aPosition, int aThreshold, const TRANSFORM& aTransform ) const
256 {
257  wxPoint start, end;
258 
259  if( aThreshold < 0 )
260  aThreshold = GetPenSize() / 2;
261 
262  for( unsigned ii = 1; ii < GetCornerCount(); ii++ )
263  {
264  start = aTransform.TransformCoordinate( m_PolyPoints[ii - 1] );
265  end = aTransform.TransformCoordinate( m_PolyPoints[ii] );
266 
267  if( TestSegmentHit( aPosition, start, end, aThreshold ) )
268  return true;
269  }
270 
271  return false;
272 }
273 
274 
276 {
277  EDA_RECT rect;
278  int xmin, xmax, ymin, ymax;
279 
280  xmin = xmax = m_PolyPoints[0].x;
281  ymin = ymax = m_PolyPoints[0].y;
282 
283  for( unsigned ii = 1; ii < GetCornerCount(); ii++ )
284  {
285  xmin = std::min( xmin, m_PolyPoints[ii].x );
286  xmax = std::max( xmax, m_PolyPoints[ii].x );
287  ymin = std::min( ymin, m_PolyPoints[ii].y );
288  ymax = std::max( ymax, m_PolyPoints[ii].y );
289  }
290 
291  rect.SetOrigin( xmin, ymin );
292  rect.SetEnd( xmax, ymax );
293  rect.Inflate( ( GetPenSize()+1 ) / 2 );
294 
295  rect.RevertYAxis();
296 
297  return rect;
298 }
299 
300 
301 void LIB_POLYLINE::DeleteSegment( const wxPoint aPosition )
302 {
303  // First segment is kept, only its end point is changed
304  while( GetCornerCount() > 2 )
305  {
306  m_PolyPoints.pop_back();
307 
308  if( m_PolyPoints[ GetCornerCount() - 1 ] != aPosition )
309  {
310  m_PolyPoints[ GetCornerCount() - 1 ] = aPosition;
311  break;
312  }
313  }
314 }
315 
316 
318 {
319  wxString msg;
320  EDA_RECT bBox = GetBoundingBox();
321 
322  LIB_ITEM::GetMsgPanelInfo( aList );
323 
324  msg = StringFromValue( g_UserUnit, m_Width, true );
325 
326  aList.push_back( MSG_PANEL_ITEM( _( "Line Width" ), msg, BLUE ) );
327 
328  msg.Printf( wxT( "(%d, %d, %d, %d)" ), bBox.GetOrigin().x,
329  bBox.GetOrigin().y, bBox.GetEnd().x, bBox.GetEnd().y );
330 
331  aList.push_back( MSG_PANEL_ITEM( _( "Bounding Box" ), msg, BROWN ) );
332 }
333 
334 
336 {
337  return wxString::Format( _( "Polyline at (%s, %s) with %d points" ),
340  int( m_PolyPoints.size() ) );
341 }
342 
343 
345 {
346  return add_polygon_xpm;
347 }
348 
349 
350 void LIB_POLYLINE::BeginEdit( STATUS_FLAGS aEditMode, const wxPoint aPosition )
351 {
352  wxCHECK_RET( ( aEditMode & ( IS_NEW | IS_MOVED | IS_RESIZED ) ) != 0,
353  wxT( "Invalid edit mode for LIB_POLYLINE object." ) );
354 
355  if( aEditMode == IS_NEW )
356  {
357  m_PolyPoints.push_back( aPosition ); // Start point of first segment.
358  m_PolyPoints.push_back( aPosition ); // End point of first segment.
359  }
360  else if( aEditMode == IS_RESIZED )
361  {
362  // Drag one edge point of the polyline
363  // Find the nearest edge point to be dragged
364  wxPoint startPoint = m_PolyPoints[0];
365 
366  // Begin with the first list point as nearest point
367  int index = 0;
368  m_ModifyIndex = 0;
369  m_initialPos = startPoint;
370 
371  // First distance is the current minimum distance
372  int distanceMin = (aPosition - startPoint).x * (aPosition - startPoint).x
373  + (aPosition - startPoint).y * (aPosition - startPoint).y;
374 
375  wxPoint prevPoint = startPoint;
376 
377  // Find the right index of the point to be dragged
378  for( wxPoint point : m_PolyPoints )
379  {
380  int distancePoint = (aPosition - point).x * (aPosition - point).x +
381  (aPosition - point).y * (aPosition - point).y;
382 
383  if( distancePoint < distanceMin )
384  {
385  // Save point.
386  m_initialPos = point;
387  m_ModifyIndex = index;
388  distanceMin = distancePoint;
389  }
390 
391  // check middle of an edge
392  wxPoint offset = ( aPosition + aPosition - point - prevPoint );
393  distancePoint = ( offset.x * offset.x + offset.y * offset.y ) / 4 + 1;
394 
395  if( distancePoint < distanceMin )
396  {
397  // Save point.
398  m_initialPos = point;
399  m_ModifyIndex = -index; // negative indicates new vertex is to be inserted
400  distanceMin = distancePoint;
401  }
402 
403  prevPoint = point;
404  index++;
405  }
406 
408  }
409  else if( aEditMode == IS_MOVED )
410  {
411  m_initialCursorPos = aPosition;
414  }
415 
416  m_Flags = aEditMode;
417 }
418 
419 
420 bool LIB_POLYLINE::ContinueEdit( const wxPoint aPosition )
421 {
422  wxCHECK_MSG( ( m_Flags & ( IS_NEW | IS_MOVED | IS_RESIZED ) ) != 0, false,
423  wxT( "Bad call to ContinueEdit(). LIB_POLYLINE is not being edited." ) );
424 
425  if( m_Flags == IS_NEW )
426  {
427  // do not add zero length segments
428  if( m_PolyPoints[m_PolyPoints.size() - 2] != m_PolyPoints.back() )
429  m_PolyPoints.push_back( aPosition );
430 
431  return true;
432  }
433 
434  return false;
435 }
436 
437 
438 void LIB_POLYLINE::EndEdit( const wxPoint& aPosition, bool aAbort )
439 {
440  wxCHECK_RET( ( m_Flags & ( IS_NEW | IS_MOVED | IS_RESIZED ) ) != 0,
441  wxT( "Bad call to EndEdit(). LIB_POLYLINE is not being edited." ) );
442 
443  // do not include last point twice
444  if( m_Flags == IS_NEW && 2 < m_PolyPoints.size() )
445  {
446  if( m_PolyPoints[ m_PolyPoints.size() - 2 ] == m_PolyPoints.back() )
447  m_PolyPoints.pop_back();
448  }
449 
450  if( (m_Flags == IS_RESIZED) && (m_PolyPoints.size() > 2) ) // do not delete last two points... keep it alive
451  {
452  if( ( m_ModifyIndex > 0 && m_PolyPoints[ m_ModifyIndex ] ==
453  m_PolyPoints[ m_ModifyIndex - 1 ] )
454  || ( m_ModifyIndex < (int) m_PolyPoints.size() - 1
456  {
457  m_PolyPoints.erase( m_PolyPoints.begin() + m_ModifyIndex ); // delete a point on this
458  }
459  }
460 
461  m_Flags = 0;
462  SetEraseLastDrawItem( false );
463 }
464 
465 
466 void LIB_POLYLINE::calcEdit( const wxPoint& aPosition )
467 {
468  if( m_Flags == IS_NEW )
469  {
470  m_PolyPoints[ GetCornerCount() - 1 ] = aPosition;
472  }
473  else if( m_Flags == IS_RESIZED )
474  {
475  if( m_ModifyIndex < 0 ) // negative indicates new vertex is to be inserted
476  {
478  m_PolyPoints.insert( m_PolyPoints.begin() + m_ModifyIndex, aPosition );
479  }
480 
481  m_PolyPoints[ m_ModifyIndex ] = aPosition;
482  }
483  else if( m_Flags == IS_MOVED )
484  {
485  Move( m_initialPos + aPosition - m_initialCursorPos );
486  }
487 }
Definition: colors.h:57
wxString CoordinateToString(int aValue, bool aConvertToMils)
Function CoordinateToString is a helper to convert the integer coordinate aValue to a string in inche...
Definition: base_units.cpp:118
KICAD_T Type() const
Function Type()
Definition: base_struct.h:225
bool Inside(EDA_RECT &aRect) const override
Test if any part of the draw object is inside rectangle bounds of aRect.
void GRPoly(EDA_RECT *ClipBox, wxDC *DC, int n, wxPoint Points[], bool Fill, int width, COLOR4D Color, COLOR4D BgColor)
Definition: gr_basic.cpp:774
void Move(const wxPoint &aMoveVector)
Function Move moves the rectangle by the aMoveVector.
const wxPoint GetOrigin() const
void calcEdit(const wxPoint &aPosition) override
Calculates the attributes of an item at aPosition when it is being edited.
PNG memory record (file in memory).
Definition: bitmap_types.h:38
void GRSetDrawMode(wxDC *DC, GR_DRAWMODE draw_mode)
Definition: gr_basic.cpp:296
wxString m_typeName
Name of object displayed in the message panel.
void SetEraseLastDrawItem(bool aErase=true)
Implementation of conversion functions that require both schematic and board internal units...
virtual void SetColor(COLOR4D color)=0
#define MINIMUM_SELECTION_DISTANCE
Definition: lib_draw_item.h:52
bool Contains(const wxPoint &aPoint) const
Function Contains.
wxString StringFromValue(EDA_UNITS_T aUnit, int aValue, bool aAddUnitSymbol)
Function StringFromValue returns the string from aValue according to units (inch, mm ...
Definition: base_units.cpp:204
int compare(const LIB_ITEM &aOther) const override
Provide the draw object specific comparison called by the == and < operators.
int GetDefaultLineThickness()
Default line thickness used to draw/plot items having a default thickness line value (i...
void MirrorHorizontal(const wxPoint &aCenter) override
Mirror the draw object along the horizontal (X) axis about aCenter point.
void MirrorVertical(const wxPoint &aCenter) override
Mirror the draw object along the MirrorVertical (Y) axis about aCenter point.
bool IsSelected() const
Definition: base_struct.h:248
void GetMsgPanelInfo(std::vector< MSG_PANEL_ITEM > &aList) override
Display basic info (type, part and convert) about the current item in message panel.
void SetOrigin(const wxPoint &pos)
BITMAP_DEF GetMenuImage() const override
Function GetMenuImage returns a pointer to an image to be used in menus.
EDA_ITEM * Clone() const override
Function Clone creates a duplicate of this item with linked list members set to NULL.
void RotatePoint(int *pX, int *pY, double angle)
Definition: trigo.cpp:317
virtual void PlotPoly(const std::vector< wxPoint > &aCornerList, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void *aData=NULL)=0
Function PlotPoly.
COLOR4D GetLayerColor(SCH_LAYER_ID aLayer)
Definition: eeschema.cpp:167
void RevertYAxis()
Function RevertYAxis Mirror the rectangle from the X axis (negate Y pos and size) ...
void BeginEdit(STATUS_FLAGS aEditMode, const wxPoint aStartPoint=wxPoint(0, 0)) override
Begin an editing a component library draw item in aEditMode at aPosition.
unsigned GetCornerCount() const
Definition: lib_polyline.h:73
The base class for drawable items used by schematic library components.
Definition: lib_draw_item.h:66
This file contains miscellaneous commonly used macros and functions.
#define IS_NEW
New item, just created.
Definition: base_struct.h:127
void SetOffset(const wxPoint &aOffset) override
Set the drawing object by aOffset from the current position.
wxPoint TransformCoordinate(const wxPoint &aPoint) const
Calculate a new coordinate according to the mirror/rotation transform.
Definition: transform.cpp:41
void GRRect(EDA_RECT *aClipBox, wxDC *aDC, int x1, int y1, int x2, int y2, COLOR4D aColor)
Definition: gr_basic.cpp:1076
Class for tranforming drawing coordinates for a wxDC device context.
Definition: transform.h:45
int GetPenSize() const override
GR_DRAWMODE
Drawmode. Compositing mode plus a flag or two.
Definition: gr_basic.h:41
Base window classes and related definitions.
void SetEnd(int x, int y)
void Move(const wxPoint &aPosition) override
Move a draw object to aPosition.
bool ContinueEdit(const wxPoint aNextPoint) override
Continue an edit in progress at aPosition.
bool m_isFillable
Flag to indicate if draw item is fillable.
Define a library symbol object.
unsigned STATUS_FLAGS
Definition: base_struct.h:158
EDA_RECT * GetClipBox()
std::vector< wxPoint > m_PolyPoints
Definition: lib_polyline.h:38
void AddPoint(const wxPoint &aPoint)
virtual void Rotate()
Rotate the draw item.
const wxPoint GetEnd() const
EDA_UNITS_T g_UserUnit
Global variables definitions.
Definition: common.cpp:56
void DeleteSegment(const wxPoint aPosition)
Delete the segment at aPosition.
Base plotter engine class.
Definition: class_plotter.h:96
wxString GetSelectMenuText() const override
Function GetSelectMenuText returns the text to display to be used in the selection clarification cont...
virtual void GetMsgPanelInfo(std::vector< MSG_PANEL_ITEM > &aList) override
Display basic info (type, part and convert) about the current item in message panel.
static const wxChar * GetChars(const wxString &s)
Function GetChars returns a wxChar* to the actual wxChar* data within a wxString, and is helpful for ...
Definition: macros.h:92
TRANSFORM DefaultTransform
Definition: eeschema.cpp:58
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, CPTREE &aTree)
Function Format outputs a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Definition: ptree.cpp:205
#define max(a, b)
Definition: auxiliary.h:86
wxPoint m_initialPos
Temporary position when moving an existing item.
FILL_T m_Fill
The body fill type.
STATUS_FLAGS m_Flags
Flag bits for editing and other uses.
Definition: base_struct.h:202
Class EDA_RECT handles the component boundary box.
void drawGraphic(EDA_DRAW_PANEL *aPanel, wxDC *aDC, const wxPoint &aOffset, COLOR4D aColor, GR_DRAWMODE aDrawMode, void *aData, const TRANSFORM &aTransform) override
Draw the item on aPanel.
Class EDA_ITEM is a base class for most all the KiCad significant classes, used in schematics and boa...
Definition: base_struct.h:178
#define IS_RESIZED
Item being resized.
Definition: base_struct.h:128
std::vector< MSG_PANEL_ITEM > MSG_PANEL_ITEMS
Definition: msgpanel.h:102
FILL_T
Enum FILL_T is the set of fill types used in plotting or drawing enclosed areas.
Definition: base_struct.h:70
const EDA_RECT GetBoundingBox() const override
COLOR4D GetItemSelectedColor()
Class EDA_MSG_ITEM is used EDA_MSG_PANEL as the item type for displaying messages.
Definition: msgpanel.h:53
bool TestSegmentHit(const wxPoint &aRefPoint, wxPoint aStart, wxPoint aEnd, int aDist)
Function TestSegmentHit test for hit on line segment i.e.
Definition: trigo.cpp:142
void EndEdit(const wxPoint &aPosition, bool aAbort=false) override
End an object editing action.
Message panel definition file.
LIB_POLYLINE(LIB_PART *aParent)
void Plot(PLOTTER *aPlotter, const wxPoint &aOffset, bool aFill, const TRANSFORM &aTransform) override
Plot the draw item using the plot object.
EDA_RECT & Inflate(wxCoord dx, wxCoord dy)
Function Inflate inflates the rectangle horizontally by dx and vertically by dy.
bool HitTest(const wxPoint &aPosition) const override
Function HitTest tests if aPosition is contained within or on the bounding area of an item...
wxPoint m_initialCursorPos
Initial cursor position at the beginning of a move.
#define min(a, b)
Definition: auxiliary.h:85
Class COLOR4D is the color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:39
#define IS_MOVED
Item being moved.
Definition: base_struct.h:126
Definition: colors.h:62