IrrIMGUI
0.3.1
|
#include <IIMGUIHandleMock.h>
Public Member Functions | |
IIMGUIHandle methods that are mocked | |
IIMGUIHandleMock (irr::IrrlichtDevice *const pDevice, IrrIMGUI::CIMGUIEventStorage *const pEventStorage=nullptr, IrrIMGUI::SIMGUISettings const *const pSettings=nullptr) | |
virtual | ~IIMGUIHandleMock (void) |
virtual void | startGUI (void) |
Call this methods before you draw the IMGUI elements and before calling "drawAll()". More... | |
virtual void | drawAll (void) |
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... | |
virtual IrrIMGUI::SIMGUISettings const & | getSettings (void) const |
virtual void | setSettings (IrrIMGUI::SIMGUISettings const &rSettings) |
virtual ImFont * | addFont (ImFontConfig const *pFontConfig) |
Adds a font to the IMGUI memory. More... | |
virtual ImFont * | addDefaultFont (ImFontConfig const *pFontConfig=NULL) |
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) |
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) |
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) |
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) |
Adds a font from a compressed TTF byte array that uses the base85 character encoding to the IMGUI memory. More... | |
virtual void | compileFonts (void) |
This function copies all fonts that have been added with "addFont/addDefaultFont" into graphic memory. More... | |
virtual void | resetFonts (void) |
Resets the font memory and restores the default font as the one and only font in the system. More... | |
virtual ImWchar const * | getGlyphRangesDefault (void) |
virtual ImWchar const * | getGlyphRangesJapanese (void) |
virtual ImWchar const * | getGlyphRangesChinese (void) |
virtual ImWchar const * | getGlyphRangesCyrillic (void) |
virtual IrrIMGUI::IGUITexture * | createTexture (irr::video::IImage *pImage) |
Creates a GUI texture object out of an Irrlicht image. More... | |
virtual IrrIMGUI::IGUITexture * | createTexture (irr::video::ITexture *pTexture) |
Creates a GUI texture object out of an Irrlicht texture. More... | |
virtual void | updateTexture (IrrIMGUI::IGUITexture *pGUITexture, irr::video::IImage *pImage) |
Updates a GUI texture object with an Irrlicht image. More... | |
virtual void | updateTexture (IrrIMGUI::IGUITexture *pGUITexture, irr::video::ITexture *pTexture) |
Updates a GUI texture object with an Irrlicht texture. More... | |
virtual void | deleteTexture (IrrIMGUI::IGUITexture *pGUITexture) |
Deletes an texture from graphic memory. More... | |
Public Member Functions inherited from IrrIMGUI::IIMGUIHandle | |
virtual | ~IIMGUIHandle (void) |
Destructor. 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 |
Static Public Member Functions | |
Methods to control the behavior of the Mock. | |
static void | enableMock (void) |
static void | disableMock (void) |
static void | enableIMGUICalls (bool const Enable=true) |
static void | disableIMGUICalls (void) |
static bool | areIMGUICallsEnabled (void) |
Private Member Functions | |
ImFont * | getDummyFont (void) |
ImWchar const * | getGlyphRangesDummy (void) |
Static Private Member Functions | |
static IIMGUIHandle * | createMock (irr::IrrlichtDevice *const pDevice, IrrIMGUI::CIMGUIEventStorage *const pEventStorage=nullptr, IrrIMGUI::SIMGUISettings const *const pSettings=nullptr) |
Factory method for the mock. More... | |
static void | drawGUIList (ImDrawData *pDrawData) |
Dummy draw method. More... | |
Private Attributes | |
IrrIMGUI::SIMGUISettings | mDefaultSettings |
A dummy object for storing default settings. More... | |
irr::IrrlichtDevice *const | mpDevice |
Stores the Irrlicht device pointer. More... | |
IrrIMGUI::CIMGUIEventStorage *const | mpEventStorage |
Stores a pointer to an Event Storage. More... | |
irr::f32 | mLastTime |
Stores the last time in seconds, when an update was done. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from IrrIMGUI::IIMGUIHandle | |
IIMGUIHandle (void) | |
Forbidden Constructor. More... | |
Definition at line 53 of file IIMGUIHandleMock.h.
|
inline |
Definition at line 59 of file IIMGUIHandleMock.h.
|
inlinevirtual |
|
inlinevirtual |
Adds the default font to the IMGUI memory.
pFontConfig | Is a pointer to the font configuration. |
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 135 of file IIMGUIHandleMock.h.
|
inlinevirtual |
Adds a font to the IMGUI memory.
pFontConfig | Is a pointer to the font configuration. |
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 128 of file IIMGUIHandleMock.h.
|
inlinevirtual |
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. |
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 142 of file IIMGUIHandleMock.h.
|
inlinevirtual |
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. |
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 163 of file IIMGUIHandleMock.h.
|
inlinevirtual |
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. |
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 156 of file IIMGUIHandleMock.h.
|
inlinevirtual |
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. |
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 149 of file IIMGUIHandleMock.h.
|
inlinestatic |
|
inlinevirtual |
This function copies all fonts that have been added with "addFont/addDefaultFont" into graphic memory.
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 170 of file IIMGUIHandleMock.h.
|
inlinestaticprivate |
Factory method for the mock.
Definition at line 353 of file IIMGUIHandleMock.h.
|
inlinevirtual |
Creates a GUI texture object out of an Irrlicht image.
pImage | Is a pointer to an Irrlicht image object. |
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 247 of file IIMGUIHandleMock.h.
|
inlinevirtual |
Creates a GUI texture object out of an Irrlicht texture.
pTexture | Is a pointer to an Irrlicht texture object. |
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 254 of file IIMGUIHandleMock.h.
|
inlinevirtual |
Deletes an texture from graphic memory.
pGUITexture | Is a pointer to the texture to delete. Do not use it afterwards! |
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 275 of file IIMGUIHandleMock.h.
|
inlinestatic |
|
inlinestatic |
|
inlinevirtual |
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!).
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 100 of file IIMGUIHandleMock.h.
|
inlinestaticprivate |
Dummy draw method.
Definition at line 359 of file IIMGUIHandleMock.h.
|
inlinestatic |
|
inlinestatic |
|
inlineprivate |
Definition at line 331 of file IIMGUIHandleMock.h.
|
inlinevirtual |
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 221 of file IIMGUIHandleMock.h.
|
inlinevirtual |
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 234 of file IIMGUIHandleMock.h.
|
inlinevirtual |
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 195 of file IIMGUIHandleMock.h.
|
inlineprivate |
Definition at line 343 of file IIMGUIHandleMock.h.
|
inlinevirtual |
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 208 of file IIMGUIHandleMock.h.
|
inlinevirtual |
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 112 of file IIMGUIHandleMock.h.
|
inlinevirtual |
Resets the font memory and restores the default font as the one and only font in the system.
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 182 of file IIMGUIHandleMock.h.
|
inlinevirtual |
rSettings | is a reference to a Setting structure that should be applied. |
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 120 of file IIMGUIHandleMock.h.
|
inlinevirtual |
Call this methods before you draw the IMGUI elements and before calling "drawAll()".
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 87 of file IIMGUIHandleMock.h.
|
inlinevirtual |
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. |
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 261 of file IIMGUIHandleMock.h.
|
inlinevirtual |
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. |
Implements IrrIMGUI::IIMGUIHandle.
Definition at line 268 of file IIMGUIHandleMock.h.
|
private |
A dummy object for storing default settings.
Definition at line 319 of file IIMGUIHandleMock.h.
|
private |
Stores the last time in seconds, when an update was done.
Definition at line 328 of file IIMGUIHandleMock.h.
|
private |
Stores the Irrlicht device pointer.
Definition at line 322 of file IIMGUIHandleMock.h.
|
private |
Stores a pointer to an Event Storage.
Definition at line 325 of file IIMGUIHandleMock.h.