MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / get_mouse_cursor_pos

Method get_mouse_cursor_pos

src/npp/NppInterface.cpp:108–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108std::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
116bool NppInterface::open_document(std::wstring filename) { return send_msg_to_npp(NPPM_DOOPEN, 0, reinterpret_cast<LPARAM>(filename.data())) == TRUE; }
117

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected