diff options
author | George Hazan <george.hazan@gmail.com> | 2023-07-20 13:30:27 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-07-20 13:30:27 +0300 |
commit | b887fece8cb12f2b853352d12926175751249baa (patch) | |
tree | 44850d83e1778b307c7623fa664aebbb438062be /plugins/ExternalAPI | |
parent | 8314a38acf2afe72c38a4ffb0a3d2f09baa476c1 (diff) |
minor code cleaning
Diffstat (limited to 'plugins/ExternalAPI')
-rw-r--r-- | plugins/ExternalAPI/m_cln_skinedit.h | 198 |
1 files changed, 99 insertions, 99 deletions
diff --git a/plugins/ExternalAPI/m_cln_skinedit.h b/plugins/ExternalAPI/m_cln_skinedit.h index 0255c98080..53f03180dd 100644 --- a/plugins/ExternalAPI/m_cln_skinedit.h +++ b/plugins/ExternalAPI/m_cln_skinedit.h @@ -11,105 +11,105 @@ * data structs
*/
-typedef struct _tagImageItem {
- char szName[40];
- HBITMAP hbm;
- BYTE bLeft, bRight, bTop, bBottom; // sizing margins
- BYTE alpha;
- DWORD dwFlags;
- HDC hdc;
- HBITMAP hbmOld;
- LONG inner_height, inner_width;
- LONG width, height;
- BLENDFUNCTION bf;
- BYTE bStretch;
- HBRUSH fillBrush;
- LONG glyphMetrics[4];
- struct _tagImageItem *nextItem;
-} ImageItem;
-
-typedef struct _tagButtonItem {
- char szName[40];
- HWND hWnd;
- LONG xOff, yOff;
- LONG width, height;
- ImageItem *imgNormal, *imgPressed, *imgHover;
- LONG normalGlyphMetrics[4];
- LONG hoverGlyphMetrics[4];
- LONG pressedGlyphMetrics[4];
- DWORD dwFlags, dwStockFlags;
- DWORD uId;
- TCHAR szTip[256];
- char szService[256];
- char szModule[256], szSetting[256];
- BYTE bValuePush[256], bValueRelease[256];
- DWORD type;
- void (*pfnAction)(struct _tagButtonItem *item, HWND hwndDlg, struct MessageWindowData *dat, HWND hwndItem);
- void (*pfnCallback)(struct _tagButtonItem *item, HWND hwndDlg, struct MessageWindowData *dat, HWND hwndItem);
- TCHAR tszLabel[40];
- struct _tagButtonItem *nextItem;
-} ButtonItem;
-
-typedef struct {
- char szName[40];
- char szDBname[40];
- int statusID;
-
- BYTE GRADIENT;
- BYTE CORNER;
-
- DWORD COLOR;
- DWORD COLOR2;
-
- BYTE COLOR2_TRANSPARENT;
-
- DWORD TEXTCOLOR;
-
- int ALPHA;
-
- int MARGIN_LEFT;
- int MARGIN_TOP;
- int MARGIN_RIGHT;
- int MARGIN_BOTTOM;
- BYTE IGNORED;
- DWORD BORDERSTYLE;
- ImageItem *imageItem;
-} StatusItems_t;
-
-typedef struct {
- BOOL bGRADIENT;
- BOOL bCORNER;
- BOOL bCOLOR;
- BOOL bCOLOR2;
- BOOL bCOLOR2_TRANSPARENT;
- BOOL bTEXTCOLOR;
- BOOL bALPHA;
- BOOL bMARGIN_LEFT;
- BOOL bMARGIN_TOP;
- BOOL bMARGIN_RIGHT;
- BOOL bMARGIN_BOTTOM;
- BOOL bIGNORED;
- BOOL bBORDERSTYLE;
-} ChangedSItems_t;
-
-typedef struct _tagSkinDescription {
- DWORD cbSize;
- StatusItems_t **StatusItems;
- int lastItem;
- int firstItem;
- char szModule[100];
- HWND hWndParent, hWndTab;
- HWND hwndCLUI;
- HWND hwndSkinEdit; /* out param */
- HWND hwndImageEdit; /* out param */
- HMENU hMenuItems;
- void (*pfnSaveCompleteStruct)(void);
- void (CALLBACK *pfnClcOptionsChanged )(void);
- void* (*pfnMalloc)(unsigned int);
- void (*pfnFree)(void);
- void* (*pfnRealloc)(void *, unsigned int);
- void* reserved[20];
-} SKINDESCRIPTION;
+struct ImageItem
+{
+ char szName[40];
+ HBITMAP hbm;
+ BYTE bLeft, bRight, bTop, bBottom; // sizing margins
+ BYTE alpha;
+ DWORD dwFlags;
+ HDC hdc;
+ HBITMAP hbmOld;
+ LONG inner_height, inner_width;
+ LONG width, height;
+ BLENDFUNCTION bf;
+ BYTE bStretch;
+ HBRUSH fillBrush;
+ LONG glyphMetrics[4];
+ ImageItem *nextItem;
+};
+
+struct ButtonItem
+{
+ char szName[40];
+ HWND hWnd;
+ LONG xOff, yOff;
+ LONG width, height;
+ ImageItem *imgNormal, *imgPressed, *imgHover;
+ LONG normalGlyphMetrics[4];
+ LONG hoverGlyphMetrics[4];
+ LONG pressedGlyphMetrics[4];
+ DWORD dwFlags, dwStockFlags;
+ DWORD uId;
+ TCHAR szTip[256];
+ char szService[256];
+ char szModule[256], szSetting[256];
+ BYTE bValuePush[256], bValueRelease[256];
+ DWORD type;
+ void (*pfnAction)(struct _tagButtonItem *item, HWND hwndDlg, struct MessageWindowData *dat, HWND hwndItem);
+ void (*pfnCallback)(struct _tagButtonItem *item, HWND hwndDlg, struct MessageWindowData *dat, HWND hwndItem);
+ TCHAR tszLabel[40];
+ ButtonItem *nextItem;
+};
+
+struct StatusItems_t
+{
+ char szName[40];
+ char szDBname[40];
+ int statusID;
+
+ BYTE GRADIENT;
+ BYTE CORNER;
+
+ DWORD COLOR;
+ DWORD COLOR2;
+
+ BYTE COLOR2_TRANSPARENT;
+
+ DWORD TEXTCOLOR;
+
+ int ALPHA;
+
+ int MARGIN_LEFT;
+ int MARGIN_TOP;
+ int MARGIN_RIGHT;
+ int MARGIN_BOTTOM;
+ BYTE IGNORED;
+ DWORD BORDERSTYLE;
+ ImageItem *imageItem;
+};
+
+struct ChangedSItems_t
+{
+ BOOL bGRADIENT;
+ BOOL bCORNER;
+ BOOL bCOLOR;
+ BOOL bCOLOR2;
+ BOOL bCOLOR2_TRANSPARENT;
+ BOOL bTEXTCOLOR;
+ BOOL bALPHA;
+ BOOL bMARGIN_LEFT;
+ BOOL bMARGIN_TOP;
+ BOOL bMARGIN_RIGHT;
+ BOOL bMARGIN_BOTTOM;
+ BOOL bIGNORED;
+ BOOL bBORDERSTYLE;
+};
+
+struct SKINDESCRIPTION
+{
+ DWORD cbSize;
+ StatusItems_t **StatusItems;
+ int lastItem;
+ int firstItem;
+ char szModule[100];
+ HWND hwndCLUI, hwndParent, hwndTab;
+ HWND hwndSkinEdit; /* out param */
+ HWND hwndImageEdit; /* out param */
+ HMENU hMenuItems;
+ void (*pfnSaveCompleteStruct)(void);
+ void (CALLBACK *pfnClcOptionsChanged)(void);
+};
// defines
|