IrrIMGUI
0.3.1
|
A interface to an IMGUI handle. Use this interface for mocking and dependency injection of the real IMGUI handle. More...
#include <IIMGUIHandle.h>
Public Member Functions | |
virtual | ~IIMGUIHandle (void) |
Destructor. More... | |
Render and drawing methods | |
virtual void | startGUI (void)=0 |
Call this methods before you draw the IMGUI elements and before calling "drawAll()". More... | |
virtual void | drawAll (void)=0 |
Call this function after "startGUI()" and after you draw your GUI elements. It will render all elements to the screen (do not call it before rendering the 3D Scene!). More... | |
GUI settings | |
virtual SIMGUISettings const & | getSettings (void) const =0 |
virtual void | setSettings (SIMGUISettings const &rSettings)=0 |
Font operations | |
virtual ImFont * | addFont (ImFontConfig const *pFontConfig)=0 |
Adds a font to the IMGUI memory. More... | |
virtual ImFont * | addDefaultFont (ImFontConfig const *pFontConfig=NULL)=0 |
Adds the default font to the IMGUI memory. More... | |
virtual ImFont * | addFontFromFileTTF (char const *pFileName, float FontSizeInPixel, ImFontConfig const *pFontConfig=NULL, ImWchar const *pGlyphRanges=NULL)=0 |
Adds a font from a TTF file to the IMGUI memory. More... | |
virtual ImFont * | addFontFromMemoryTTF (void *pTTFData, int TTFSize, float FontSizeInPixel, ImFontConfig const *pFontConfig=NULL, ImWchar const *pGlyphRanges=NULL)=0 |
Adds a font from a TTF byte array to the IMGUI memory. More... | |
virtual ImFont * | addFontFromMemoryCompressedTTF (void const *pCompressedTTFData, int CompressedTTFSize, float FontSizeInPixel, ImFontConfig const *pFontConfig=NULL, ImWchar const *pGlyphRanges=NULL)=0 |
Adds a font from a compressed TTF byte array to the IMGUI memory. More... | |
virtual ImFont * | addFontFromMemoryCompressedBase85TTF (char const *pCompressedTTFDataBase85, float FontSizeInPixel, ImFontConfig const *pFontConfig=NULL, const ImWchar *pGlyphRanges=NULL)=0 |
Adds a font from a compressed TTF byte array that uses the base85 character encoding to the IMGUI memory. More... | |
virtual void | compileFonts (void)=0 |
This function copies all fonts that have been added with "addFont/addDefaultFont" into graphic memory. More... | |
virtual void | resetFonts (void)=0 |
Resets the font memory and restores the default font as the one and only font in the system. More... | |
Common Font Glyph-Ranges | |
virtual ImWchar const * | getGlyphRangesDefault (void)=0 |
virtual ImWchar const * | getGlyphRangesJapanese (void)=0 |
virtual ImWchar const * | getGlyphRangesChinese (void)=0 |
virtual ImWchar const * | getGlyphRangesCyrillic (void)=0 |
Image and Texture methods | |
virtual IGUITexture * | createTexture (irr::video::IImage *pImage)=0 |
Creates a GUI texture object out of an Irrlicht image. More... | |
virtual IGUITexture * | createTexture (irr::video::ITexture *pTexture)=0 |
Creates a GUI texture object out of an Irrlicht texture. More... | |
virtual void | updateTexture (IGUITexture *pGUITexture, irr::video::IImage *pImage)=0 |
Updates a GUI texture object with an Irrlicht image. More... | |
virtual void | updateTexture (IGUITexture *pGUITexture, irr::video::ITexture *pTexture)=0 |
Updates a GUI texture object with an Irrlicht texture. More... | |
virtual void | deleteTexture (IGUITexture *pGUITexture)=0 |
Deletes an texture from graphic memory. More... | |
Public Member Functions inherited from IrrIMGUI::IReferenceCounter | |
IReferenceCounter (void) | |
Constructor. More... | |
virtual | ~IReferenceCounter (void) |
Destructor. More... | |
virtual void | grab (void) |
Call this method to grab an instance. More... | |
virtual void | drop (void) |
Call this method to drop an instance. If you drop the last used instance, the object is destroyed. More... | |
virtual irr::u32 | getReferenceCount (void) const |
Protected Member Functions | |
Constructor and Destructor | |
IIMGUIHandle (void) | |
Forbidden Constructor. More... | |
A interface to an IMGUI handle. Use this interface for mocking and dependency injection of the real IMGUI handle.
Definition at line 48 of file IIMGUIHandle.h.
|
inlinevirtual |
Destructor.
Definition at line 52 of file IIMGUIHandle.h.
|
inlineprotected |
Forbidden Constructor.
Definition at line 207 of file IIMGUIHandle.h.
|
pure virtual |
Adds the default font to the IMGUI memory.
pFontConfig | Is a pointer to the font configuration. |
Implemented in IrrIMGUI::Private::CIMGUIHandle, and IrrIMGUI::UnitTest::IIMGUIHandleMock.
|
pure virtual |
Adds a font to the IMGUI memory.
pFontConfig | Is a pointer to the font configuration. |
Implemented in IrrIMGUI::Private::CIMGUIHandle, and IrrIMGUI::UnitTest::IIMGUIHandleMock.
|
pure virtual |
Adds a font from a TTF file to the IMGUI memory.
pFileName | Is the name of the file to add. |
FontSizeInPixel | Is the desired font size to use. |
pFontConfig | Is a pointer to the font configuration. |
pGlyphRanges | Is the Glyph-Range to select the correct character set. |
Implemented in IrrIMGUI::Private::CIMGUIHandle, and IrrIMGUI::UnitTest::IIMGUIHandleMock.
|
pure virtual |
Adds a font from a compressed TTF byte array that uses the base85 character encoding to the IMGUI memory.
pCompressedTTFDataBase85 | Is a pointer to the char array. |
FontSizeInPixel | Is the desired font size to use. |
pFontConfig | Is a pointer to the font configuration. |
pGlyphRanges | Is the Glyph-Range to select the correct character set. |
Implemented in IrrIMGUI::Private::CIMGUIHandle, and IrrIMGUI::UnitTest::IIMGUIHandleMock.
|
pure virtual |
Adds a font from a compressed TTF byte array to the IMGUI memory.
pCompressedTTFData | Is a pointer to the byte array. |
CompressedTTFSize | Is the size of the array in byte. |
FontSizeInPixel | Is the desired font size to use. |
pFontConfig | Is a pointer to the font configuration. |
pGlyphRanges | Is the Glyph-Range to select the correct character set. |
Implemented in IrrIMGUI::Private::CIMGUIHandle, and IrrIMGUI::UnitTest::IIMGUIHandleMock.
|
pure virtual |
Adds a font from a TTF byte array to the IMGUI memory.
pTTFData | Is a pointer to the byte array. |
TTFSize | Is the size of the array in byte. |
FontSizeInPixel | Is the desired font size to use. |
pFontConfig | Is a pointer to the font configuration. |
pGlyphRanges | Is the Glyph-Range to select the correct character set. |
Implemented in IrrIMGUI::Private::CIMGUIHandle, and IrrIMGUI::UnitTest::IIMGUIHandleMock.
|
pure virtual |
This function copies all fonts that have been added with "addFont/addDefaultFont" into graphic memory.
Implemented in IrrIMGUI::Private::CIMGUIHandle, and IrrIMGUI::UnitTest::IIMGUIHandleMock.
|
pure virtual |
Creates a GUI texture object out of an Irrlicht image.
pImage | Is a pointer to an Irrlicht image object. |
Implemented in IrrIMGUI::Private::CIMGUIHandle, and IrrIMGUI::UnitTest::IIMGUIHandleMock.
|
pure virtual |
Creates a GUI texture object out of an Irrlicht texture.
pTexture | Is a pointer to an Irrlicht texture object. |
Implemented in IrrIMGUI::Private::CIMGUIHandle, and IrrIMGUI::UnitTest::IIMGUIHandleMock.
|
pure virtual |
Deletes an texture from graphic memory.
pGUITexture | Is a pointer to the texture to delete. Do not use it afterwards! |
Implemented in IrrIMGUI::UnitTest::IIMGUIHandleMock, and IrrIMGUI::Private::CIMGUIHandle.
|
pure virtual |
Call this function after "startGUI()" and after you draw your GUI elements. It will render all elements to the screen (do not call it before rendering the 3D Scene!).
Implemented in IrrIMGUI::Private::CIMGUIHandle, and IrrIMGUI::UnitTest::IIMGUIHandleMock.
|
pure virtual |
Implemented in IrrIMGUI::Private::CIMGUIHandle, and IrrIMGUI::UnitTest::IIMGUIHandleMock.
|
pure virtual |
Implemented in IrrIMGUI::Private::CIMGUIHandle, and IrrIMGUI::UnitTest::IIMGUIHandleMock.
|
pure virtual |
Implemented in IrrIMGUI::Private::CIMGUIHandle, and IrrIMGUI::UnitTest::IIMGUIHandleMock.
|
pure virtual |
Implemented in IrrIMGUI::Private::CIMGUIHandle, and IrrIMGUI::UnitTest::IIMGUIHandleMock.
|
pure virtual |
Implemented in IrrIMGUI::Private::CIMGUIHandle, and IrrIMGUI::UnitTest::IIMGUIHandleMock.
|
pure virtual |
Resets the font memory and restores the default font as the one and only font in the system.
Implemented in IrrIMGUI::Private::CIMGUIHandle, and IrrIMGUI::UnitTest::IIMGUIHandleMock.
|
pure virtual |
rSettings | is a reference to a Setting structure that should be applied. |
Implemented in IrrIMGUI::Private::CIMGUIHandle, and IrrIMGUI::UnitTest::IIMGUIHandleMock.
|
pure virtual |
Call this methods before you draw the IMGUI elements and before calling "drawAll()".
Implemented in IrrIMGUI::Private::CIMGUIHandle, and IrrIMGUI::UnitTest::IIMGUIHandleMock.
|
pure virtual |
Updates a GUI texture object with an Irrlicht image.
pGUITexture | Is a pointer to the GUI texture object. |
pImage | Is a pointer to an Irrlicht image object. |
Implemented in IrrIMGUI::Private::CIMGUIHandle, and IrrIMGUI::UnitTest::IIMGUIHandleMock.
|
pure virtual |
Updates a GUI texture object with an Irrlicht texture.
pGUITexture | Is a pointer to the GUI texture object. |
pTexture | Is a pointer to an Irrlicht image object. |
Implemented in IrrIMGUI::UnitTest::IIMGUIHandleMock, and IrrIMGUI::Private::CIMGUIHandle.