gwenhywfar 4.0.3
|
Typedefs | |
typedef void GWENHYWFAR_CB(* | GWEN_INHERIT_FREEDATAFN )(void *baseData, void *data) |
Functions | |
GWENHYWFAR_API void * | GWEN_Inherit_FindData (GWEN_INHERITDATA_LIST *l, uint32_t id, int wantCreate) |
GWENHYWFAR_API GWEN_INHERITDATA * | GWEN_Inherit_FindEntry (GWEN_INHERITDATA_LIST *l, uint32_t id, int wantCreate) |
GWENHYWFAR_API uint32_t | GWEN_Inherit_MakeId (const char *typeName) |
GWENHYWFAR_API void | GWEN_InheritData_clear (GWEN_INHERITDATA *d) |
GWENHYWFAR_API void | GWEN_InheritData_free (GWEN_INHERITDATA *d) |
GWENHYWFAR_API void | GWEN_InheritData_freeAllData (GWEN_INHERITDATA *d) |
GWENHYWFAR_API void | GWEN_InheritData_freeData (GWEN_INHERITDATA *d) |
GWENHYWFAR_API void * | GWEN_InheritData_GetData (const GWEN_INHERITDATA *d) |
GWENHYWFAR_API GWEN_INHERIT_FREEDATAFN | GWEN_InheritData_GetFreeDataFn (const GWEN_INHERITDATA *d) |
GWENHYWFAR_API uint32_t | GWEN_InheritData_GetId (const GWEN_INHERITDATA *d) |
GWENHYWFAR_API const char * | GWEN_InheritData_GetTypeName (const GWEN_INHERITDATA *d) |
GWENHYWFAR_API GWEN_INHERITDATA * | GWEN_InheritData_new (const char *t, uint32_t id, void *data, void *baseData, GWEN_INHERIT_FREEDATAFN fn) |
Macros To Be Used In Inherited Classes - Header Files | |
#define | GWEN_INHERIT_ELEMENT(t) GWEN_INHERITDATA_LIST *INHERIT__list; |
#define | GWEN_INHERIT_FUNCTION_LIB_DEFS(t, decl) |
#define | GWEN_INHERIT_FUNCTION_DEFS(t) GWEN_INHERIT_FUNCTION_LIB_DEFS(t, GWEN_DUMMY_EMPTY_ARG) |
Macros To Be Used In Inherited Classes - C Files | |
#define | GWEN_INHERIT_FUNCTIONS(t) |
#define | GWEN_INHERIT_INIT(t, element) |
#define | GWEN_INHERIT_FINI(t, element) |
Macros To Be Used In Inheriting Classes | |
#define | GWEN_INHERIT(bt, t) uint32_t t##__INHERIT_ID=0; |
#define | GWEN_INHERIT_GETDATA(bt, t, element) ((t*)GWEN_Inherit_FindData(bt##__INHERIT_GETLIST(element),t##__INHERIT_ID,0)) |
#define | GWEN_INHERIT_SETDATA(bt, t, element, data, fn) |
#define | GWEN_INHERIT_ISOFTYPE(bt, t, element) |
#define | GWEN_INHERIT_UNLINK(bt, t, element) |
#define GWEN_INHERIT | ( | bt, | |
t | |||
) | uint32_t t##__INHERIT_ID=0; |
Use this in the C file of inheriting classes. It initializes a global variable with a hash of the inheriting type name. This is used to speed up inheritance functions. This variable will be filled with a value upon the first invocation of the macro GWEN_INHERIT_SETDATA.
#define GWEN_INHERIT_ELEMENT | ( | t | ) | GWEN_INHERITDATA_LIST *INHERIT__list; |
#define GWEN_INHERIT_FINI | ( | t, | |
element | |||
) |
{\ GWEN_INHERITDATA *inherit__data;\ \ assert(element);\ assert(element->INHERIT__list);\ \ while( (inherit__data=GWEN_InheritData_List_First(element->INHERIT__list)) ) {\ GWEN_InheritData_freeData(inherit__data); \ GWEN_InheritData_List_Del(inherit__data); \ GWEN_InheritData_free(inherit__data); \ } \ GWEN_InheritData_List_free(element->INHERIT__list);\ }
Use this macro in your C file in destructor functions for the base class. This macro deinitializes the elements defined by the macro GWEN_INHERIT_ELEMENT. This should be the first instruction in that function, because it also gives inheriting classes the opportunity to free their own data associated with the given element. It causes the least problems if inheriting classes free their data before the base class does.
Definition at line 238 of file inherit.h.
Referenced by GWEN_ConfigMgr_free(), GWEN_Crypt_Key_free(), GWEN_Crypt_Token_Context_free(), GWEN_Crypt_Token_free(), GWEN_CryptMgr_free(), GWEN_DBIO_free(), GWEN_Dialog_free(), GWEN_Gui_free(), GWEN_HttpSession_free(), GWEN_List_free(), GWEN_MsgEngine_free(), GWEN_Plugin_free(), GWEN_PluginManager_free(), GWEN_SyncIo_free(), GWEN_Widget_free(), GWEN_XmlCtx_free(), GWEN_XsdNode_free(), HtmlFont_free(), HtmlGroup_free(), HtmlImage_free(), and HtmlObject_free().
#define GWEN_INHERIT_FUNCTION_DEFS | ( | t | ) | GWEN_INHERIT_FUNCTION_LIB_DEFS(t, GWEN_DUMMY_EMPTY_ARG) |
Use this macro in the header file of the base class. This defines the prototypes of some inheritance functions. This macro should be used in applications, not in libraries. In libraries please use the macro GWEN_INHERIT_FUNCTION_LIB_DEFS.
You should not care about these functions here, since you should not use them directly. Please use GWEN_INHERIT_GETDATA and GWEN_INHERIT_SETDATA instead.
#define GWEN_INHERIT_FUNCTION_LIB_DEFS | ( | t, | |
decl | |||
) |
decl void t##__INHERIT_SETDATA(t *element, \ const char *typeName,\ uint32_t id,\ void *data,\ GWEN_INHERIT_FREEDATAFN f);\ decl int t##__INHERIT_ISOFTYPE(const t *element, uint32_t id);\ decl GWEN_INHERITDATA_LIST *t##__INHERIT_GETLIST(const t *element);\ decl void t##__INHERIT_UNLINK(t *element, \ const char *typeName,\ uint32_t id);
Use this macro in the header file of the base class. This defines the prototypes of some inheritance functions. This macro should be used in libraries with the __declspec(dllexport) as the decl
argument.
You should not care about these functions here, since you should not use them directly. Please use GWEN_INHERIT_GETDATA and GWEN_INHERIT_SETDATA instead.
#define GWEN_INHERIT_FUNCTIONS | ( | t | ) |
#define GWEN_INHERIT_GETDATA | ( | bt, | |
t, | |||
element | |||
) | ((t*)GWEN_Inherit_FindData(bt##__INHERIT_GETLIST(element),t##__INHERIT_ID,0)) |
This macros returns the private data of an inheriting class associated with an element of its base class.
Definition at line 271 of file inherit.h.
Referenced by FOX16_HtmlCtx::_getFoxFont(), FOX16_HtmlCtx::_paint(), FOX16_HtmlCtx::_paintAt(), Cocoa_Gui_Dialog_Run(), CocoaGui_Dialog_GetMainWidget(), CocoaGui_Dialog_Leave(), CocoaGui_Dialog_Setup(), CocoaGui_Dialog_Unextend(), CocoaGui_WProgressBar_GetIntProperty(), CocoaGui_WProgressBar_SetIntProperty(), CppGui::getCppGui(), CppDialog::getDialog(), CppWidget::getWidget(), GTK2_Gui_Dialog_Run(), Gtk2Gui_Dialog_GetMainWidget(), Gtk2Gui_Dialog_Leave(), Gtk2Gui_Dialog_Setup(), Gtk2Gui_Dialog_Unextend(), Gtk2Gui_WComboBox_GetCharProperty(), Gtk2Gui_WComboBox_SetCharProperty(), Gtk2Gui_WComboBox_SetIntProperty(), Gtk2Gui_WGridLayout_AddChildGuiWidget(), Gtk2Gui_WProgressBar_GetIntProperty(), Gtk2Gui_WProgressBar_SetIntProperty(), Gtk2Gui_WSpinBox_GetIntProperty(), Gtk2Gui_WSpinBox_SetIntProperty(), GWEN_ConfigMgr_Plugin_Factory(), GWEN_ConfigMgr_Plugin_SetFactoryFn(), GWEN_Crypt_KeyAes128_SetIV(), GWEN_Crypt_KeyDes3K_SetIV(), GWEN_Crypt_KeyRsa__GetNamedElement(), GWEN_Crypt_KeyRsa_AddFlags(), GWEN_Crypt_KeyRsa_Decipher(), GWEN_Crypt_KeyRsa_dup(), GWEN_Crypt_KeyRsa_Encipher(), GWEN_Crypt_KeyRsa_GetFlags(), GWEN_Crypt_KeyRsa_SetFlags(), GWEN_Crypt_KeyRsa_Sign(), GWEN_Crypt_KeyRsa_SubFlags(), GWEN_Crypt_KeyRsa_toDb(), GWEN_Crypt_KeyRsa_Verify(), GWEN_Crypt_KeySym__toDb(), GWEN_Crypt_KeySym_Decipher(), GWEN_Crypt_KeySym_dup(), GWEN_Crypt_KeySym_Encipher(), GWEN_Crypt_KeySym_GetKeyDataLen(), GWEN_Crypt_KeySym_GetKeyDataPtr(), GWEN_Crypt_KeySym_SetKeyData(), GWEN_Crypt_KeySym_toDb(), GWEN_Crypt_Token_Plugin_CheckToken(), GWEN_Crypt_Token_Plugin_CreateToken(), GWEN_Crypt_Token_Plugin_GetDeviceType(), GWEN_Crypt_Token_Plugin_SetCheckTokenFn(), GWEN_Crypt_Token_Plugin_SetCreateTokenFn(), GWEN_Crypt_TokenFile__ActivateKey(), GWEN_Crypt_TokenFile__CloseFile(), GWEN_Crypt_TokenFile__Decipher(), GWEN_Crypt_TokenFile__Encipher(), GWEN_Crypt_TokenFile__GenerateKey(), GWEN_Crypt_TokenFile__GetContext(), GWEN_Crypt_TokenFile__GetContextIdList(), GWEN_Crypt_TokenFile__GetKey(), GWEN_Crypt_TokenFile__GetKeyIdList(), GWEN_Crypt_TokenFile__GetKeyInfo(), GWEN_Crypt_TokenFile__OpenFile(), GWEN_Crypt_TokenFile__Read(), GWEN_Crypt_TokenFile__ReadFile(), GWEN_Crypt_TokenFile__ReloadIfNeeded(), GWEN_Crypt_TokenFile__SetContext(), GWEN_Crypt_TokenFile__SetKeyInfo(), GWEN_Crypt_TokenFile__Sign(), GWEN_Crypt_TokenFile__Verify(), GWEN_Crypt_TokenFile__Write(), GWEN_Crypt_TokenFile__WriteFile(), GWEN_Crypt_TokenFile_AddContext(), GWEN_Crypt_TokenFile_Close(), GWEN_Crypt_TokenFile_Create(), GWEN_Crypt_TokenFile_GetContext(), GWEN_Crypt_TokenFile_Open(), GWEN_Crypt_TokenFile_SetReadFn(), GWEN_Crypt_TokenFile_SetWriteFn(), GWEN_CryptMgrKeys_DecryptKey(), GWEN_CryptMgrKeys_EncryptKey(), GWEN_CryptMgrKeys_SetPeerKey(), GWEN_CryptMgrKeys_SignData(), GWEN_CryptMgrKeys_VerifyData(), GWEN_CTF_Context_GetLocalAuthKey(), GWEN_CTF_Context_GetLocalAuthKeyInfo(), GWEN_CTF_Context_GetLocalCryptKey(), GWEN_CTF_Context_GetLocalCryptKeyInfo(), GWEN_CTF_Context_GetLocalSignKey(), GWEN_CTF_Context_GetLocalSignKeyInfo(), GWEN_CTF_Context_GetRemoteAuthKey(), GWEN_CTF_Context_GetRemoteAuthKeyInfo(), GWEN_CTF_Context_GetRemoteCryptKey(), GWEN_CTF_Context_GetRemoteCryptKeyInfo(), GWEN_CTF_Context_GetRemoteSignKey(), GWEN_CTF_Context_GetRemoteSignKeyInfo(), GWEN_CTF_Context_GetTempLocalSignKey(), GWEN_CTF_Context_GetTempLocalSignKeyInfo(), GWEN_CTF_Context_SetLocalAuthKey(), GWEN_CTF_Context_SetLocalAuthKeyInfo(), GWEN_CTF_Context_SetLocalCryptKey(), GWEN_CTF_Context_SetLocalCryptKeyInfo(), GWEN_CTF_Context_SetLocalSignKey(), GWEN_CTF_Context_SetLocalSignKeyInfo(), GWEN_CTF_Context_SetRemoteAuthKey(), GWEN_CTF_Context_SetRemoteAuthKeyInfo(), GWEN_CTF_Context_SetRemoteCryptKey(), GWEN_CTF_Context_SetRemoteCryptKeyInfo(), GWEN_CTF_Context_SetRemoteSignKey(), GWEN_CTF_Context_SetRemoteSignKeyInfo(), GWEN_CTF_Context_SetTempLocalSignKey(), GWEN_CTF_Context_SetTempLocalSignKeyInfo(), GWEN_DBIO_Plugin_Factory(), GWEN_DBIO_Plugin_SetFactoryFn(), GWEN_DlgInput_CheckInput(), GWEN_DlgInput_CopyInput(), GWEN_DlgInput_Fini(), GWEN_DlgInput_HandleActivated(), GWEN_DlgInput_HandleValueChanged(), GWEN_DlgInput_Init(), GWEN_DlgInput_SignalHandler(), GWEN_DlgMessage_Fini(), GWEN_DlgMessage_GetResponse(), GWEN_DlgMessage_HandleActivated(), GWEN_DlgMessage_Init(), GWEN_DlgMessage_SignalHandler(), GWEN_DlgProgress_AddLogText(), GWEN_DlgProgress_Advanced(), GWEN_DlgProgress_Fini(), GWEN_DlgProgress_GetFirstProgress(), GWEN_DlgProgress_GetSecondProgress(), GWEN_DlgProgress_GetStayOpen(), GWEN_DlgProgress_HandleActivated(), GWEN_DlgProgress_Init(), GWEN_DlgProgress_SetAllowClose(), GWEN_DlgProgress_SetFirstProgress(), GWEN_DlgProgress_SetSecondProgress(), GWEN_DlgProgress_SetShowLog(), GWEN_DlgProgress_SetStayOpen(), GWEN_DlgProgress_SignalHandler(), GWEN_DlgShowBox_Fini(), GWEN_DlgShowBox_Init(), GWEN_DlgShowBox_SignalHandler(), GWEN_Gui_CGui__findProgress(), GWEN_Gui_CGui_CheckCert(), GWEN_Gui_CGui_GetCertDb(), GWEN_Gui_CGui_GetPassword(), GWEN_Gui_CGui_GetPasswordDb(), GWEN_Gui_CGui_HideBox(), GWEN_Gui_CGui_MessageBox(), GWEN_Gui_CGui_ProgressAdvance(), GWEN_Gui_CGui_ProgressEnd(), GWEN_Gui_CGui_ProgressLog(), GWEN_Gui_CGui_ProgressStart(), GWEN_Gui_CGui_SetCertDb(), GWEN_Gui_CGui_SetPasswordDb(), GWEN_Gui_CGui_SetPasswordStatus(), GWEN_Gui_CGui_ShowBox(), GWEN_MDigest_Gc_Begin(), GWEN_MDigest_Gc_End(), GWEN_MDigest_Gc_Update(), GWEN_MDigest_Md5_new(), GWEN_MDigest_Rmd160_new(), GWEN_MDigest_Sha1_new(), GWEN_MDigest_Sha256_new(), GWEN_SyncIo_Buffered_Read(), GWEN_SyncIo_Buffered_Write(), GWEN_SyncIo_Http_Connect(), GWEN_SyncIo_Http_Disconnect(), GWEN_SyncIo_Http_GetDbCommandIn(), GWEN_SyncIo_Http_GetDbCommandOut(), GWEN_SyncIo_Http_GetDbHeaderIn(), GWEN_SyncIo_Http_GetDbHeaderOut(), GWEN_SyncIo_Http_GetDbStatusIn(), GWEN_SyncIo_Http_GetDbStatusOut(), GWEN_SyncIo_Http_ParseCommand(), GWEN_SyncIo_Http_ParseHeader(), GWEN_SyncIo_Http_ParseStatus(), GWEN_SyncIo_Http_Read(), GWEN_SyncIo_Http_ReadBody(), GWEN_SyncIo_Http_ReadChunk(), GWEN_SyncIo_Http_ReadChunkSize(), GWEN_SyncIo_Http_ReadCommand(), GWEN_SyncIo_Http_ReadHeader(), GWEN_SyncIo_Http_ReadLine(), GWEN_SyncIo_Http_ReadStatus(), GWEN_SyncIo_Http_RecvBody(), GWEN_SyncIo_Http_SetReadIdle(), GWEN_SyncIo_Http_SetWriteIdle(), GWEN_SyncIo_Http_Write(), GWEN_SyncIo_Http_WriteChunkSize(), GWEN_SyncIo_Http_WriteCommand(), GWEN_SyncIo_Http_WriteHeader(), GWEN_SyncIo_Http_WriteStatus(), GWEN_SyncIo_Memory_GetBuffer(), GWEN_SyncIo_Memory_Read(), GWEN_SyncIo_Memory_TakeBuffer(), GWEN_SyncIo_Memory_Write(), GWEN_SyncIo_Socket_Connect(), GWEN_SyncIo_Socket_Disconnect(), GWEN_SyncIo_Socket_GetAddress(), GWEN_SyncIo_Socket_GetPort(), GWEN_SyncIo_Socket_Read(), GWEN_SyncIo_Socket_SetAddress(), GWEN_SyncIo_Socket_SetPort(), GWEN_SyncIo_Socket_Write(), GWEN_SyncIo_Tls_Connect(), GWEN_SyncIo_Tls_Disconnect(), GWEN_SyncIo_Tls_GetDhParamFile(), GWEN_SyncIo_Tls_GetLocalCertFile(), GWEN_SyncIo_Tls_GetLocalKeyFile(), GWEN_SyncIo_Tls_GetLocalTrustFile(), GWEN_SyncIo_Tls_GetPeerCert(), GWEN_SyncIo_Tls_GetPeerCertDescr(), GWEN_SyncIo_Tls_GetRemoteHostName(), GWEN_SyncIo_Tls_Prepare(), GWEN_SyncIo_Tls_Pull(), GWEN_SyncIo_Tls_Push(), GWEN_SyncIo_Tls_Read(), GWEN_SyncIo_Tls_SetDhParamFile(), GWEN_SyncIo_Tls_SetLocalCertFile(), GWEN_SyncIo_Tls_SetLocalKeyFile(), GWEN_SyncIo_Tls_SetLocalTrustFile(), GWEN_SyncIo_Tls_SetRemoteHostName(), GWEN_SyncIo_Tls_UndoPrepare(), GWEN_SyncIo_Tls_Write(), HtmlCtx_AddAttr(), HtmlCtx_AddComment(), HtmlCtx_AddData(), HtmlCtx_AddMediaPath(), HtmlCtx_EndTag(), HtmlCtx_GetColorFromName(), HtmlCtx_GetCurrentAttributes(), HtmlCtx_GetCurrentGroup(), HtmlCtx_GetCurrentTagName(), HtmlCtx_GetFont(), HtmlCtx_GetImage(), HtmlCtx_GetMediaPaths(), HtmlCtx_GetObjects(), HtmlCtx_GetResolutionX(), HtmlCtx_GetResolutionY(), HtmlCtx_GetRootObject(), HtmlCtx_GetStandardProps(), HtmlCtx_GetTextHeight(), HtmlCtx_GetTextWidth(), HtmlCtx_Layout(), HtmlCtx_SetCurrentGroup(), HtmlCtx_SetCurrentTagName(), HtmlCtx_SetGetColorFromNameFn(), HtmlCtx_SetGetFontFn(), HtmlCtx_SetGetImageFn(), HtmlCtx_SetGetTextHeightFn(), HtmlCtx_SetGetTextWidthFn(), HtmlCtx_SetResolutionX(), HtmlCtx_SetResolutionY(), HtmlCtx_SetStandardProps(), HtmlCtx_SetText(), HtmlCtx_StartTag(), HtmlCtx_TakeObjects(), HtmlGroup_TableRow_GetColumns(), HtmlGroup_TableRow_SetRow(), HtmlGroup_TableRow_StartTag(), HtmlGroup_UnorderedList_StartTag(), HtmlObject_Grid_GetColumns(), HtmlObject_Grid_GetRows(), HtmlObject_Grid_Layout(), HtmlObject_Grid_SetColumns(), HtmlObject_Grid_SetRows(), HtmlObject_GridEntry_GetColumn(), HtmlObject_GridEntry_GetIsHeader(), HtmlObject_GridEntry_GetRow(), HtmlObject_GridEntry_SetColumn(), HtmlObject_GridEntry_SetIsHeader(), HtmlObject_GridEntry_SetRow(), HtmlObject_Image_GetImage(), HtmlObject_Image_GetScaledHeight(), HtmlObject_Image_GetScaledWidth(), HtmlObject_Image_Layout(), HtmlObject_Image_SetImage(), HtmlObject_Image_SetScaledHeight(), HtmlObject_Image_SetScaledWidth(), run_delete_handler(), run_destroy_handler(), and run_unmap_handler().
#define GWEN_INHERIT_INIT | ( | t, | |
element | |||
) |
{\ assert(element);\ element->INHERIT__list=GWEN_InheritData_List_new();\ }
Use this macro in your C file in constructor functions for the base class. This macro initializes the elements defined by the macro GWEN_INHERIT_ELEMENT.
Definition at line 223 of file inherit.h.
Referenced by GWEN_ConfigMgr_new(), GWEN_Crypt_Key_new(), GWEN_Crypt_Token_Context_new(), GWEN_Crypt_Token_new(), GWEN_CryptMgr_new(), GWEN_DBIO_new(), GWEN_Dialog_new(), GWEN_Gui_new(), GWEN_HttpSession_new(), GWEN_List_dup(), GWEN_List_new(), GWEN_MDigest_new(), GWEN_MsgEngine_new(), GWEN_Plugin_new(), GWEN_PluginManager_new(), GWEN_SyncIo_new(), GWEN_Widget_new(), GWEN_XmlCtx_new(), GWEN_XsdNode_new(), HtmlFont_new(), HtmlGroup_new(), HtmlImage_new(), and HtmlObject_new().
#define GWEN_INHERIT_ISOFTYPE | ( | bt, | |
t, | |||
element | |||
) |
((bt##__INHERIT_ISOFTYPE(element,\ ((t##__INHERIT_ID==0)?\ ((t##__INHERIT_ID=GWEN_Inherit_MakeId(__STRING(t)))):\ t##__INHERIT_ID)))?1:0)
This macro checks whether the given element is of the given type.
bt | base type |
t | derived type |
element | pointer which is to be checked |
Definition at line 305 of file inherit.h.
Referenced by FOX16_HtmlCtx::_getFoxFont(), and GWEN_CTF_Context_IsOfThisType().
#define GWEN_INHERIT_SETDATA | ( | bt, | |
t, | |||
element, | |||
data, | |||
fn | |||
) |
{\ if (!t##__INHERIT_ID)\ t##__INHERIT_ID=GWEN_Inherit_MakeId(__STRING(t));\ bt##__INHERIT_SETDATA(element, __STRING(t), t##__INHERIT_ID, data, fn);\ }
This macro sets the private data of an inheriting class associated with an element of its base class. The last argument is a pointer to a function which frees the associated data. That function will be called when the element of the base class given is freed or new data is to be associated with the element. The prototype of that function is this:
typedef void (*function)(void *baseData, void *data);
Please note that the argument to that function is a pointer to the base type element. If you want to get the private data associated with the base type element (and you probably do) you must call GWEN_INHERIT_GETDATA. Every time the macro GWEN_INHERIT_SETDATA is used the previously associated data will be freed by calling the function whose prototype you've just learned.
Definition at line 292 of file inherit.h.
Referenced by FOX16_HtmlCtx::_getFoxFont(), Cocoa_Gui_new(), CocoaGui_Dialog_Extend(), CocoaGui_WProgressBar_Setup(), CppDialog::CppDialog(), CppGui::CppGui(), CppWidget::CppWidget(), FOX16_HtmlCtx::FOX16_HtmlCtx(), FOX16_HtmlCtx::getImage(), Gtk2_Gui_new(), Gtk2Gui_Dialog_Extend(), Gtk2Gui_WComboBox_Setup(), Gtk2Gui_WGridLayout_Setup(), Gtk2Gui_WProgressBar_Setup(), Gtk2Gui_WSpinBox_Setup(), GWEN_ConfigMgr_Plugin_new(), GWEN_Crypt_KeyRsa_fromDb(), GWEN_Crypt_KeyRsa_GeneratePair2(), GWEN_Crypt_KeySym__fromDb(), GWEN_Crypt_KeySym_fromData(), GWEN_Crypt_KeySym_fromDb(), GWEN_Crypt_KeySym_Generate(), GWEN_Crypt_Token_Plugin_new(), GWEN_Crypt_TokenFile_new(), GWEN_CryptMgrKeys_new(), GWEN_CTF_Context_new(), GWEN_DBIO_Plugin_new(), GWEN_DlgInput_new(), GWEN_DlgMessage_new(), GWEN_DlgProgress_new(), GWEN_DlgShowBox_new(), GWEN_Gui_CGui_new(), GWEN_MDigest_Gc_new(), GWEN_SyncIo_Buffered_new(), GWEN_SyncIo_Http_new(), GWEN_SyncIo_Memory_fromBuffer(), GWEN_SyncIo_Memory_new(), GWEN_SyncIo_Socket_new(), GWEN_SyncIo_Socket_TakeOver(), GWEN_SyncIo_Tls_new(), HtmlCtx_new(), HtmlGroup_TableRow_new(), HtmlGroup_UnorderedList_new(), HtmlObject_Grid_new(), HtmlObject_GridEntry_new(), and HtmlObject_Image_new().
#define GWEN_INHERIT_UNLINK | ( | bt, | |
t, | |||
element | |||
) |
{\ if (!t##__INHERIT_ID)\ t##__INHERIT_ID=GWEN_Inherit_MakeId(__STRING(t));\ bt##__INHERIT_UNLINK(element, __STRING(t), t##__INHERIT_ID);\ }
This macro gives up the inheritance for the given type. After this macro has been executed there is no link left between the type and its base type.
bt | base type |
t | derived type |
Definition at line 318 of file inherit.h.
Referenced by CocoaGui_Dialog_Unextend(), Gtk2Gui_Dialog_Unextend(), CppDialog::~CppDialog(), CppGui::~CppGui(), CppWidget::~CppWidget(), and FOX16_HtmlCtx::~FOX16_HtmlCtx().
typedef void GWENHYWFAR_CB(* GWEN_INHERIT_FREEDATAFN)(void *baseData, void *data) |
GWENHYWFAR_API void* GWEN_Inherit_FindData | ( | GWEN_INHERITDATA_LIST * | l, |
uint32_t | id, | ||
int | wantCreate | ||
) |
Definition at line 157 of file inherit.c.
References DBG_VERBOUS, DBG_WARN, and GWEN_LOGDOMAIN.
GWENHYWFAR_API GWEN_INHERITDATA* GWEN_Inherit_FindEntry | ( | GWEN_INHERITDATA_LIST * | l, |
uint32_t | id, | ||
int | wantCreate | ||
) |
Definition at line 184 of file inherit.c.
References DBG_VERBOUS, DBG_WARN, and GWEN_LOGDOMAIN.
GWENHYWFAR_API uint32_t GWEN_Inherit_MakeId | ( | const char * | typeName | ) |
Definition at line 133 of file inherit.c.
References DBG_VERBOUS, and GWEN_LOGDOMAIN.
Referenced by GWEN_SignalObject_MkTypeId().
GWENHYWFAR_API void GWEN_InheritData_clear | ( | GWEN_INHERITDATA * | d | ) |
GWENHYWFAR_API void GWEN_InheritData_free | ( | GWEN_INHERITDATA * | d | ) |
Definition at line 68 of file inherit.c.
References GWEN_FREE_OBJECT, and GWEN_LIST_FINI.
GWENHYWFAR_API void GWEN_InheritData_freeAllData | ( | GWEN_INHERITDATA * | d | ) |
GWENHYWFAR_API void GWEN_InheritData_freeData | ( | GWEN_INHERITDATA * | d | ) |
Definition at line 80 of file inherit.c.
References DBG_VERBOUS, GWEN_LOGDOMAIN, and NULL.
GWENHYWFAR_API void* GWEN_InheritData_GetData | ( | const GWEN_INHERITDATA * | d | ) |
GWENHYWFAR_API GWEN_INHERIT_FREEDATAFN GWEN_InheritData_GetFreeDataFn | ( | const GWEN_INHERITDATA * | d | ) |
GWENHYWFAR_API uint32_t GWEN_InheritData_GetId | ( | const GWEN_INHERITDATA * | d | ) |
GWENHYWFAR_API const char* GWEN_InheritData_GetTypeName | ( | const GWEN_INHERITDATA * | d | ) |
GWENHYWFAR_API GWEN_INHERITDATA* GWEN_InheritData_new | ( | const char * | t, |
uint32_t | id, | ||
void * | data, | ||
void * | baseData, | ||
GWEN_INHERIT_FREEDATAFN | fn | ||
) |
Definition at line 45 of file inherit.c.
References DBG_VERBOUS, GWEN_LIST_INIT, GWEN_LOGDOMAIN, and GWEN_NEW_OBJECT.