forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
100
Kha/Backends/Kinc-hxcpp/khacpp/src/hx/Interface.cpp
Normal file
100
Kha/Backends/Kinc-hxcpp/khacpp/src/hx/Interface.cpp
Normal file
@ -0,0 +1,100 @@
|
||||
#include <hxcpp.h>
|
||||
#if (HXCPP_API_LEVEL < 330)
|
||||
|
||||
namespace hx
|
||||
{
|
||||
|
||||
void Interface::__Mark(hx::MarkContext *__inCtx)
|
||||
{
|
||||
Object *obj = __GetRealObject();
|
||||
HX_MARK_OBJECT(obj);
|
||||
}
|
||||
|
||||
hx::Object *Interface::__ToInterface(const hx::type_info &i)
|
||||
{
|
||||
return __GetRealObject()->__ToInterface(i);
|
||||
}
|
||||
int Interface::__GetType() const
|
||||
{
|
||||
return const_cast<Interface *>(this)->__GetRealObject()->__GetType();
|
||||
}
|
||||
|
||||
void *Interface::__GetHandle() const
|
||||
{
|
||||
return const_cast<Interface *>(this)->__GetRealObject()->__GetHandle();
|
||||
}
|
||||
|
||||
hx::FieldRef Interface::__FieldRef(const ::String &s)
|
||||
{
|
||||
return __GetRealObject()->__FieldRef(s);
|
||||
}
|
||||
|
||||
::String Interface::__ToString() const
|
||||
{
|
||||
return const_cast<Interface *>(this)->__GetRealObject()->__ToString();
|
||||
}
|
||||
|
||||
int Interface::__ToInt() const
|
||||
{
|
||||
return const_cast<Interface *>(this)->__GetRealObject()->__ToInt();
|
||||
}
|
||||
|
||||
double Interface::__ToDouble() const
|
||||
{
|
||||
return const_cast<Interface *>(this)->__GetRealObject()->__ToDouble();
|
||||
}
|
||||
|
||||
const char * Interface::__CStr() const
|
||||
{
|
||||
return const_cast<Interface *>(this)->__GetRealObject()->__CStr();
|
||||
}
|
||||
|
||||
::String Interface::toString()
|
||||
{
|
||||
return __GetRealObject()->toString();
|
||||
}
|
||||
|
||||
bool Interface::__HasField(const ::String &s)
|
||||
{
|
||||
return __GetRealObject()->__HasField(s);
|
||||
}
|
||||
|
||||
hx::Val Interface::__Field(const ::String &s, hx::PropertyAccess inCallProp)
|
||||
{
|
||||
return __GetRealObject()->__Field(s,inCallProp);
|
||||
}
|
||||
|
||||
Dynamic Interface::__IField(int i)
|
||||
{
|
||||
return __GetRealObject()->__IField( i);
|
||||
}
|
||||
|
||||
hx::Val Interface::__SetField(const ::String &s,const hx::Val &d, hx::PropertyAccess inCallProp)
|
||||
{
|
||||
return __GetRealObject()->__SetField(s,d,inCallProp);
|
||||
}
|
||||
|
||||
void Interface::__SetThis(Dynamic d)
|
||||
{
|
||||
return __GetRealObject()->__SetThis(d);
|
||||
}
|
||||
|
||||
void Interface::__GetFields(Array< ::String> &a)
|
||||
{
|
||||
return __GetRealObject()->__GetFields(a);
|
||||
}
|
||||
|
||||
hx::Class Interface::__GetClass() const
|
||||
{
|
||||
return const_cast<Interface *>(this)->__GetRealObject()->__GetClass();
|
||||
}
|
||||
|
||||
int Interface::__Compare(const hx::Object *o) const
|
||||
{
|
||||
return const_cast<Interface *>(this)->__GetRealObject()->__Compare(o);
|
||||
}
|
||||
|
||||
|
||||
|
||||
} // end namespace hx
|
||||
#endif // HXCPP_API_LEVEL 330
|
||||
Reference in New Issue
Block a user