MCPcopy Create free account
hub / github.com/SpartanJ/eepp / updateMouseCursor

Method updateMouseCursor

src/eepp/ui/uicodeeditor.cpp:5596–5605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5594}
5595
5596void UICodeEditor::updateMouseCursor( const Vector2f& position ) {
5597 if ( getScreenBounds().contains( position ) ) {
5598 auto localPos( convertToNodeSpace( position ) );
5599 bool overGutterOrTop =
5600 localPos.x < mPaddingPx.Left + getGutterWidth() || localPos.y < mPluginsTopSpace;
5601 getUISceneNode()->setCursor(
5602 mHandShown ? Cursor::Hand
5603 : ( !overGutterOrTop && !mLocked ? Cursor::IBeam : Cursor::Arrow ) );
5604 }
5605}
5606
5607void UICodeEditor::setTabIndentCharacter( Uint32 chr ) {
5608 if ( mTabIndentCharacter != chr ) {

Callers 2

onMouseMoveMethod · 0.80
resetSuggestionsMethod · 0.80

Calls 2

containsMethod · 0.45
setCursorMethod · 0.45

Tested by

no test coverage detected