Lines Matching refs:border
50 // Clip x to be within [-border,width+border-1]
51 inline void clipToSegment(int &x, int width, int border)
53 if(x < -border)
54 x = -border;
55 else if(x >= width+border)
56 x = width + border - 1;
59 // Return true if x within [-border,width+border-1]
60 inline bool inSegment(int x, int width, int border)
62 return (x >= -border && x < width + border - 1);