MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / GetMarginCursor

Method GetMarginCursor

scintilla/src/Editor.cxx:6336–6346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6334}
6335
6336Window::Cursor Editor::GetMarginCursor ( Point pt )
6337{
6338 int x = 0;
6339 for ( int margin = 0; margin <= SC_MAX_MARGIN; margin++ ) {
6340 if ( ( pt.x >= x ) && ( pt.x < x + vs.ms[margin].width ) ) {
6341 return static_cast<Window::Cursor> ( vs.ms[margin].cursor );
6342 }
6343 x += vs.ms[margin].width;
6344 }
6345 return Window::cursorReverseArrow;
6346}
6347
6348void Editor::TrimAndSetSelection ( int currentPos_, int anchor_ )
6349{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected