]> git.lyx.org Git - features.git/blob - src/frontends/gtk/codeConvert.h
The Gtk patch.
[features.git] / src / frontends / gtk / codeConvert.h
1 // -*- C++ -*-
2 /**
3  * \file codeConvert.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Huang Ying
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef CODE_CONVERT_H
13 #define CODE_CONVERT_H
14
15 #include <X11/Xft/Xft.h>
16
17
18 inline FcChar32 * wcsToFcChar32StrFast(wchar_t * wcs)
19 {
20         return reinterpret_cast<FcChar32*>(wcs);
21 }
22
23
24 inline FcChar32 const * wcsToFcChar32StrFast(wchar_t const * wcs)
25 {
26         return reinterpret_cast<FcChar32 const *>(wcs);
27 }
28
29
30 inline FcChar32 wcToFcChar32(wchar_t wc)
31 {
32         return static_cast<FcChar32>(wc);
33 }
34
35
36 #endif