-------------------------------------------------------------------------------------- Description: Check if the cursor is valid, i.e. was successfully created. Return Value: true If the cursor has image false Otherwise --------------------------------------------------------------------------------------
| 53 | // false Otherwise |
| 54 | // -------------------------------------------------------------------------------------- |
| 55 | bool Tr2MouseCursor::IsValid() const |
| 56 | { |
| 57 | #ifdef _WIN32 |
| 58 | return m_cursor != nullptr; |
| 59 | #elif __APPLE__ |
| 60 | return m_cursor != 0; |
| 61 | #else |
| 62 | return false; |
| 63 | #endif |
| 64 | } |
| 65 | |
| 66 | // -------------------------------------------------------------------------------------- |
| 67 | // Description: |
no outgoing calls
no test coverage detected