Popup
Defined in : <DataMorph/popup.h>
class dm::Popup;This class represents a Popup, which is a Window with some special behaviors.
Overview
Popup is meant to be inherited from by the plugin developer. It is responsible for rendering a named frame which can be customized using ImGui. Note that there’s no need to call ImGui::BeginPopup and ImGui::EndPopup. The function that must be overriden is OnRender. In its core, this class is actually just a C++ wrapper around the internal C API.
Though it can be pushed in the windows stack, it is not recommended to do so. Popups should be pushed in the popups stack.
Namespace : dm
Inherits from : dm::Window
Members
| Constructors and assignments | |
|---|---|
| (constructor) | Constructs the Window object |
| Getters | |
|---|---|
IsModal | Returns whether the Popup is modal |
| Setters and state control | |
|---|---|
SetModal | Sets whether the Popup should be modal |
| Inherited abstract methods | |
|---|---|
IWindow::OnRender | Renders the window content |