| 106 | } |
| 107 | |
| 108 | std::optional<POINT> NppInterface::get_mouse_cursor_pos() const { |
| 109 | POINT p; |
| 110 | if (GetCursorPos(&p) == FALSE) |
| 111 | return std::nullopt; |
| 112 | |
| 113 | return p; |
| 114 | } |
| 115 | |
| 116 | bool NppInterface::open_document(std::wstring filename) { return send_msg_to_npp(NPPM_DOOPEN, 0, reinterpret_cast<LPARAM>(filename.data())) == TRUE; } |
| 117 |
no outgoing calls
no test coverage detected