aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/include/IGUIFontBitmap.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-03-28 22:28:34 +1000
committerDavid Walter Seikel2016-03-28 22:28:34 +1000
commit7028cbe09c688437910a25623098762bf0fa592d (patch)
tree10b5af58277d9880380c2251f109325542c4e6eb /src/others/irrlicht-1.8.1/include/IGUIFontBitmap.h
parentMove lemon to the src/others directory. (diff)
downloadSledjHamr-7028cbe09c688437910a25623098762bf0fa592d.zip
SledjHamr-7028cbe09c688437910a25623098762bf0fa592d.tar.gz
SledjHamr-7028cbe09c688437910a25623098762bf0fa592d.tar.bz2
SledjHamr-7028cbe09c688437910a25623098762bf0fa592d.tar.xz
Move Irrlicht to src/others.
Diffstat (limited to 'src/others/irrlicht-1.8.1/include/IGUIFontBitmap.h')
-rw-r--r--src/others/irrlicht-1.8.1/include/IGUIFontBitmap.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/include/IGUIFontBitmap.h b/src/others/irrlicht-1.8.1/include/IGUIFontBitmap.h
new file mode 100644
index 0000000..36ae37e
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/include/IGUIFontBitmap.h
@@ -0,0 +1,46 @@
1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in irrlicht.h
4
5#ifndef __I_GUI_FONT_BITMAP_H_INCLUDED__
6#define __I_GUI_FONT_BITMAP_H_INCLUDED__
7
8#include "IGUIFont.h"
9
10namespace irr
11{
12namespace gui
13{
14 class IGUISpriteBank;
15
16//! Font interface.
17class IGUIFontBitmap : public IGUIFont
18{
19public:
20
21 //! Returns the type of this font
22 virtual EGUI_FONT_TYPE getType() const { return EGFT_BITMAP; }
23
24 //! returns the parsed Symbol Information
25 virtual IGUISpriteBank* getSpriteBank() const = 0;
26
27 //! returns the sprite number from a given character
28 virtual u32 getSpriteNoFromChar(const wchar_t *c) const = 0;
29
30 //! Gets kerning values (distance between letters) for the font. If no parameters are provided,
31 /** the global kerning distance is returned.
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
34 be displayed as several pixels.
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
37 left side kerning value of thisLetter, then add the global value.
38 */
39 virtual s32 getKerningWidth(const wchar_t* thisLetter=0, const wchar_t* previousLetter=0) const = 0;
40};
41
42} // end namespace gui
43} // end namespace irr
44
45#endif
46