Open Reality Reference Guide
fbtexturelayout.h
Go to the documentation of this file.
1
#ifndef __FBTEXTURELAYOUT_H__
2
#define __FBTEXTURELAYOUT_H__
3
/**************************************************************************
4
Copyright (c) 1994 - 2012 Autodesk, Inc. and/or its licensors.
5
All Rights Reserved.
6
7
The coded instructions, statements, computer programs, and/or related
8
material (collectively the "Data") in these files contain unpublished
9
information proprietary to Autodesk, Inc. and/or its licensors, which is
10
protected by Canada and United States of America federal copyright law
11
and by international treaties.
12
13
The Data may not be disclosed or distributed to third parties, in whole
14
or in part, without the prior written consent of Autodesk, Inc.
15
("Autodesk").
16
17
THE DATA IS PROVIDED "AS IS" AND WITHOUT WARRANTY.
18
ALL WARRANTIES ARE EXPRESSLY EXCLUDED AND DISCLAIMED. AUTODESK MAKES NO
19
WARRANTY OF ANY KIND WITH RESPECT TO THE DATA, EXPRESS, IMPLIED OR
20
ARISING BY CUSTOM OR TRADE USAGE, AND DISCLAIMS ANY IMPLIED WARRANTIES
21
OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
22
PURPOSE OR USE. WITHOUT LIMITING THE FOREGOING, AUTODESK DOES NOT
23
WARRANT THAT THE OPERATION OF THE DATA WILL BE UNINTERRUPTED OR ERROR
24
FREE.
25
26
IN NO EVENT SHALL AUTODESK, ITS AFFILIATES, PARENT COMPANIES, LICENSORS
27
OR SUPPLIERS ("AUTODESK GROUP") BE LIABLE FOR ANY LOSSES, DAMAGES OR
28
EXPENSES OF ANY KIND (INCLUDING WITHOUT LIMITATION PUNITIVE OR MULTIPLE
29
DAMAGES OR OTHER SPECIAL, DIRECT, INDIRECT, EXEMPLARY, INCIDENTAL, LOSS
30
OF PROFITS, REVENUE OR DATA, COST OF COVER OR CONSEQUENTIAL LOSSES OR
31
DAMAGES OF ANY KIND), HOWEVER CAUSED, AND REGARDLESS OF THE THEORY OF
32
LIABILITY, WHETHER DERIVED FROM CONTRACT, TORT (INCLUDING, BUT NOT
33
LIMITED TO, NEGLIGENCE), OR OTHERWISE, ARISING OUT OF OR RELATING TO THE
34
DATA OR ITS USE OR ANY OTHER PERFORMANCE, WHETHER OR NOT AUTODESK HAS
35
BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS OR DAMAGE.
36
37
**************************************************************************/
38
43
#include <kaydaradef.h>
44
#ifndef FBSDK_DLL
45
48
#define FBSDK_DLL K_DLLIMPORT
49
#endif
50
51
#include <fbsdk/fbtexture.h>
52
53
// UI includes
54
#include <
fbcontrols/fbcontrols.h
>
55
56
// Namespace declaration
57
#ifdef FBSDKUseNamespace
58
namespace
FBSDKNamespace {
59
#endif
60
66
#define FBRegisterTextureLayout( ClassName,UniqueNameStr, IconFilename ) \
67
HIObject RegisterTextureLayout##ClassName( HIObject
/*pOwner*/
,const char *
/*pName*/
,void *pData) \
68
{\
69
ClassName *Class = new ClassName( (FBTexture*)FBGetFBObject((HIObject)pData) ); \
70
Class->mAllocated = true; \
71
if (Class->FBCreate()) { \
72
return Class->GetHIObject(); \
73
} else { \
74
delete Class; \
75
return NULL; \
76
} \
77
} \
78
\
79
FBLibraryModule( ClassName ) \
80
{ \
81
FBRegisterObject( ClassName,"UI_Associated_ClassName",UniqueNameStr,UniqueNameStr" Texture Layout",RegisterTextureLayout##ClassName, true, IconFilename ); \
82
}
83
88
#define FBTextureLayoutDeclare( ClassName,Parent ) \
89
FBClassDeclare( ClassName,Parent ); \
90
public: \
91
ClassName(FBTexture* pTexture):Parent(pTexture) { FBClassInit; } \
92
private:
93
97
#define FBTextureLayoutImplementation( ThisComponent ) \
98
FBClassImplementation( ThisComponent )
99
101
// FBTexture
103
__FB_FORWARD
(
FBTextureLayout
);
104
105
107
class
FBSDK_DLL
FBTextureLayout
:
public
FBLayout
108
{
109
__FBClassDeclare
(
FBTextureLayout
,
FBLayout
);
110
111
public
:
115
FBTextureLayout
(
FBTexture
* pTexture = NULL );
116
117
FBPropertyTexture
Texture
;
118
};
119
120
#ifdef FBSDKUseNamespace
121
}
122
#endif
123
#endif
__FBClassDeclare
#define __FBClassDeclare(Name, Parent)
For internal use only.
Definition:
fbcomponent.h:131
FBTextureLayout::Texture
FBPropertyTexture Texture
Property: Texture.
Definition:
fbtexturelayout.h:117
__FB_FORWARD
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
Definition:
fbtypes.h:68
FBLayout
Used to build the user interface.
Definition:
fbcontrols.h:781
FBTextureLayout::FBTextureLayout
FBTextureLayout(FBTexture *pTexture=NULL)
Constructor.
FBSDK_DLL
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
Definition:
fbtexturelayout.h:48
FBTextureLayout
Custom Texture layout class.
Definition:
fbtexturelayout.h:108
fbcontrols.h
Contains the user interface components for the SDK.
FBTexture
Definition:
fbtexture.h:116
Components
amKernel
kkernel
fbsdk
include
fbcontrols
fbtexturelayout.h
Generated by
1.8.20