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

Method registerGutterSpace

src/eepp/ui/uicodeeditor.cpp:3415–3426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3413}
3414
3415bool UICodeEditor::registerGutterSpace( UICodeEditorPlugin* plugin, const Float& pixels,
3416 int order ) {
3417 if ( gutterSpaceExists( plugin ) )
3418 return false;
3419 mPluginGutterSpaces.push_back( { plugin, pixels, order } );
3420 mPluginsGutterSpace += pixels;
3421 std::sort( mPluginGutterSpaces.begin(), mPluginGutterSpaces.end(),
3422 []( const PluginRequestedSpace& left, const PluginRequestedSpace& right ) {
3423 return left.order < right.order;
3424 } );
3425 return true;
3426}
3427
3428bool UICodeEditor::unregisterGutterSpace( UICodeEditorPlugin* plugin ) {
3429 for ( size_t i = 0; i < mPluginGutterSpaces.size(); ++i ) {

Callers 2

onRegisterEditorMethod · 0.80
onRegisterMethod · 0.80

Calls 4

sortFunction · 0.85
push_backMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected