diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/include/IGUIFontBitmap.h | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/libraries/irrlicht-1.8/include/IGUIFontBitmap.h b/libraries/irrlicht-1.8/include/IGUIFontBitmap.h index 36ae37e..c05a652 100644 --- a/libraries/irrlicht-1.8/include/IGUIFontBitmap.h +++ b/libraries/irrlicht-1.8/include/IGUIFontBitmap.h | |||
@@ -1,46 +1,46 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt | 1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt |
2 | // This file is part of the "Irrlicht Engine". | 2 | // This file is part of the "Irrlicht Engine". |
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | 3 | // For conditions of distribution and use, see copyright notice in irrlicht.h |
4 | 4 | ||
5 | #ifndef __I_GUI_FONT_BITMAP_H_INCLUDED__ | 5 | #ifndef __I_GUI_FONT_BITMAP_H_INCLUDED__ |
6 | #define __I_GUI_FONT_BITMAP_H_INCLUDED__ | 6 | #define __I_GUI_FONT_BITMAP_H_INCLUDED__ |
7 | 7 | ||
8 | #include "IGUIFont.h" | 8 | #include "IGUIFont.h" |
9 | 9 | ||
10 | namespace irr | 10 | namespace irr |
11 | { | 11 | { |
12 | namespace gui | 12 | namespace gui |
13 | { | 13 | { |
14 | class IGUISpriteBank; | 14 | class IGUISpriteBank; |
15 | 15 | ||
16 | //! Font interface. | 16 | //! Font interface. |
17 | class IGUIFontBitmap : public IGUIFont | 17 | class IGUIFontBitmap : public IGUIFont |
18 | { | 18 | { |
19 | public: | 19 | public: |
20 | 20 | ||
21 | //! Returns the type of this font | 21 | //! Returns the type of this font |
22 | virtual EGUI_FONT_TYPE getType() const { return EGFT_BITMAP; } | 22 | virtual EGUI_FONT_TYPE getType() const { return EGFT_BITMAP; } |
23 | 23 | ||
24 | //! returns the parsed Symbol Information | 24 | //! returns the parsed Symbol Information |
25 | virtual IGUISpriteBank* getSpriteBank() const = 0; | 25 | virtual IGUISpriteBank* getSpriteBank() const = 0; |
26 | 26 | ||
27 | //! returns the sprite number from a given character | 27 | //! returns the sprite number from a given character |
28 | virtual u32 getSpriteNoFromChar(const wchar_t *c) const = 0; | 28 | virtual u32 getSpriteNoFromChar(const wchar_t *c) const = 0; |
29 | 29 | ||
30 | //! Gets kerning values (distance between letters) for the font. If no parameters are provided, | 30 | //! Gets kerning values (distance between letters) for the font. If no parameters are provided, |
31 | /** the global kerning distance is returned. | 31 | /** the global kerning distance is returned. |
32 | \param thisLetter: If this parameter is provided, the left side kerning for this letter is added | 32 | \param thisLetter: If this parameter is provided, the left side kerning for this letter is added |
33 | to the global kerning value. For example, a space might only be one pixel wide, but it may | 33 | to the global kerning value. For example, a space might only be one pixel wide, but it may |
34 | be displayed as several pixels. | 34 | be displayed as several pixels. |
35 | \param previousLetter: If provided, kerning is calculated for both letters and added to the global | 35 | \param previousLetter: If provided, kerning is calculated for both letters and added to the global |
36 | kerning value. For example, EGFT_BITMAP will add the right kerning value of previousLetter to the | 36 | kerning value. For example, EGFT_BITMAP will add the right kerning value of previousLetter to the |
37 | left side kerning value of thisLetter, then add the global value. | 37 | left side kerning value of thisLetter, then add the global value. |
38 | */ | 38 | */ |
39 | virtual s32 getKerningWidth(const wchar_t* thisLetter=0, const wchar_t* previousLetter=0) const = 0; | 39 | virtual s32 getKerningWidth(const wchar_t* thisLetter=0, const wchar_t* previousLetter=0) const = 0; |
40 | }; | 40 | }; |
41 | 41 | ||
42 | } // end namespace gui | 42 | } // end namespace gui |
43 | } // end namespace irr | 43 | } // end namespace irr |
44 | 44 | ||
45 | #endif | 45 | #endif |
46 | 46 | ||