#include <NaviManager.h>
Public Member Functions | |
| NaviManager (Ogre::RenderWindow *_renderWindow, const std::string &localNaviDirectory="NaviLocal", const std::string &geckoRuntimeDirectory="GeckoRuntime") | |
| ~NaviManager () | |
| void | Update () |
| Navi * | createNavi (const std::string &naviName, const std::string &homepage, const NaviPosition &naviPosition, unsigned short width, unsigned short height, unsigned short zOrder=0) |
| Navi * | createNaviMaterial (const std::string &naviName, const std::string &homepage, unsigned short width, unsigned short height, Ogre::FilterOptions texFiltering=Ogre::FO_ANISOTROPIC) |
| Navi * | getNavi (const std::string &naviName) |
| void | destroyNavi (const std::string &naviName) |
| void | destroyNavi (Navi *naviToDestroy) |
| void | resetAllPositions () |
| void | setProxy (bool isEnabled, const std::string &host, int port) |
| void | setBooleanPref (const std::string &prefName, bool value) |
| void | setIntegerPref (const std::string &prefName, int value) |
| void | setStringPref (const std::string &prefName, const std::string &value) |
| bool | isAnyNaviFocused () |
| Navi * | getFocusedNavi () |
| bool | injectMouseMove (int xPos, int yPos) |
| bool | injectMouseWheel (int relScroll) |
| bool | injectMouseDown (int buttonID) |
| bool | injectMouseUp (int buttonID) |
| void | deFocusAllNavis () |
Static Public Member Functions | |
| static NaviManager & | Get () |
| static NaviManager * | GetPointer () |
The class you will need to go to for all your Navi-related needs.
| NaviManager::NaviManager | ( | Ogre::RenderWindow * | _renderWindow, | |
| const std::string & | localNaviDirectory = "NaviLocal", |
|||
| const std::string & | geckoRuntimeDirectory = "GeckoRuntime" | |||
| ) |
Creates the NaviManager and loads the internal LLMozLib library.
| renderWindow | The Ogre::RenderWindow to render Navis to | |
| localNaviDirectory | The directory that will be referred to when using the "local://" specifier. Default is "NaviLocal". | |
| geckoRuntimeDirectory | The directory that contains the Gecko runtime folders: chrome, components, greprefs, plugins, and res. Default is "GeckoRuntime". |
"..\\..\\SomeFolder"
| Ogre::Exception::ERR_INTERNAL_ERROR | Throws this when LLMozLib fails initialization |
| NaviManager::~NaviManager | ( | ) |
Destroys any active Navis, the NaviMouse singleton (if instantiated), and shuts down LLMozLib.
| NaviManager & NaviManager::Get | ( | ) | [static] |
Gets the NaviManager Singleton.
| Ogre::Exception::ERR_RT_ASSERTION_FAILED | Throws this if NaviManager has not been instantiated yet. |
| NaviManager * NaviManager::GetPointer | ( | ) | [static] |
Gets the NaviManager Singleton as a pointer.
| void NaviManager::Update | ( | ) |
Gives each active Navi a chance to update, each may or may not update their internal textures based on various conditions.
| Navi * NaviManager::createNavi | ( | const std::string & | naviName, | |
| const std::string & | homepage, | |||
| const NaviPosition & | naviPosition, | |||
| unsigned short | width, | |||
| unsigned short | height, | |||
| unsigned short | zOrder = 0 | |||
| ) |
Creates a Navi.
| naviName | The name of the Navi, used to refer to a specific Navi in subsequent calls. | |
| homepage | The default starting page for a Navi. You may use local:// here to refer to the local Navi directory (See NaviManager::Startup) | |
| naviPosition | The unified position (either relative or absolute) of a Navi. See NaviManager::NaviPosition for more information. | |
| width | The width of the Navi. | |
| height | The height of the Navi. | |
| zOrder | Sets the starting Z-Order for this Navi; Navis with higher Z-Orders will be on top of other Navis. To auto-increment this value for every successive Navi, leave this parameter as '0'. |
| Ogre::Exception::ERR_RT_ASSERTION_FAILED | Throws this if a Navi by the same name already exists. |
| Navi * NaviManager::createNaviMaterial | ( | const std::string & | naviName, | |
| const std::string & | homepage, | |||
| unsigned short | width, | |||
| unsigned short | height, | |||
| Ogre::FilterOptions | texFiltering = Ogre::FO_ANISOTROPIC | |||
| ) |
Creates a NaviMaterial. NaviMaterials are just like Navis except that they lack a movable overlay element. Instead, you handle the material and apply it to anything you like. Mouse input for NaviMaterials should be injected via the Navi::injectMouse_____ API calls instead of the global NaviManager::injectMouse_____ calls.
| naviName | The name of the NaviMaterial, used to refer to this specific Navi in subsequent calls. | |
| homepage | The default starting page for a Navi. You may use local:// here to refer to the local Navi directory (See NaviManager::Startup) | |
| width | The width of the NaviMaterial. | |
| height | The height of the NaviMaterial. | |
| texFiltering | The texture filtering to use for this material. (see Ogre::FilterOptions) If the NaviMaterial is applied to a 3D object, FO_ANISOTROPIC is the best (and default) choice, otherwise set this to FO_NONE for use in other overlays/GUI elements. |
| Ogre::Exception::ERR_RT_ASSERTION_FAILED | Throws this if a Navi by the same name already exists. |
| Navi * NaviManager::getNavi | ( | const std::string & | naviName | ) |
| void NaviManager::destroyNavi | ( | const std::string & | naviName | ) |
| void NaviManager::destroyNavi | ( | Navi * | naviToDestroy | ) |
| void NaviManager::resetAllPositions | ( | ) |
Resets the positions of all Navis to their default positions. (not applicable to NaviMaterials)
| void NaviManager::setProxy | ( | bool | isEnabled, | |
| const std::string & | host, | |||
| int | port | |||
| ) |
Configures the network proxy settings for all Navis.
| isEnabled | Whether or not the network proxy should be enabled. | |
| host | The hostname or IP address of the proxy server. | |
| port | The port of the proxy server. |
| void NaviManager::setBooleanPref | ( | const std::string & | prefName, | |
| bool | value | |||
| ) |
Sets a global Mozilla preference with a boolean value. For more info: http://preferential.mozdev.org/preferences.html
| prefName | the name of the preference | |
| value | the value of the preference |
| void NaviManager::setIntegerPref | ( | const std::string & | prefName, | |
| int | value | |||
| ) |
Sets a global Mozilla preference with an integer value. For more info: http://preferential.mozdev.org/preferences.html
| prefName | the name of the preference | |
| value | the value of the preference |
| void NaviManager::setStringPref | ( | const std::string & | prefName, | |
| const std::string & | value | |||
| ) |
Sets a global Mozilla preference with a string value. For more info: http://preferential.mozdev.org/preferences.html
| prefName | the name of the preference | |
| value | the value of the preference |
| bool NaviManager::isAnyNaviFocused | ( | ) |
| Navi * NaviManager::getFocusedNavi | ( | ) |
| bool NaviManager::injectMouseMove | ( | int | xPos, | |
| int | yPos | |||
| ) |
Injects the mouse's current position into NaviManager. Used to generally keep track of where the mouse is for things like moving Navis around, telling the internal pages of each Navi where the mouse is and where the user has clicked, etc. (not applicable to NaviMaterials)
| xPos | The current X-coordinate of the mouse. | |
| yPos | The current Y-coordinate of the mouse. |
| bool NaviManager::injectMouseWheel | ( | int | relScroll | ) |
Injects mouse wheel events into NaviManager. Used to scroll the focused Navi. (not applicable to NaviMaterials)
| relScroll | The relative Scroll-Value of the mouse. |
| bool NaviManager::injectMouseDown | ( | int | buttonID | ) |
Injects mouse down events into NaviManager. Used to know when the user has pressed a mouse button and which button they used. (not applicable to NaviMaterials)
| buttonID | The ID of the button that was pressed. Left = 0, Right = 1, Middle = 2. |
| bool NaviManager::injectMouseUp | ( | int | buttonID | ) |
Injects mouse up events into NaviManager. Used to know when the user has released a mouse button and which button they used. (not applicable to NaviMaterials)
| buttonID | The ID of the button that was released. Left = 0, Right = 1, Middle = 2. |
| void NaviManager::deFocusAllNavis | ( | ) |
De-Focuses any currently-focused Navis. This would be useful if you need to disable any auto-key-injection (and subsequent display in a focused textbox of a focused Navi) done internally by Gecko.
1.5.3