#include <cursor_manager.h>
Public Member Functions | |
| CursorManager (ZVision *engine, const Graphics::PixelFormat &pixelFormat) | |
| void | initialize () |
| void | changeCursor (int id) |
| int | getCursorId (const Common::String &name) |
| void | setItemID (int id) |
| void | cursorDown (bool pushed) |
| void | showMouse (bool vis) |
Class to manage cursor changes. The actual changes have to be done through CursorMan. Otherwise the cursor will disappear after GMM or debug console. TODO: Figure out a way to get rid of the extraneous data copying due to having to use CursorMan
| void ZVision::CursorManager::initialize | ( | ) |
Creates the idle cursor and shows it
| void ZVision::CursorManager::changeCursor | ( | int | id | ) |
Change cursor to specified cursor ID. If item setted to not 0 and cursor id idle/acrive/handpu change cursor to item.
| id | Wanted cursor id. |
| int ZVision::CursorManager::getCursorId | ( | const Common::String & | name | ) |
Return founded id for string contains cursor name
| name | Cursor name |
| void ZVision::CursorManager::setItemID | ( | int | id | ) |
Load cursor for item by id, and try to change cursor to item cursor if it's not 0
| id | Item id or 0 for no item cursor |
| void ZVision::CursorManager::cursorDown | ( | bool | pushed | ) |
Change the cursor to a certain push state. If the cursor is already in the specified push state, nothing will happen.
| pushed | Should the cursor be pushed (true) or not pushed (false) (Another way to say it: down or up) |
| void ZVision::CursorManager::showMouse | ( | bool | vis | ) |
Show or hide mouse cursor.
| vis | Should the cursor be showed (true) or hide (false) |