class EE::UI::UICommandBinding

Overview

Scoped synchronization of a command with one widget endpoint. More…

#include <uicommand.hpp>

class UICommandBinding {
public:
    // structs

    struct BindingState;

    // construction

    UICommandBinding();
    UICommandBinding(UICommand& command, UIWidget& widget);
    UICommandBinding(const UICommandBinding&);
    UICommandBinding(UICommandBinding&&);

    // methods

    UICommandBinding& operator=(const UICommandBinding&);
    UICommandBinding& operator=(UICommandBinding&&);
};

Detailed Documentation

Scoped synchronization of a command with one widget endpoint.

Construction

UICommandBinding(UICommand& command, UIWidget& widget)

Binds widget clicks and enabled state to command.

Keep this object alive while the endpoint should remain active. The widget is not retained.