QWIN GUI facilities for building realistic embedded front panels. More...
#include <windows.h>
Go to the source code of this file.
Classes | |
struct | OwnerDrawnButton |
struct | GraphicDisplay |
struct | SegmentDisplay |
Macros | |
#define | WIN32_LEAN_AND_MEAN |
#define | GraphicDisplay_setPixel(me_, x_, y_, color_) |
#define | GraphicDisplay_clearPixel(me_, x_, y_) |
Enumerations | |
enum | OwnerDrawnButtonAction { BTN_NOACTION , BTN_PAINTED , BTN_DEPRESSED , BTN_RELEASED } |
Functions | |
HWND | CreateCustDialog (HINSTANCE hInst, int iDlg, HWND hParent, WNDPROC lpfnWndProc, LPCTSTR lpWndClass) |
void | OwnerDrawnButton_init (OwnerDrawnButton *const me, UINT itemID, HBITMAP hBitmapUp, HBITMAP hBitmapDwn, HCURSOR hCursor) |
void | OwnerDrawnButton_xtor (OwnerDrawnButton *const me) |
enum OwnerDrawnButtonAction | OwnerDrawnButton_draw (OwnerDrawnButton *const me, LPDRAWITEMSTRUCT lpdis) |
void | OwnerDrawnButton_set (OwnerDrawnButton *const me, int isDepressed) |
BOOL | OwnerDrawnButton_isDepressed (OwnerDrawnButton const *const me) |
void | GraphicDisplay_init (GraphicDisplay *const me, UINT width, UINT height, UINT itemID, BYTE const bgColor[3]) |
void | GraphicDisplay_xtor (GraphicDisplay *const me) |
void | GraphicDisplay_clear (GraphicDisplay *const me) |
void | GraphicDisplay_redraw (GraphicDisplay *const me) |
void | SegmentDisplay_init (SegmentDisplay *const me, UINT segNum, UINT bitmapNum) |
void | SegmentDisplay_xtor (SegmentDisplay *const me) |
BOOL | SegmentDisplay_initSegment (SegmentDisplay *const me, UINT segmentNum, UINT segmentID) |
BOOL | SegmentDisplay_initBitmap (SegmentDisplay *const me, UINT bitmapNum, HBITMAP hBitmap) |
BOOL | SegmentDisplay_setSegment (SegmentDisplay *const me, UINT segmentNum, UINT bitmapNum) |
void | DrawBitmap (HDC hdc, HBITMAP hBitmap, int xStart, int yStart) |
QWIN GUI facilities for building realistic embedded front panels.
Definition in file qwin_gui.h.
struct OwnerDrawnButton |
Definition at line 60 of file qwin_gui.h.
Class Members | ||
---|---|---|
UINT | itemID | |
HBITMAP | hBitmapUp | |
HBITMAP | hBitmapDown | |
HCURSOR | hCursor | |
int | isDepressed |
struct GraphicDisplay |
Definition at line 90 of file qwin_gui.h.
Class Members | ||
---|---|---|
HDC | src_hDC | |
int | src_width | |
int | src_height | |
HDC | dst_hDC | |
int | dst_width | |
int | dst_height | |
HWND | hItem | |
HBITMAP | hBitmap | |
BYTE * | bits | |
BYTE | bgColor[3] |
struct SegmentDisplay |
Definition at line 126 of file qwin_gui.h.
Class Members | ||
---|---|---|
HWND * | hSegment | |
UINT | segmentNum | |
HBITMAP * | hBitmap | |
UINT | bitmapNum |
#define WIN32_LEAN_AND_MEAN |
Definition at line 48 of file qwin_gui.h.
#define GraphicDisplay_setPixel | ( | me_, | |
x_, | |||
y_, | |||
color_ | |||
) |
Definition at line 109 of file qwin_gui.h.
#define GraphicDisplay_clearPixel | ( | me_, | |
x_, | |||
y_ | |||
) |
Definition at line 117 of file qwin_gui.h.
Enumerator | |
---|---|
BTN_NOACTION | |
BTN_PAINTED | |
BTN_DEPRESSED | |
BTN_RELEASED |
Definition at line 68 of file qwin_gui.h.
HWND CreateCustDialog | ( | HINSTANCE | hInst, |
int | iDlg, | ||
HWND | hParent, | ||
WNDPROC | lpfnWndProc, | ||
LPCTSTR | lpWndClass | ||
) |
Definition at line 48 of file qwin_gui.c.
void OwnerDrawnButton_init | ( | OwnerDrawnButton *const | me, |
UINT | itemID, | ||
HBITMAP | hBitmapUp, | ||
HBITMAP | hBitmapDwn, | ||
HCURSOR | hCursor | ||
) |
Definition at line 82 of file qwin_gui.c.
void OwnerDrawnButton_xtor | ( | OwnerDrawnButton *const | me | ) |
Definition at line 94 of file qwin_gui.c.
enum OwnerDrawnButtonAction OwnerDrawnButton_draw | ( | OwnerDrawnButton *const | me, |
LPDRAWITEMSTRUCT | lpdis | ||
) |
Definition at line 94 of file qwin_gui.c.
void OwnerDrawnButton_set | ( | OwnerDrawnButton *const | me, |
int | isDepressed | ||
) |
Definition at line 135 of file qwin_gui.c.
BOOL OwnerDrawnButton_isDepressed | ( | OwnerDrawnButton const *const | me | ) |
Definition at line 148 of file qwin_gui.c.
void GraphicDisplay_init | ( | GraphicDisplay *const | me, |
UINT | width, | ||
UINT | height, | ||
UINT | itemID, | ||
BYTE const | bgColor[3] | ||
) |
Definition at line 153 of file qwin_gui.c.
void GraphicDisplay_xtor | ( | GraphicDisplay *const | me | ) |
Definition at line 189 of file qwin_gui.c.
void GraphicDisplay_clear | ( | GraphicDisplay *const | me | ) |
Definition at line 195 of file qwin_gui.c.
void GraphicDisplay_redraw | ( | GraphicDisplay *const | me | ) |
Definition at line 209 of file qwin_gui.c.
void SegmentDisplay_init | ( | SegmentDisplay *const | me, |
UINT | segNum, | ||
UINT | bitmapNum | ||
) |
Definition at line 215 of file qwin_gui.c.
void SegmentDisplay_xtor | ( | SegmentDisplay *const | me | ) |
Definition at line 232 of file qwin_gui.c.
BOOL SegmentDisplay_initSegment | ( | SegmentDisplay *const | me, |
UINT | segmentNum, | ||
UINT | segmentID | ||
) |
Definition at line 246 of file qwin_gui.c.
BOOL SegmentDisplay_initBitmap | ( | SegmentDisplay *const | me, |
UINT | bitmapNum, | ||
HBITMAP | hBitmap | ||
) |
Definition at line 258 of file qwin_gui.c.
BOOL SegmentDisplay_setSegment | ( | SegmentDisplay *const | me, |
UINT | segmentNum, | ||
UINT | bitmapNum | ||
) |
Definition at line 270 of file qwin_gui.c.
void DrawBitmap | ( | HDC | hdc, |
HBITMAP | hBitmap, | ||
int | xStart, | ||
int | yStart | ||
) |
Definition at line 288 of file qwin_gui.c.