~ubuntu-branches/ubuntu/vivid/freerdp/vivid

1.1.6 by Martin Pitt
Import upstream version 1.0.0
1
/**
1.2.5 by Mike Gabriel
Import upstream version 1.1.0~beta1+git20130629
2
 * FreeRDP: A Remote Desktop Protocol Implementation
1.1.6 by Martin Pitt
Import upstream version 1.0.0
3
 * GDI Region Functions
4
 *
5
 * Copyright 2010-2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
6
 *
7
 * Licensed under the Apache License, Version 2.0 (the "License");
8
 * you may not use this file except in compliance with the License.
9
 * You may obtain a copy of the License at
10
 *
11
 *     http://www.apache.org/licenses/LICENSE-2.0
12
 *
13
 * Unless required by applicable law or agreed to in writing, software
14
 * distributed under the License is distributed on an "AS IS" BASIS,
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
 * See the License for the specific language governing permissions and
17
 * limitations under the License.
18
 */
19
1.2.5 by Mike Gabriel
Import upstream version 1.1.0~beta1+git20130629
20
#ifndef FREERDP_GDI_REGION_H
21
#define FREERDP_GDI_REGION_H
1.1.6 by Martin Pitt
Import upstream version 1.0.0
22
23
#include <freerdp/api.h>
24
#include <freerdp/gdi/gdi.h>
25
26
FREERDP_API HGDI_RGN gdi_CreateRectRgn(int nLeftRect, int nTopRect, int nRightRect, int nBottomRect);
27
FREERDP_API HGDI_RECT gdi_CreateRect(int xLeft, int yTop, int xRight, int yBottom);
28
FREERDP_API void gdi_RectToRgn(HGDI_RECT rect, HGDI_RGN rgn);
29
FREERDP_API void gdi_CRectToRgn(int left, int top, int right, int bottom, HGDI_RGN rgn);
30
FREERDP_API void gdi_RectToCRgn(HGDI_RECT rect, int *x, int *y, int *w, int *h);
31
FREERDP_API void gdi_CRectToCRgn(int left, int top, int right, int bottom, int *x, int *y, int *w, int *h);
32
FREERDP_API void gdi_RgnToRect(HGDI_RGN rgn, HGDI_RECT rect);
33
FREERDP_API void gdi_CRgnToRect(int x, int y, int w, int h, HGDI_RECT rect);
34
FREERDP_API void gdi_RgnToCRect(HGDI_RGN rgn, int *left, int *top, int *right, int *bottom);
35
FREERDP_API void gdi_CRgnToCRect(int x, int y, int w, int h, int *left, int *top, int *right, int *bottom);
36
FREERDP_API int gdi_CopyOverlap(int x, int y, int width, int height, int srcx, int srcy);
37
FREERDP_API int gdi_SetRect(HGDI_RECT rc, int xLeft, int yTop, int xRight, int yBottom);
38
FREERDP_API int gdi_SetRgn(HGDI_RGN hRgn, int nXLeft, int nYLeft, int nWidth, int nHeight);
39
FREERDP_API int gdi_SetRectRgn(HGDI_RGN hRgn, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect);
40
FREERDP_API int gdi_EqualRgn(HGDI_RGN hSrcRgn1, HGDI_RGN hSrcRgn2);
41
FREERDP_API int gdi_CopyRect(HGDI_RECT dst, HGDI_RECT src);
42
FREERDP_API int gdi_PtInRect(HGDI_RECT rc, int x, int y);
43
FREERDP_API int gdi_InvalidateRegion(HGDI_DC hdc, int x, int y, int w, int h);
44
1.2.5 by Mike Gabriel
Import upstream version 1.1.0~beta1+git20130629
45
#endif /* FREERDP_GDI_REGION_H */