Go to the documentation of this file.00001
00002
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 #ifndef __ftgl__
00029 # warning This header is deprecated. Please use <FTGL/ftgl.h> from now.
00030 # include <FTGL/ftgl.h>
00031 #endif
00032
00033 #ifndef __FTSimpleLayout__
00034 #define __FTSimpleLayout__
00035
00036 #ifdef __cplusplus
00037
00038
00039 class FTFont;
00040
00049 class FTGL_EXPORT FTSimpleLayout : public FTLayout
00050 {
00051 public:
00056 FTSimpleLayout();
00057
00061 ~FTSimpleLayout();
00062
00073 virtual FTBBox BBox(const char* string, const int len = -1,
00074 FTPoint position = FTPoint());
00075
00086 virtual FTBBox BBox(const wchar_t* string, const int len = -1,
00087 FTPoint position = FTPoint());
00088
00099 virtual void Render(const char *string, const int len = -1,
00100 FTPoint position = FTPoint(),
00101 int renderMode = FTGL::RENDER_ALL);
00102
00113 virtual void Render(const wchar_t *string, const int len = -1,
00114 FTPoint position = FTPoint(),
00115 int renderMode = FTGL::RENDER_ALL);
00116
00124 void SetFont(FTFont *fontInit);
00125
00129 FTFont *GetFont();
00130
00136 void SetLineLength(const float LineLength);
00137
00141 float GetLineLength() const;
00142
00149 void SetAlignment(const FTGL::TextAlignment Alignment);
00150
00154 FTGL::TextAlignment GetAlignment() const;
00155
00162 void SetLineSpacing(const float LineSpacing);
00163
00167 float GetLineSpacing() const;
00168 };
00169
00170 #endif //__cplusplus
00171
00172 FTGL_BEGIN_C_DECLS
00173
00174 FTGL_EXPORT FTGLlayout *ftglCreateSimpleLayout(void);
00175
00176 FTGL_EXPORT void ftglSetLayoutFont(FTGLlayout *, FTGLfont*);
00177 FTGL_EXPORT FTGLfont *ftglGetLayoutFont(FTGLlayout *);
00178
00179 FTGL_EXPORT void ftglSetLayoutLineLength(FTGLlayout *, const float);
00180 FTGL_EXPORT float ftglGetLayoutLineLength(FTGLlayout *);
00181
00182 FTGL_EXPORT void ftglSetLayoutAlignment(FTGLlayout *, const int);
00183 FTGL_EXPORT int ftglGetLayoutAlignment(FTGLlayout *);
00184 FTGL_EXPORT int ftglGetLayoutAlignement(FTGLlayout *);
00185
00186 FTGL_EXPORT void ftglSetLayoutLineSpacing(FTGLlayout *, const float);
00187 FTGL_EXPORT float ftglGetLayoutLineSpacing(FTGLlayout *);
00188
00189 FTGL_END_C_DECLS
00190
00191 #endif
00192