class MAGES::Editor::PopupPanel

Overview

A panel that can be instantiated inside a custom editor as a popup. More…

class PopupPanel: public VisualElement
{
public:
    // classes

    class UxmlFactory;

    // properties

    CloseRequestedEventHandler CloseRequested;
    string Title;
    VisualElement Content;
    override VisualElement contentContainer;

    // methods

    PopupPanel();
    delegate bool CloseRequestedEventHandler();
};

Detailed Documentation

A panel that can be instantiated inside a custom editor as a popup.

Properties

CloseRequestedEventHandler CloseRequested

Invoked when the panel is requested to be closed.

string Title

Gets or sets the title of the panel.

VisualElement Content

Gets the content container.

override VisualElement contentContainer

Gets the content container.

Methods

PopupPanel()

Initializes a new instance of the PopupPanel class.

delegate bool CloseRequestedEventHandler()

Invoked when the panel is requested to be closed.

Returns:

Whether (or not) the panel can be closed.