26 a2dHit HitTestRectangle(
double xtest,
double ytest,
double xmin,
double ymin,
double xmax,
double ymax,
double margin )
40 wxASSERT( margin >= 0 );
42 static a2dHit hittypes [16] =
85 xtest < xmax + margin &&
86 ytest < ymax + margin &&
87 xtest > xmin - margin &&
93 if ( xtest < xmin + margin ) hittype += 1;
94 if ( xtest > xmax - margin ) hittype += 2;
95 if ( ytest < ymin + margin ) hittype += 4;
96 if ( ytest > ymax - margin ) hittype += 8;
98 result = hittypes[hittype];
108 result.m_stroke1 = a2dHit::stroke1_inside;
110 result.m_stroke1 = a2dHit::stroke1_outside;
The point is in the fill area.
general hittest functions
Contains graphical drawing context specific classes. a2dDrawer2D and derived classes are used for dra...
struct for how a single object on one layer was hit
The point is on the stroke or stroke margin.