struct EE::UI::UIMarkdownView::LinkOpenEvent

Emitted for every link before default handling. Accept to implement a custom flow. request.uri is resolved against this view’s document, and target includes click modifiers.

#include <uimarkdownview.hpp>

struct LinkOpenEvent: public EE::Scene::Event {
    // fields

    NavigationRequest request;
    bool handled { false };

    // construction

    LinkOpenEvent(Node* node, NavigationRequest request);

    // methods

    void accept() const;
};

Inherited Members

public:
    // enums

    enum EventType;

    // methods

    Node* getNode() const;
    const Uint32& getType() const;
    const Uint32& getCallbackId() const;
    const MouseEvent* asMouseEvent() const;
    const MouseWheelEvent* asMouseWheelEvent() const;
    const KeyEvent* asKeyEvent() const;
    const DropEvent* asDropEvent() const;
    const TextEvent* asTextEvent() const;
    const TextInputEvent* asTextInputEvent() const;
    const WindowEvent* asWindowEvent() const;
    const ItemValueEvent* asItemValueEvent() const;
    const RowCreatedEvent* asRowCreatedEvent() const;
    const FocusEvent* asFocusEvent() const;
    const ChildCountChangedEvent* asChildCountChangedEvent() const;