source: branches/swt/include/win/gdiplusflat.h

Last change on this file was 22121, checked in by rousseau, 10 years ago

Odin modifications needed for 'gdiplus' [odin]

Modifications:
o dcdata.h

Use 'typedef' for the enum so its more compatible with plain C.

o gdiplus.h

Disabling the namespaces is a quick-hack to get 'gdiplus.dll' to
build. A more proper fix would probably be using '-xc' for g++
when building the 'gdiplus' module.

o gdiplusflat.h

Temporarily remove the majority of prototypes so yet undefined types
do not get introduced already.

o gdiplusimaging.h

Possibly revert this mod after it is clear how to properly handle the
namespaces in 'gdiplus.h'.

o shtypes.h

Includes 'wtypes.h' which defines 'PROPID'.

o windef.h

Not sure why these 'IN','OUT','...' definitions only got defined when
WINE was *not* defined.

o winnt.h

Park Wine macros here for now. Proper include ordering needs to be
revisited anyway.

Note:
The headers for GDI+ headers were already added in rev. #22082 to
satisfy building 'swt.dll'. They also came from the wine-repo.

File size: 1.6 KB
Line 
1/*
2 * Copyright (C) 2007 Google (Evan Stade)
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#ifndef _FLATAPI_H
20#define _FLATAPI_H
21
22#define WINGDIPAPI __stdcall
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28GpStatus WINGDIPAPI GdipCreatePen1(ARGB,REAL,GpUnit,GpPen**);
29GpStatus WINGDIPAPI GdipDeletePen(GpPen*);
30
31GpStatus WINGDIPAPI GdipCreateFromHDC(HDC,GpGraphics**);
32GpStatus WINGDIPAPI GdipCreateFromHWND(HWND,GpGraphics**);
33GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *);
34GpStatus WINGDIPAPI GdipDrawLineI(GpGraphics*,GpPen*,INT,INT,INT,INT);
35GpStatus WINGDIPAPI GdipDrawRectangleI(GpGraphics*,GpPen*,INT,INT,INT,INT);
36GpStatus WINGDIPAPI GdipFillPie(GpGraphics*,GpBrush*,REAL,REAL,REAL,REAL,REAL,REAL);
37
38GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB,GpSolidFill**);
39GpStatus WINGDIPAPI GdipGetBrushType(GpBrush*,GpBrushType*);
40GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*);
41
42#ifdef __cplusplus
43}
44#endif
45
46#endif
Note: See TracBrowser for help on using the repository browser.