Searched refs:hdc (Results 1 - 25 of 69) sorted by relevance

123

/macosx-10.9.5/WebCore-7537.78.1/platform/graphics/win/
H A DFontPlatformDataWin.cpp55 HWndDC hdc(0);
56 SaveDC(hdc);
58 SelectObject(hdc, font);
59 UINT bufferSize = GetOutlineTextMetrics(hdc, 0, NULL);
66 GetOutlineTextMetricsW(hdc, bufferSize, metrics);
69 platformDataInit(font, size, hdc, faceName);
74 RestoreDC(hdc, -1);
79 HWndDC hdc(0);
80 HGDIOBJ oldFont = SelectObject(hdc, hfont());
82 DWORD size = GetFontData(hdc, tabl
[all...]
H A DSimpleFontDataWin.cpp83 HWndDC hdc(0);
84 HGDIOBJ oldFont = SelectObject(hdc, m_platformData.hfont());
86 GetOutlineTextMetrics(hdc, sizeof(metrics), &metrics);
101 DWORD len = GetGlyphOutline(hdc, 'x', GGO_METRICS, &gm, 0, 0, &identity);
108 SelectObject(hdc, oldFont);
205 HWndDC hdc(0);
206 SetGraphicsMode(hdc, GM_ADVANCED);
207 HGDIOBJ oldFont = SelectObject(hdc, m_platformData.hfont());
211 GetGlyphOutline(hdc, glyph, GGO_METRICS | GGO_GLYPH_INDEX, &gdiMetrics, 0, 0, &identity);
213 SelectObject(hdc, oldFon
[all...]
H A DGraphicsContextCairoWin.cpp41 static cairo_t* createCairoContextWithHDC(HDC hdc, bool hasAlpha) argument
44 SetGraphicsMode(hdc, GM_ADVANCED);
48 HBITMAP bitmap = static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP));
52 surface = cairo_win32_surface_create(hdc);
129 void GraphicsContext::releaseWindowsContext(HDC hdc, const IntRect& dstRect, bool supportAlphaBlend, bool mayCreateBitmap) argument
132 if (!hdc || !createdBitmap) {
140 OwnPtr<HBITMAP> bitmap = adoptPtr(static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP)));
154 ::DeleteDC(hdc);
H A DGraphicsContextCGWin.cpp40 static CGContextRef CGContextWithHDC(HDC hdc, bool hasAlpha) argument
42 HBITMAP bitmap = static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP));
64 SetGraphicsMode(hdc, GM_ADVANCED);
69 GraphicsContext::GraphicsContext(HDC hdc, bool hasAlpha) argument
73 platformInit(hdc, hasAlpha);
76 void GraphicsContext::platformInit(HDC hdc, bool hasAlpha) argument
78 m_data = new GraphicsContextPlatformPrivate(CGContextWithHDC(hdc, hasAlpha));
80 m_data->m_hdc = hdc;
91 void GraphicsContext::releaseWindowsContext(HDC hdc, const IntRect& dstRect, bool supportAlphaBlend, bool mayCreateBitmap) argument
102 OwnPtr<HBITMAP> bitmap = adoptPtr(static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMA
[all...]
H A DFontCacheWin.cpp74 static int CALLBACK metaFileEnumProc(HDC hdc, HANDLETABLE* table, CONST ENHMETARECORD* record, int tableEntries, LPARAM logFont) argument
161 static bool currentFontContainsCharacter(HDC hdc, UChar character) argument
164 glyphsetBuffer.resize(GetFontUnicodeRanges(hdc, 0));
166 GetFontUnicodeRanges(hdc, glyphset);
176 static HFONT createMLangFont(IMLangFontLinkType* langFontLink, HDC hdc, DWORD codePageMask, UChar character = 0) argument
180 if (SUCCEEDED(langFontLink->MapFont(hdc, codePageMask, character, &MLangFont)) && MLangFont) {
193 HWndDC hdc(0);
195 HGDIOBJ oldFont = SelectObject(hdc, primaryFont);
210 hfont = createMLangFont(langFontLink, hdc, CJKCodePageMasks[i]);
214 SelectObject(hdc, hfon
[all...]
H A DLocalWindowsContext.h51 HDC hdc() const { return m_hdc; } function in class:WebCore::LocalWindowsContext
H A DDIBPixelData.cpp87 void DIBPixelData::setRGBABitmapAlpha(HDC hdc, const IntRect& dstRect, unsigned char level) argument
89 HBITMAP bitmap = static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP));
96 GetWorldTransform(hdc, &trans);
H A DUniscribeController.cpp254 HWndDC hdc(0);
256 HFONT oldFont = (HFONT)SelectObject(hdc, hfont);
257 placeResult = ScriptPlace(hdc, fontData->scriptCache(), glyphs.data(), glyphs.size(), visualAttributes.data(),
259 SelectObject(hdc, oldFont);
385 HWndDC hdc; local
390 shapeResult = ScriptShape(hdc, fontData->scriptCache(), str, len, glyphs.size(), &item.a,
395 ASSERT(!hdc);
396 hdc.setHWnd(0);
398 oldFont = (HFONT)SelectObject(hdc, hfont);
406 if (hdc)
[all...]
/macosx-10.9.5/vim-53/src/
H A Dxpm_w32.c47 HDC hdc = CreateCompatibleDC(NULL); local
50 res = XpmReadFileToImage(&hdc, filename, &img, &shp, &attr);
51 DeleteDC(hdc);
/macosx-10.9.5/ICU-511.35/icuSources/samples/layout/
H A Dgdiglue.h26 rs_surface *rs_gdiRenderingSurfaceOpen(HDC hdc);
27 void rs_gdiRenderingSurfaceSetHDC(rs_surface *surface, HDC hdc);
H A DGDIFontInstance.cpp113 HDC hdc = surface->getHDC(); local
119 SaveDC(hdc);
121 SetGraphicsMode(hdc, GM_ADVANCED);
122 ModifyWorldTransform(hdc, NULL, MWT_IDENTITY);
123 SetViewportOrgEx(hdc, 0, 0, NULL);
124 SetWindowOrgEx(hdc, 0, 0, NULL);
126 dpiX = (FLOAT) GetDeviceCaps(hdc, LOGPIXELSX);
127 dpiY = (FLOAT) GetDeviceCaps(hdc, LOGPIXELSY);
133 DPtoLP(hdc, &pt, 1);
161 SelectObject(hdc, fFon
198 HDC hdc = surface->getHDC(); local
344 HDC hdc = fSurface->getHDC(); local
370 HDC hdc = fSurface->getHDC(); local
[all...]
H A Dgdiglue.cpp37 rs_surface *rs_gdiRenderingSurfaceOpen(HDC hdc) argument
39 return (rs_surface *) new GDISurface(hdc);
42 void rs_gdiRenderingSurfaceSetHDC(rs_surface *surface, HDC hdc) argument
46 rs->setHDC(hdc);
H A Dclayout.c120 HDC hdc; local
133 hdc = GetDC(hwnd);
135 surface = rs_gdiRenderingSurfaceOpen(hdc);
141 ReleaseDC(hwnd, hdc);
154 ReleaseDC(hwnd, hdc);
235 hdc = BeginPaint(hwnd, &ps);
236 SetBkMode(hdc, TRANSPARENT);
247 rs_gdiRenderingSurfaceSetHDC(surface, hdc);
296 hdc = GetDC(hwnd);
297 rs_gdiRenderingSurfaceSetHDC(surface, hdc);
[all...]
H A Dlayout.cpp119 HDC hdc; local
132 hdc = GetDC(hwnd);
133 surface = new GDISurface(hdc);
139 ReleaseDC(hwnd, hdc);
152 ReleaseDC(hwnd, hdc);
233 hdc = BeginPaint(hwnd, &ps);
234 SetBkMode(hdc, TRANSPARENT);
245 surface->setHDC(hdc);
292 hdc = GetDC(hwnd);
293 surface->setHDC(hdc);
[all...]
/macosx-10.9.5/tcl-102/tk/tk/win/
H A DttkWinTheme.c168 HDC hdc = TkWinGetDrawableDC(Tk_Display(tkwin), d, &dcState); local
170 DrawFrameControl(hdc, &rc,
173 TkWinReleaseDrawableDC(d, hdc, &dcState);
213 HDC hdc; local
219 hdc = TkWinGetDrawableDC(Tk_Display(tkwin), d, &dcState);
220 DrawEdge(hdc, &rc, ReliefToEdge(relief), BF_RECT | xFlags);
221 TkWinReleaseDrawableDC(d, hdc, &dcState);
264 HDC hdc; local
269 hdc = TkWinGetDrawableDC(Tk_Display(tkwin), d, &dcState);
270 DrawEdge(hdc,
339 HDC hdc; local
399 HDC hdc = TkWinGetDrawableDC(Tk_Display(tkwin), d, &dcState); local
438 HDC hdc; local
508 HDC hdc = TkWinGetDrawableDC(Tk_Display(tkwin), d, &dcState); local
574 HDC hdc; local
631 HDC hdc; local
664 HDC hdc = TkWinGetDrawableDC(Tk_Display(tkwin), d, &dcState); local
[all...]
H A DtkWinFont.c147 HDC hdc; member in struct:CanUse
192 static FontFamily * AllocFontFamily(HDC hdc, HFONT hFont, int base);
193 static SubFont * CanUseFallback(HDC hdc, WinFont *fontPtr,
196 static SubFont * CanUseFallbackWithAliases(HDC hdc, WinFont *fontPtr,
199 static int FamilyExists(HDC hdc, CONST char *faceName);
200 static char * FamilyOrAliasExists(HDC hdc, CONST char *faceName);
211 static void InitSubFont(HDC hdc, HFONT hFont, int base,
218 static int LoadFontRanges(HDC hdc, HFONT hFont,
221 static void MultiFontTextOut(HDC hdc, WinFont *fontPtr,
459 HDC hdc
454 HDC hdc = GetDC(NULL); local
514 HDC hdc; local
631 HDC hdc; local
749 HDC hdc = GetDC(fontPtr->hwnd); local
825 HDC hdc; local
1286 MultiFontTextOut( HDC hdc, WinFont *fontPtr, CONST char *source, int numBytes, int x, int y) argument
1380 HDC hdc; local
1507 InitSubFont( HDC hdc, HFONT hFont, int base, SubFont *subFontPtr) argument
1573 AllocFontFamily( HDC hdc, HFONT hFont, int base) argument
1761 HDC hdc; local
1888 HDC hdc; local
2105 CanUseFallbackWithAliases( HDC hdc, WinFont *fontPtr, char *faceName, int ch, Tcl_DString *nameTriedPtr, SubFont **subFontPtrPtr) argument
2208 CanUseFallback( HDC hdc, WinFont *fontPtr, char *faceName, int ch, SubFont **subFontPtrPtr) argument
2376 FamilyExists( HDC hdc, CONST char *faceName) argument
2420 FamilyOrAliasExists( HDC hdc, CONST char *faceName) argument
2579 LoadFontRanges( HDC hdc, HFONT hFont, USHORT **startCountPtr, USHORT **endCountPtr, int *symbolPtr) argument
[all...]
H A DtkWinImage.c299 HDC hdc, hdcMem;
317 hdc = TkWinGetDrawableDC(display, d, &state);
323 hbmp = CreateCompatibleBitmap(hdc, (int) width, (int) height);
324 hdcMem = CreateCompatibleDC(hdc);
333 hPalPrev2 = SelectPalette(hdc, hPal, FALSE);
334 n = RealizePalette(hdc);
336 UpdateColors(hdc);
340 ret = BitBlt(hdcMem, 0, 0, (int) width, (int) height, hdc, x, y, SRCCOPY);
342 SelectPalette(hdc, hPalPrev2, FALSE);
345 TkWinReleaseDrawableDC(d, hdc,
294 HDC hdc, hdcMem; local
[all...]
/macosx-10.9.5/emacs-92/emacs/src/
H A Dw32xfns.c86 select_palette (FRAME_PTR f, HDC hdc) argument
98 SelectPalette (hdc, display_info->palette, FALSE);
102 if (RealizePalette (hdc))
113 deselect_palette (FRAME_PTR f, HDC hdc) argument
116 SelectPalette (hdc, f->output_data.w32->old_palette, FALSE);
124 HDC hdc; local
131 hdc = GetDC (f->output_data.w32->window_desc);
135 if (hdc)
136 select_palette (f, hdc);
138 return hdc;
142 release_frame_dc(FRAME_PTR f, HDC hdc) argument
[all...]
H A Dw32term.c333 w32_set_clip_rectangle (HDC hdc, RECT *rect)
338 SelectClipRgn (hdc, clip_region);
342 SelectClipRgn (hdc, NULL);
348 w32_draw_rectangle (HDC hdc, XGCValues *gc, int x, int y,
356 oldhb = SelectObject (hdc, hb);
357 oldhp = SelectObject (hdc, hp);
359 Rectangle (hdc, x, y, x + width, y + height);
361 SelectObject (hdc, oldhb);
362 SelectObject (hdc, oldhp);
369 w32_fill_rect (f, hdc, pi
329 w32_set_clip_rectangle(HDC hdc, RECT *rect) argument
344 w32_draw_rectangle(HDC hdc, XGCValues *gc, int x, int y, int width, int height) argument
383 HDC hdc = get_frame_dc (f); local
497 HDC hdc; local
657 HDC hdc = get_frame_dc (f); local
680 HDC hdc; local
874 HDC hdc = GetDC (NULL); local
1452 HDC hdc = get_frame_dc (f); local
1838 HDC hdc = get_frame_dc (f); local
2131 HDC hdc = CreateCompatibleDC (s->hdc); local
2394 HDC hdc = s->hdc; local
2597 HDC hdc; local
3730 HDC hdc; local
3762 HDC hdc; local
4107 HDC hdc = GetDC (window); local
4224 HDC hdc = get_frame_dc (f); local
4828 HDC hdc; local
4839 ReleaseDC (FRAME_W32_WINDOW (f), hdc); local
4924 HDC hdc; local
4970 HDC hdc; local
5051 HDC hdc; local
6187 HDC hdc; local
6220 ReleaseDC (GetDesktopWindow (), hdc); local
[all...]
/macosx-10.9.5/WebCore-7537.78.1/platform/win/
H A DScrollbarThemeWin.cpp72 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))
249 DrawThemeBackground(scrollbarTheme, windowsContext.hdc(), part, state, &themeRect, 0);
254 HDC hdc = windowsContext.hdc(); local
256 ::FillRect(hdc, &themeRect, HBRUSH(COLOR_SCROLLBAR+1));
261 SaveDC(hdc);
262 ::SetTextColor(hdc, ::GetSysColor(COLOR_3DHILIGHT));
263 ::SetBkColor(hdc, ::GetSysColor(COLOR_3DFACE));
264 ::SetBrushOrgEx(hdc, rec
338 paintGripper(ScrollbarThemeClient* scrollbar, HDC hdc, const IntRect& rect) argument
[all...]
/macosx-10.9.5/tcl-102/tk84/tk/win/
H A DtkWinFont.c147 HDC hdc; member in struct:CanUse
190 static FontFamily * AllocFontFamily(HDC hdc, HFONT hFont, int base);
191 static SubFont * CanUseFallback(HDC hdc, WinFont *fontPtr,
194 static SubFont * CanUseFallbackWithAliases(HDC hdc, WinFont *fontPtr,
197 static int FamilyExists(HDC hdc, CONST char *faceName);
198 static char * FamilyOrAliasExists(HDC hdc, CONST char *faceName);
209 static void InitSubFont(HDC hdc, HFONT hFont, int base,
211 static int LoadFontRanges(HDC hdc, HFONT hFont,
214 static void MultiFontTextOut(HDC hdc, WinFont *fontPtr,
356 HDC hdc;
353 HDC hdc; local
469 HDC hdc; local
608 HDC hdc; local
978 MultiFontTextOut( HDC hdc, WinFont *fontPtr, CONST char *source, int numBytes, int x, int y) argument
1072 HDC hdc; local
1198 InitSubFont( HDC hdc, HFONT hFont, int base, SubFont *subFontPtr) argument
1266 AllocFontFamily( HDC hdc, HFONT hFont, int base) argument
1456 HDC hdc; local
1583 HDC hdc; local
1804 CanUseFallbackWithAliases( HDC hdc, WinFont *fontPtr, char *faceName, int ch, Tcl_DString *nameTriedPtr, SubFont **subFontPtrPtr) argument
1907 CanUseFallback( HDC hdc, WinFont *fontPtr, char *faceName, int ch, SubFont **subFontPtrPtr) argument
2073 FamilyExists( HDC hdc, CONST char *faceName) argument
2117 FamilyOrAliasExists( HDC hdc, CONST char *faceName) argument
2276 LoadFontRanges( HDC hdc, HFONT hFont, USHORT **startCountPtr, USHORT **endCountPtr, int *symbolPtr) argument
[all...]
/macosx-10.9.5/WebCore-7537.78.1/page/win/
H A DFrameCGWin.cpp58 HDC hdc = CreateCompatibleDC(0); local
64 HBITMAP hbmpOld = static_cast<HBITMAP>(SelectObject(hdc, hbmp));
74 SelectObject(hdc, hbmpOld);
75 DeleteDC(hdc);
/macosx-10.9.5/WebCore-7537.78.1/platform/graphics/wince/
H A DFontCacheWinCE.cpp67 static bool currentFontContainsCharacter(IMLangFontLinkType* langFontLink, HDC hdc, HFONT hfont, UChar character, const wchar_t* faceName) argument
71 if (S_OK != langFontLink->GetFontUnicodeRanges(hdc, &unicodeRanges, 0))
77 if (S_OK != langFontLink->GetFontUnicodeRanges(hdc, &unicodeRanges, glyphsetBuffer.data()))
87 HRESULT result = langFontLink->GetFontCodePages(hdc, hfont, &fontCodePages);
102 static HFONT createMLangFont(IMLangFontLinkType* langFontLink, HDC hdc, const FontPlatformData& refFont, DWORD codePageMask, UChar character = 0) argument
107 HRESULT result = langFontLink->MapFont(hdc, codePageMask, character, &mlangFont);
109 HRESULT result = langFontLink->MapFont(hdc, codePageMask, refFont.hfont(), &mlangFont);
H A DSharedBitmap.cpp245 void SharedBitmap::draw(HDC hdc, const IntRect& dstRect, const IntRect& srcRect, CompositeOperator compositeOp, BlendMode blendMode) argument
274 StretchDIBits(hdc, dstRect.x(), dstRect.y(), dstRect.width(), dstRect.height(),
279 OwnPtr<HDC> hmemdc = adoptPtr(CreateCompatibleDC(hdc));
284 bool success = alphaBlendIfSupported(hdc, dstRect.x(), dstRect.y(), dstRect.width(), dstRect.height(), hmemdc.get(),
288 TransparentBlt(hdc, dstRect.x(), dstRect.y(), dstRect.width(), dstRect.height(), hmemdc.get(),
345 static void drawPatternSimple(HDC hdc, const RECT& destRect, HBITMAP hbmp, const POINT& phase) argument
352 SetBrushOrgEx(hdc, destRect.left - phase.x, destRect.top - phase.y, &oldOrg);
353 FillRect(hdc, &destRect, hBrush.get());
354 SetBrushOrgEx(hdc, oldOrg.x, oldOrg.y, 0);
357 static void drawPatternSimple(HDC hdc, cons argument
409 drawPattern(HDC hdc, const AffineTransform& transform, const FloatRect& tileRectIn, const AffineTransform& patternTransform, const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect, const IntSize& origSourceSize) argument
573 releaseDC(SharedBitmap*, HDC hdc, unsigned key1) argument
[all...]
/macosx-10.9.5/WebKit-7537.78.2/win/
H A DWebNodeHighlight.cpp143 HDC hdc = ::CreateCompatibleDC(HWndDC(m_overlay)); local
144 if (!hdc)
160 OwnPtr<HBITMAP> hbmp = adoptPtr(::CreateDIBSection(hdc, &bitmapInfo, DIB_RGB_COLORS, &pixels, 0, 0));
163 ::SelectObject(hdc, hbmp.get());
165 GraphicsContext context(hdc);
184 ::UpdateLayeredWindow(m_overlay, HWndDC(0), &dstPoint, &size, hdc, &srcPoint, 0, &bf, ULW_ALPHA);
185 ::DeleteDC(hdc);

Completed in 282 milliseconds

123