lyx_mirror/src/frontends/gtk/codeConvert.h
Lars Gullik Bjønnes 6d49cbadf0 gtk_patch_2003_10_28
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7997 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-28 16:45:09 +00:00

37 lines
650 B
C++

// -*- C++ -*-
/**
* \file codeConvert.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Huang Ying
*
* Full author contact details are available in file CREDITS.
*/
#ifndef CODE_CONVERT_H
#define CODE_CONVERT_H
#include <X11/Xft/Xft.h>
inline XftChar32 * wcsToXftChar32StrFast(wchar_t * wcs)
{
return reinterpret_cast<XftChar32 *>(wcs);
}
inline XftChar32 * wcsToXftChar32StrFast(wchar_t const * wcs)
{
return reinterpret_cast<XftChar32 *>(const_cast<wchar_t *>(wcs));
}
inline XftChar32 wcToXftChar32(wchar_t wc)
{
return static_cast<XftChar32>(wc);
}
#endif