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

Method UIAnchor

src/eepp/ui/uitextview.cpp:986–993  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

984}
985
986UIAnchor::UIAnchor( const std::string& tag ) : UITextView( tag ) {
987 onClick(
988 [this]( const MouseEvent* ) {
989 if ( !mHref.empty() )
990 getUISceneNode()->openURL( mHref );
991 },
992 EE_BUTTON_LEFT );
993}
994
995bool UIAnchor::applyProperty( const StyleSheetProperty& attribute ) {
996 if ( !checkPropertyDefinition( attribute ) )

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.45
openURLMethod · 0.45

Tested by

no test coverage detected