Lines Matching refs:clip

44     Rect    clip;  member
69 return (x >= p->clip.o.x) && (x < p->clip.t.x); in IsBoundX()
73 return (y >= p->clip.o.y) && (y < p->clip.t.y); in IsBoundY()
79 if (p->pos.x >= pc->clip.t.x) in NormalizeRegion()
83 if (p->pos.x - pc->clip.o.x < 0) in NormalizeRegion()
84 p->wid.x += p->pos.x - pc->clip.o.x, p->pos.x = pc->clip.o.x; in NormalizeRegion()
87 else if (p->wid.x > pc->clip.t.x - p->pos.x) in NormalizeRegion()
88 p->wid.x = pc->clip.t.x - p->pos.x; in NormalizeRegion()
90 if (p->pos.y >= pc->clip.t.y) in NormalizeRegion()
94 if (p->pos.y - pc->clip.o.y < 0) in NormalizeRegion()
95 p->wid.y += p->pos.y - pc->clip.o.y, p->pos.y = pc->clip.o.y; in NormalizeRegion()
98 else if (p->wid.y > pc->clip.t.y - p->pos.y) in NormalizeRegion()
99 p->wid.y = pc->clip.t.y - p->pos.y; in NormalizeRegion()
148 p->clip.o.x = 0; in InitDraw()
149 p->clip.o.y = 0; in InitDraw()
150 p->clip.t.x = GX_LCD_SIZE_X; in InitDraw()
151 p->clip.t.y = GX_LCD_SIZE_Y; in InitDraw()
196 p_bak->o.x = p->clip.o.x; in ClipWindow()
197 p_bak->o.y = p->clip.o.y; in ClipWindow()
198 p_bak->t.x = p->clip.t.x; in ClipWindow()
199 p_bak->t.y = p->clip.t.y; in ClipWindow()
209 p->clip.o.x = ox; in ClipWindow()
210 p->clip.o.y = oy; in ClipWindow()
211 p->clip.t.x = tx; in ClipWindow()
212 p->clip.t.y = ty; in ClipWindow()
220 p->clip.o.x = p_bak->o.x; in RestoreClipWindow()
221 p->clip.o.y = p_bak->o.y; in RestoreClipWindow()
222 p->clip.t.x = p_bak->t.x; in RestoreClipWindow()
223 p->clip.t.y = p_bak->t.y; in RestoreClipWindow()
311 if (!IsBoundX(pc, sx) || (sy >= pc->clip.t.y)) in DrawLine()
315 if (sy < pc->clip.o.y) in DrawLine()
316 wy += sy, sy = pc->clip.o.y; in DrawLine()
317 if (wy > pc->clip.t.y - sy) in DrawLine()
318 wy = pc->clip.t.y - sy; in DrawLine()
329 if (!IsBoundY(pc, sy) || (sx >= pc->clip.t.x)) in DrawLine()
333 if (sx < pc->clip.o.x) in DrawLine()
334 wx += sx, sx = pc->clip.o.x; in DrawLine()
335 if (wx > pc->clip.t.x - sx) in DrawLine()
336 wx = pc->clip.t.x - sx; in DrawLine()
445 if ((tx > pc->clip.o.x - 8) && (y > pc->clip.o.y - 8) && in DrawTextLen()
446 (tx < pc->clip.t.x) && (y < pc->clip.t.y)) in DrawTextLen()
452 if (pc->clip.o.x - tx > 0) in DrawTextLen()
453 base = pc->clip.o.x - tx; in DrawTextLen()
454 else if (wx > pc->clip.t.x - tx) in DrawTextLen()
455 wx = pc->clip.t.x - tx; in DrawTextLen()
456 if (pc->clip.o.y - y > 0) in DrawTextLen()
458 wy -= pc->clip.o.y - y; in DrawTextLen()
459 pf += pc->clip.o.y - y; in DrawTextLen()
460 dst += GX_LCD_SIZE_X * (pc->clip.o.y - y); in DrawTextLen()
462 else if (wy > pc->clip.t.y - y) in DrawTextLen()
463 wy = pc->clip.t.y - y; in DrawTextLen()