Go to
the documentation of this file.
00001 #ifndef __FBCONSTRAINTLAYOUT_H__
00002 #define __FBCONSTRAINTLAYOUT_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
00052 #include <fbsdk/fbconstraint.h>
00053
00054
00055 #include <fbcontrols/fbcontrols.h>
00056
00057
00058 #ifdef FBSDKUseNamespace
00059 namespace FBSDKNamespace {
00060 #endif
00061
00067 #define FBRegisterConstraintLayout( ClassName,UniqueNameStr, IconFilename ) \
00068 HIObject RegisterConstraintLayout##ClassName( HIObject ,char * ,void *pData) \
00069 {\
00070 ClassName *Class = new ClassName( (HFBConstraint)FBGetFBObject((HIObject)pData) ); \
00071 Class->mAllocated = true; \
00072 if (Class->FBCreate()) { \
00073 return Class->GetHIObject(); \
00074 } else { \
00075 delete Class; \
00076 return NULL; \
00077 } \
00078 } \
00079 \
00080 FBLibraryModule( ClassName ) \
00081 { \
00082 FBRegisterObject( ClassName,"UI_Associated_ClassName",UniqueNameStr,UniqueNameStr" Constraint Layout",RegisterConstraintLayout##ClassName, true, IconFilename ); \
00083 }
00084
00089 #define FBConstraintLayoutDeclare( ClassName,Parent ) \
00090 FBClassDeclare( ClassName,Parent ); \
00091 public: \
00092 ClassName(HFBConstraint pConstraint):Parent(pConstraint) { FBClassInit; } \
00093 private:
00094
00098 #define FBConstraintLayoutImplementation( ThisComponent ) \
00099 FBClassImplementation( ThisComponent )
00100
00102
00104 __FB_FORWARD( FBConstraintLayout );
00105
00107 class FBSDK_DLL FBConstraintLayout : public FBLayout
00108 {
00109 __FBClassDeclare( FBConstraintLayout,FBLayout );
00110
00111 public:
00115 FBConstraintLayout( HFBConstraint pConstraint = NULL );
00116
00117 FBPropertyConstraint Constraint;
00118 };
00119
00120 #ifdef FBSDKUseNamespace
00121 }
00122 #endif
00123 #endif