]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/codeConvert.h
Joao latest bits
[lyx.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 XftChar32 * wcsToXftChar32StrFast(wchar_t * wcs)
19 {
20         return reinterpret_cast<XftChar32 *>(wcs);
21 }
22
23
24 inline XftChar32 * wcsToXftChar32StrFast(wchar_t const * wcs)
25 {
26         return reinterpret_cast<XftChar32 *>(const_cast<wchar_t *>(wcs));
27 }
28
29
30 inline XftChar32 wcToXftChar32(wchar_t wc)
31 {
32         return static_cast<XftChar32>(wc);
33 }
34
35
36 #endif