25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

121 satır
4.0 KiB

  1. /* Pango
  2. * pangowin32.h:
  3. *
  4. * Copyright (C) 1999 Red Hat Software
  5. * Copyright (C) 2000 Tor Lillqvist
  6. * Copyright (C) 2001 Alexander Larsson
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Library General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2 of the License, or (at your option) any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Library General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Library General Public
  19. * License along with this library; if not, write to the
  20. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  21. * Boston, MA 02111-1307, USA.
  22. */
  23. #ifndef __PANGOWIN32_H__
  24. #define __PANGOWIN32_H__
  25. #include <glib.h>
  26. #include <pango/pango-font.h>
  27. #include <pango/pango-layout.h>
  28. G_BEGIN_DECLS
  29. #define STRICT
  30. #ifndef _WIN32_WINNT
  31. #define _WIN32_WINNT 0x0501 /* To get ClearType-related macros */
  32. #endif
  33. #include <windows.h>
  34. #undef STRICT
  35. #define PANGO_RENDER_TYPE_WIN32 "PangoRenderWin32"
  36. /* Calls for applications
  37. */
  38. #ifndef PANGO_DISABLE_DEPRECATED
  39. PangoContext * pango_win32_get_context (void);
  40. #endif
  41. void pango_win32_render (HDC hdc,
  42. PangoFont *font,
  43. PangoGlyphString *glyphs,
  44. gint x,
  45. gint y);
  46. void pango_win32_render_layout_line (HDC hdc,
  47. PangoLayoutLine *line,
  48. int x,
  49. int y);
  50. void pango_win32_render_layout (HDC hdc,
  51. PangoLayout *layout,
  52. int x,
  53. int y);
  54. void pango_win32_render_transformed (HDC hdc,
  55. const PangoMatrix *matrix,
  56. PangoFont *font,
  57. PangoGlyphString *glyphs,
  58. int x,
  59. int y);
  60. #ifdef PANGO_ENABLE_ENGINE
  61. /* For shape engines
  62. */
  63. #ifndef PANGO_DISABLE_DEPRECATED
  64. PangoGlyph pango_win32_get_unknown_glyph (PangoFont *font,
  65. gunichar wc);
  66. #endif /* PANGO_DISABLE_DEPRECATED */
  67. gint pango_win32_font_get_glyph_index(PangoFont *font,
  68. gunichar wc);
  69. HDC pango_win32_get_dc (void);
  70. gboolean pango_win32_get_debug_flag (void);
  71. gboolean pango_win32_font_select_font (PangoFont *font,
  72. HDC hdc);
  73. void pango_win32_font_done_font (PangoFont *font);
  74. double pango_win32_font_get_metrics_factor (PangoFont *font);
  75. #endif
  76. /* API for libraries that want to use PangoWin32 mixed with classic
  77. * Win32 fonts.
  78. */
  79. typedef struct _PangoWin32FontCache PangoWin32FontCache;
  80. PangoWin32FontCache *pango_win32_font_cache_new (void);
  81. void pango_win32_font_cache_free (PangoWin32FontCache *cache);
  82. HFONT pango_win32_font_cache_load (PangoWin32FontCache *cache,
  83. const LOGFONTA *logfont);
  84. HFONT pango_win32_font_cache_loadw (PangoWin32FontCache *cache,
  85. const LOGFONTW *logfont);
  86. void pango_win32_font_cache_unload (PangoWin32FontCache *cache,
  87. HFONT hfont);
  88. PangoFontMap *pango_win32_font_map_for_display (void);
  89. void pango_win32_shutdown_display (void);
  90. PangoWin32FontCache *pango_win32_font_map_get_font_cache (PangoFontMap *font_map);
  91. LOGFONTA *pango_win32_font_logfont (PangoFont *font);
  92. LOGFONTW *pango_win32_font_logfontw (PangoFont *font);
  93. PangoFontDescription *pango_win32_font_description_from_logfont (const LOGFONTA *lfp);
  94. PangoFontDescription *pango_win32_font_description_from_logfontw (const LOGFONTW *lfp);
  95. G_END_DECLS
  96. #endif /* __PANGOWIN32_H__ */