Go to the documentation of this file.00001 #ifndef __FBTEXTURELAYOUT_H__
00002 #define __FBTEXTURELAYOUT_H__
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00043 #include <kaydaradef.h>
00044 #ifndef FBSDK_DLL
00045
00048 #define FBSDK_DLL K_DLLIMPORT
00049 #endif
00050
00051 #include <fbsdk/fbtexture.h>
00052
00053
00054 #include <fbcontrols/fbcontrols.h>
00055
00056
00057 #ifdef FBSDKUseNamespace
00058 namespace FBSDKNamespace {
00059 #endif
00060
00066 #define FBRegisterTextureLayout( ClassName,UniqueNameStr, IconFilename ) \
00067 HIObject RegisterTextureLayout##ClassName( HIObject ,const char * ,void *pData) \
00068 {\
00069 ClassName *Class = new ClassName( (FBTexture*)FBGetFBObject((HIObject)pData) ); \
00070 Class->mAllocated = true; \
00071 if (Class->FBCreate()) { \
00072 return Class->GetHIObject(); \
00073 } else { \
00074 delete Class; \
00075 return NULL; \
00076 } \
00077 } \
00078 \
00079 FBLibraryModule( ClassName ) \
00080 { \
00081 FBRegisterObject( ClassName,"UI_Associated_ClassName",UniqueNameStr,UniqueNameStr" Texture Layout",RegisterTextureLayout##ClassName, true, IconFilename ); \
00082 }
00083
00088 #define FBTextureLayoutDeclare( ClassName,Parent ) \
00089 FBClassDeclare( ClassName,Parent ); \
00090 public: \
00091 ClassName(FBTexture* pTexture):Parent(pTexture) { FBClassInit; } \
00092 private:
00093
00097 #define FBTextureLayoutImplementation( ThisComponent ) \
00098 FBClassImplementation( ThisComponent )
00099
00101
00103 __FB_FORWARD( FBTextureLayout );
00104
00105
00107 class FBSDK_DLL FBTextureLayout : public FBLayout
00108 {
00109 __FBClassDeclare( FBTextureLayout,FBLayout );
00110
00111 public:
00115 FBTextureLayout( FBTexture* pTexture = NULL );
00116
00117 FBPropertyTexture Texture;
00118 };
00119
00120 #ifdef FBSDKUseNamespace
00121 }
00122 #endif
00123 #endif