|
|
|
|
|
|
Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
WxObject.h File Reference
#include Config.h
#include <acdk.h>
#include <malloc.h>
|
Namespaces |
namespace | acdk |
namespace | acdk::wx |
Defines |
#define | WXDOUT(msg) do { } while(false) |
#define | ASTRING_TO_STK_UCS2(str) astr_to_ucs2((uc2char*)core_alloca((str->length() + 1) * sizeof(uc2char)), str) |
#define | ASTRING_TO_STK_UCS4(str) astr_to_ucs4((uc4char*)core_alloca((str->length() + 1) * sizeof(uc4char)), str) |
#define | ASTRING_TO_STK_CHAR(str) astr_to_char((char*)core_alloca((str->length() + 1)), str) |
#define | WXS2S(wxstr) (new String(wxstr.c_str())) |
#define | S2WXS(str) (wxString((wxChar*)ASTRING_TO_STK_UCS2(str))) |
#define | WXCPTR2S(wxCharPtr) SCS(wxCharPtr) |
#define | RETURN_WXPTR2CLS(Class, expr) return createAcdkObjectFromWx<Class, wx##Class>(expr, false) |
#define | RETURN_WXPTR2CLS_0(Class, expr) return createAcdkObjectFromWx<Class, wx##Class>(expr, true) |
| will owns the return ptr
|
#define | CLS2WXPTR(expr) ((expr) == Nil ? 0 : (expr)->getWx()) |
#define | CLS2WXPTR_L(expr) ((expr) == Nil ? 0 : (wxLoose(expr))->getWx()) |
| convert ACDK class to WX and loose ownership
|
#define | CLS2WXREF(expr) ((expr)->toWx()) |
#define | CLS2WXOUTREF(expr) ((expr)->toWx()) |
#define | WXREF2CLS(expr) ::acdk::wx::fromWx(expr) |
#define | WXVAL2CLS(Class, expr) new Class(expr) |
#define | WXPTR2CLS(Class, expr) createAcdkObjectFromWx<Class, wx##Class>(expr, false) |
#define | WX_FWD_CLASS_1(ClassName, ConstrArg1) |
#define | ACDK_WX_STD_WX_ACCESSOR(ClassName) |
#define | ACDK_WX_STD_MEMBERS(ClassName, SuperName) |
#define | ACDK_WX_STD_VAL_MEMBERS(ClassName, SuperName) |
Typedefs |
typedef wxObject | wxWxObject |
Define Documentation
#define ACDK_WX_STD_MEMBERS |
( |
ClassName, |
|
|
SuperName |
|
) |
|
|
|
Value: inline ClassName(wx##ClassName* wxobj, bool owns = false) : SuperName(wxobj, owns) { } \
inline ClassName(const wx##ClassName& wxobj, bool owns = false) : SuperName(wxobj, owns) { } \
ACDK_WX_STD_WX_ACCESSOR(ClassName)
|
#define ACDK_WX_STD_VAL_MEMBERS |
( |
ClassName, |
|
|
SuperName |
|
) |
|
|
|
Value: inline ClassName(const wx##ClassName& wxobj) : SuperName(new wx##ClassName(wxobj), true) { } \
ACDK_WX_STD_WX_ACCESSOR(ClassName)
|
#define ACDK_WX_STD_WX_ACCESSOR |
( |
ClassName |
|
) |
|
|
|
Value: inline wx##ClassName* getWx() { return static_cast<wx##ClassName*>(_wxObject); } \
inline const wx##ClassName* getWx() const { return static_cast<const wx##ClassName*>(_wxObject); } \
inline wx##ClassName& toWx() { return *static_cast<wx##ClassName*>(_wxObject); } \
inline const wx##ClassName& toWx() const { return *static_cast<const wx##ClassName*>(_wxObject); }
|
#define ASTRING_TO_STK_CHAR |
( |
str |
|
) |
astr_to_char((char*)core_alloca((str->length() + 1)), str)
|
|
#define ASTRING_TO_STK_UCS2 |
( |
str |
|
) |
astr_to_ucs2((uc2char*)core_alloca((str->length() + 1) * sizeof(uc2char)), str)
|
|
#define ASTRING_TO_STK_UCS4 |
( |
str |
|
) |
astr_to_ucs4((uc4char*)core_alloca((str->length() + 1) * sizeof(uc4char)), str)
|
|
#define CLS2WXOUTREF |
( |
expr |
|
) |
((expr)->toWx())
|
|
#define CLS2WXPTR |
( |
expr |
|
) |
((expr) == Nil ? 0 : (expr)->getWx())
|
|
#define CLS2WXPTR_L |
( |
expr |
|
) |
((expr) == Nil ? 0 : (wxLoose(expr))->getWx())
|
|
|
convert ACDK class to WX and loose ownership
|
#define CLS2WXREF |
( |
expr |
|
) |
((expr)->toWx())
|
|
#define RETURN_WXPTR2CLS |
( |
Class, |
|
|
expr |
|
) |
return createAcdkObjectFromWx<Class, wx##Class>(expr, false)
|
|
#define RETURN_WXPTR2CLS_0 |
( |
Class, |
|
|
expr |
|
) |
return createAcdkObjectFromWx<Class, wx##Class>(expr, true)
|
|
#define S2WXS |
( |
str |
|
) |
(wxString((wxChar*)ASTRING_TO_STK_UCS2(str)))
|
|
#define WX_FWD_CLASS_1 |
( |
ClassName, |
|
|
ConstrArg1 |
|
) |
|
|
|
Value: class ClassName##Fwd: public wx##ClassName \
{ \
public:\
WX_FWD_CLASS_CONSTRUCTOR_DEFAULT(ClassName##Fwd) \
WX_FWD_CLASS_CONSTRUCTOR_1(ClassName##Fwd, ConstrArg1) \
};
|
#define WXCPTR2S |
( |
wxCharPtr |
|
) |
SCS(wxCharPtr)
|
|
#define WXDOUT |
( |
msg |
|
) |
do { } while(false)
|
|
#define WXPTR2CLS |
( |
Class, |
|
|
expr |
|
) |
createAcdkObjectFromWx<Class, wx##Class>(expr, false)
|
|
#define WXREF2CLS |
( |
expr |
|
) |
::acdk::wx::fromWx(expr)
|
|
#define WXS2S |
( |
wxstr |
|
) |
(new String(wxstr.c_str()))
|
|
Typedef Documentation
|
|