This commit is contained in:
parent
845be77805
commit
8d91a97dad
39 changed files with 154 additions and 137 deletions
|
|
@ -159,7 +159,7 @@ MWDECL void MWAPI MwSetInteger(MwWidget handle, const char* key, int n);
|
|||
* @param key Key
|
||||
* @param value Value
|
||||
*/
|
||||
MWDECL void MWAPI MwSetText(MwWidget handle, const char* key, const char* value);
|
||||
MWDECL void MWAPI MwSetString(MwWidget handle, const char* key, const char* value);
|
||||
|
||||
/*!
|
||||
* @brief Sets a pointer property
|
||||
|
|
@ -183,7 +183,7 @@ MWDECL int MWAPI MwGetInteger(MwWidget handle, const char* key);
|
|||
* @param key Key
|
||||
* @return Value
|
||||
*/
|
||||
MWDECL const char* MWAPI MwGetText(MwWidget handle, const char* key);
|
||||
MWDECL const char* MWAPI MwGetString(MwWidget handle, const char* key);
|
||||
|
||||
/*!
|
||||
* @brief Gets the pointer property
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@
|
|||
|
||||
typedef struct _MwClass * MwClass, MwClassRec;
|
||||
typedef struct _MwIntegerKeyValue MwIntegerKeyValue;
|
||||
typedef struct _MwTextKeyValue MwTextKeyValue;
|
||||
typedef struct _MwStringKeyValue MwStringKeyValue;
|
||||
typedef struct _MwUserHandlerArray MwUserHandlerArray;
|
||||
typedef struct _MwUserHandlerKeyValue MwUserHandlerKeyValue;
|
||||
typedef struct _MwVoidKeyValue MwVoidKeyValue;
|
||||
typedef struct _MwPointerKeyValue MwPointerKeyValue;
|
||||
typedef struct _MwMenu* MwMenu;
|
||||
typedef struct _MwEntry* MwEntry;
|
||||
typedef struct _MwViewport* MwViewport;
|
||||
|
|
@ -62,7 +62,7 @@ typedef void (*MwHandlerClipboardReceived)(MwWidget handle, const char* data);
|
|||
typedef void(MWAPI* MwUserHandler)(MwWidget handle, void* user_data, void* call_data);
|
||||
typedef void(MWAPI* MwErrorHandler)(int code, const char* message, void* user_data);
|
||||
|
||||
struct _MwTextKeyValue {
|
||||
struct _MwStringKeyValue {
|
||||
char* key;
|
||||
char* value;
|
||||
};
|
||||
|
|
@ -82,7 +82,7 @@ struct _MwUserHandlerKeyValue {
|
|||
MwUserHandlerArray* value;
|
||||
};
|
||||
|
||||
struct _MwVoidKeyValue {
|
||||
struct _MwPointerKeyValue {
|
||||
char* key;
|
||||
void* value;
|
||||
};
|
||||
|
|
@ -101,6 +101,8 @@ struct _MwPixmap {
|
|||
struct _MwColor {
|
||||
MwLLColor lowlevel;
|
||||
MwLLCommonColor common;
|
||||
|
||||
MwWidget handle;
|
||||
};
|
||||
|
||||
struct _MwFont {
|
||||
|
|
@ -130,11 +132,12 @@ struct _MwWidget {
|
|||
MwHandlerProp prop_inject_pixmap; /* this is for pixmap; do not use */
|
||||
|
||||
MwPixmap* pixmaps;
|
||||
MwColor* colors;
|
||||
|
||||
MwIntegerKeyValue* integer;
|
||||
MwTextKeyValue* text;
|
||||
MwStringKeyValue* string;
|
||||
MwUserHandlerKeyValue* handler;
|
||||
MwVoidKeyValue* data;
|
||||
MwPointerKeyValue* data;
|
||||
|
||||
MwWidget* destroy_queue;
|
||||
MwWidget* tick_list;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue