You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
811 B
31 lines
811 B
// Scintilla source code edit control
|
|
/** @file PlatWin.h
|
|
** Implementation of platform facilities on Windows.
|
|
**/
|
|
// Copyright 1998-2011 by Neil Hodgson <neilh@scintilla.org>
|
|
// The License.txt file describes the conditions under which this software may be distributed.
|
|
|
|
#ifndef PLATWIN_H
|
|
#define PLATWIN_H
|
|
|
|
namespace Scintilla {
|
|
|
|
extern void Platform_Initialise(void *hInstance);
|
|
extern void Platform_Finalise(bool fromDllMain);
|
|
|
|
constexpr RECT RectFromPRectangle(PRectangle prc) noexcept {
|
|
RECT rc = { static_cast<LONG>(prc.left), static_cast<LONG>(prc.top),
|
|
static_cast<LONG>(prc.right), static_cast<LONG>(prc.bottom) };
|
|
return rc;
|
|
}
|
|
|
|
#if defined(USE_D2D)
|
|
extern bool LoadD2D();
|
|
extern ID2D1Factory *pD2DFactory;
|
|
extern IDWriteFactory *pIDWriteFactory;
|
|
#endif
|
|
|
|
}
|
|
|
|
#endif
|