Lines Matching refs:rect
71 SOFT_LINK(uxtheme, DrawThemeBackground, HRESULT, WINAPI, (HANDLE hTheme, HDC hdc, int iPartId, int iStateId, const RECT* pRect, const RECT* pClipRect), (hTheme, hdc, iPartId, iStateId, pRect, pClipRect))
75 // Constants used to figure the drag rect outside which we should snap the
143 // Our desired rect is essentially 17x17.
145 // Our actual rect will shrink to half the available space when
162 // Our desired rect is essentially 17x17.
164 // Our actual rect will shrink to half the available space when
197 // Find the rect within which we shouldn't snap, by expanding the track rect
199 IntRect rect = trackRect(scrollbar);
202 rect.inflateX((horz ? kOffEndMultiplier : kOffSideMultiplier) * thickness);
203 rect.inflateY((horz ? kOffSideMultiplier : kOffEndMultiplier) * thickness);
209 // We should snap iff the event is outside our calculated rect.
210 return !rect.contains(mousePosition);
213 void ScrollbarThemeWin::paintTrackBackground(GraphicsContext* context, Scrollbar* scrollbar, const IntRect& rect)
217 paintTrackPiece(context, scrollbar, rect, ForwardTrackPart);
220 void ScrollbarThemeWin::paintTrackPiece(GraphicsContext* context, Scrollbar* scrollbar, const IntRect& rect, ScrollbarPart partType)
243 HDC hdc = context->getWindowsContext(rect, alphaBlend);
244 RECT themeRect(rect);
260 ::SetBrushOrgEx(hdc, rect.x(), rect.y(), NULL);
268 context->releaseWindowsContext(hdc, rect, alphaBlend);
271 void ScrollbarThemeWin::paintButton(GraphicsContext* context, Scrollbar* scrollbar, const IntRect& rect, ScrollbarPart part)
308 HDC hdc = context->getWindowsContext(rect, alphaBlend);
310 RECT themeRect(rect);
315 context->releaseWindowsContext(hdc, rect, alphaBlend);
327 static void paintGripper(Scrollbar* scrollbar, HDC hdc, const IntRect& rect)
342 RECT themeRect(rect);
346 void ScrollbarThemeWin::paintThumb(GraphicsContext* context, Scrollbar* scrollbar, const IntRect& rect)
363 HDC hdc = context->getWindowsContext(rect, alphaBlend);
364 RECT themeRect(rect);
367 paintGripper(scrollbar, hdc, gripperRect(scrollbarThickness(), rect));
370 context->releaseWindowsContext(hdc, rect, alphaBlend);