43 #if defined(__cplusplus) 52 #define BUTTON_CF_HIDE WM_CF_HIDE 53 #define BUTTON_CF_SHOW WM_CF_SHOW 54 #define BUTTON_CF_MEMDEV WM_CF_MEMDEV 60 #define BUTTON_CI_UNPRESSED 0 61 #define BUTTON_CI_PRESSED 1 62 #define BUTTON_CI_DISABLED 2 68 #define BUTTON_BI_UNPRESSED 0 69 #define BUTTON_BI_PRESSED 1 70 #define BUTTON_BI_DISABLED 2 76 #define BUTTON_STATE_FOCUS WIDGET_STATE_FOCUS 77 #define BUTTON_STATE_PRESSED WIDGET_STATE_USER0 83 #define BUTTON_SKINFLEX_PI_PRESSED 0 84 #define BUTTON_SKINFLEX_PI_FOCUSSED 1 85 #define BUTTON_SKINFLEX_PI_ENABLED 2 86 #define BUTTON_SKINFLEX_PI_DISABLED 3 94 typedef WM_HMEM BUTTON_Handle;
101 } BUTTON_SKINFLEX_PROPS;
111 BUTTON_Handle BUTTON_Create (
int x0,
int y0,
int xSize,
int ySize,
int ID,
int Flags);
112 BUTTON_Handle BUTTON_CreateAsChild (
int x0,
int y0,
int xSize,
int ySize, WM_HWIN hParent,
int Id,
int Flags);
113 BUTTON_Handle BUTTON_CreateEx (
int x0,
int y0,
int xSize,
int ySize, WM_HWIN hParent,
int WinFlags,
int ExFlags,
int Id);
114 BUTTON_Handle BUTTON_CreateUser (
int x0,
int y0,
int xSize,
int ySize, WM_HWIN hParent,
int WinFlags,
int ExFlags,
int Id,
int NumExtraBytes);
115 BUTTON_Handle BUTTON_CreateIndirect(
const GUI_WIDGET_CREATE_INFO * pCreateInfo, WM_HWIN hWinParent,
int x0,
int y0, WM_CALLBACK * cb);
123 GUI_COLOR BUTTON_GetDefaultBkColor (
unsigned Index);
124 const GUI_FONT * BUTTON_GetDefaultFont (
void);
125 int BUTTON_GetDefaultTextAlign (
void);
126 GUI_COLOR BUTTON_GetDefaultTextColor (
unsigned Index);
127 void BUTTON_SetDefaultBkColor (
GUI_COLOR Color,
unsigned Index);
129 void BUTTON_SetDefaultFont (
const GUI_FONT * pFont);
130 void BUTTON_SetDefaultTextAlign (
int Align);
131 void BUTTON_SetDefaultTextColor (
GUI_COLOR Color,
unsigned Index);
133 #define BUTTON_EnableMemdev(hObj) WM_EnableMemdev (hObj) 134 #define BUTTON_DisableMemdev(hObj) WM_DisableMemdev (hObj) 135 #define BUTTON_Delete(hObj) WM_DeleteWindow (hObj) 136 #define BUTTON_Paint(hObj) WM_Paint (hObj) 137 #define BUTTON_Invalidate(hObj) WM_InvalidateWindow(hObj) 146 void BUTTON_Callback(WM_MESSAGE *pMsg);
154 GUI_COLOR BUTTON_GetBkColor (BUTTON_Handle hObj,
unsigned int Index);
155 const GUI_BITMAP * BUTTON_GetBitmap(BUTTON_Handle hObj,
unsigned int Index);
156 const GUI_FONT * BUTTON_GetFont (BUTTON_Handle hObj);
157 GUI_COLOR BUTTON_GetFrameColor (BUTTON_Handle hObj);
158 WIDGET * BUTTON_GetpWidget (BUTTON_Handle hObj);
159 void BUTTON_GetText (BUTTON_Handle hObj,
char * pBuffer,
int MaxLen);
160 GUI_COLOR BUTTON_GetTextColor (BUTTON_Handle hObj,
unsigned int Index);
161 int BUTTON_GetTextAlign (BUTTON_Handle hObj);
162 int BUTTON_GetUserData (BUTTON_Handle hObj,
void * pDest,
int NumBytes);
163 unsigned BUTTON_IsPressed (BUTTON_Handle hObj);
164 void BUTTON_SetBitmap (BUTTON_Handle hObj,
unsigned int Index,
const GUI_BITMAP * pBitmap);
165 void BUTTON_SetBitmapEx (BUTTON_Handle hObj,
unsigned int Index,
const GUI_BITMAP * pBitmap,
int x,
int y);
166 void BUTTON_SetBkColor (BUTTON_Handle hObj,
unsigned int Index,
GUI_COLOR Color);
167 void BUTTON_SetBMP (BUTTON_Handle hObj,
unsigned int Index,
const void * pBitmap);
168 void BUTTON_SetBMPEx (BUTTON_Handle hObj,
unsigned int Index,
const void * pBitmap,
int x,
int y);
169 void BUTTON_SetFont (BUTTON_Handle hObj,
const GUI_FONT * pfont);
170 void BUTTON_SetFrameColor (BUTTON_Handle hObj,
GUI_COLOR Color);
171 void BUTTON_SetState (BUTTON_Handle hObj,
int State);
172 void BUTTON_SetPressed (BUTTON_Handle hObj,
int State);
174 void BUTTON_SetFocussable (BUTTON_Handle hObj,
int State);
175 void BUTTON_SetStreamedBitmap (BUTTON_Handle hObj,
unsigned int Index,
const GUI_BITMAP_STREAM * pBitmap);
176 void BUTTON_SetStreamedBitmapEx(BUTTON_Handle hObj,
unsigned int Index,
const GUI_BITMAP_STREAM * pBitmap,
int x,
int y);
177 int BUTTON_SetText (BUTTON_Handle hObj,
const char* s);
178 void BUTTON_SetTextAlign (BUTTON_Handle hObj,
int Align);
179 void BUTTON_SetTextColor (BUTTON_Handle hObj,
unsigned int Index,
GUI_COLOR Color);
180 void BUTTON_SetTextOffset (BUTTON_Handle hObj,
int xPos,
int yPos);
181 void BUTTON_SetSelfDrawEx (BUTTON_Handle hObj,
unsigned int Index, GUI_DRAW_SELF_CB * pDraw,
int x,
int y);
182 void BUTTON_SetSelfDraw (BUTTON_Handle hObj,
unsigned int Index, GUI_DRAW_SELF_CB * pDraw);
183 void BUTTON_SetReactOnLevel (
void);
184 void BUTTON_SetReactOnTouch (
void);
185 int BUTTON_SetUserData (BUTTON_Handle hObj,
const void * pSrc,
int NumBytes);
193 void BUTTON_GetSkinFlexProps (BUTTON_SKINFLEX_PROPS * pProps,
int Index);
194 void BUTTON_SetSkinClassic (BUTTON_Handle hObj);
195 void BUTTON_SetSkin (BUTTON_Handle hObj, WIDGET_DRAW_ITEM_FUNC * pfDrawSkin);
196 int BUTTON_DrawSkinFlex (
const WIDGET_ITEM_DRAW_INFO * pDrawItemInfo);
197 void BUTTON_SetSkinFlexProps (
const BUTTON_SKINFLEX_PROPS * pProps,
int Index);
198 void BUTTON_SetDefaultSkinClassic(
void);
199 WIDGET_DRAW_ITEM_FUNC * BUTTON_SetDefaultSkin(WIDGET_DRAW_ITEM_FUNC * pfDrawSkin);
201 #define BUTTON_SKIN_FLEX BUTTON_DrawSkinFlex 203 #if defined(__cplusplus) 207 #endif // GUI_WINSUPPORT