diff options
author | Pixel <pixel@nobis-crew.org> | 2009-11-04 11:56:41 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-11-04 11:59:33 -0800 |
commit | d577d991b97ae2b5ee1af23641bcffc3f83af5b2 (patch) | |
tree | 590639d50205d1bcfaff2a7d2dc6ebf3f373c7ed /iup/src/win/iupwin_draw.h |
Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux.
Diffstat (limited to 'iup/src/win/iupwin_draw.h')
-rwxr-xr-x | iup/src/win/iupwin_draw.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/iup/src/win/iupwin_draw.h b/iup/src/win/iupwin_draw.h new file mode 100755 index 0000000..c9a57e6 --- /dev/null +++ b/iup/src/win/iupwin_draw.h @@ -0,0 +1,47 @@ +/** \file + * \brief Draw Functions + * + * See Copyright Notice in "iup.h" + */ + +#ifndef __IUPWIN_DRAW_H +#define __IUPWIN_DRAW_H + +#ifdef __cplusplus +extern "C" { +#endif + + +void iupwinDrawInit(void); + +void iupwinDrawBitmap(HDC hDC, HBITMAP hBitmap, HBITMAP hMask, int x, int y, int width, int height, int bpp); +void iupwinDrawText(HDC hDC, const char* text, int x, int y, int width, int height, HFONT hFont, COLORREF fgcolor, int style); + +void iupwinDrawParentBackground(Ihandle* ih, HDC hDC, RECT* rect); +void iupwinDrawButtonBorder(HWND hWnd, HDC hDC, RECT *rect, UINT itemState); + +void iupwinDrawThemeFrameBorder(HWND hWnd, HDC hDC, RECT *rect, UINT itemState); +int iupwinDrawGetThemeTabsBgColor(HWND hWnd, COLORREF *color); +int iupwinDrawGetThemeButtonBgColor(HWND hWnd, COLORREF *color); +int iupwinDrawGetThemeFrameFgColor(HWND hWnd, COLORREF *color); +void iupwinDrawRemoveTheme(HWND hWnd); + +typedef struct _iupwinBitmapDC +{ + HBITMAP hBitmap, hOldBitmap; + HDC hBitmapDC, hDC; + int w, h; +} iupwinBitmapDC; + +HDC iupwinDrawCreateBitmapDC(iupwinBitmapDC *bmpDC, HDC hDC, int w, int h); +void iupwinDrawDestroyBitmapDC(iupwinBitmapDC *bmpDC); + +#ifndef ODS_HOTLIGHT /* Only defined if WINVER >= 0x0500 */ +#define ODS_HOTLIGHT 0x0040 +#endif + +#ifdef __cplusplus +} +#endif + +#endif |