API Documentation
Loading...
Searching...
No Matches
PopupInfo.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <QRect>
4#include <functional>
5#include <qnamespace.h>
6class QWidget;
7namespace NDEVR
8{
9 struct PopupInfo
10 {
12 {}
13 PopupInfo(const QRect& rect)
14 : rect(rect)
15 {}
17 QRect rect;
18 std::function<void()> finished_callback;
19 QWidget* widget = nullptr;
20 QWidget* parent_widget = nullptr;
21 Qt::WindowModality modality = Qt::WindowModality::NonModal;
22 bool fullscreen = false;
23 bool request_margins = false;
24 bool closable = false;
25 bool hideable = false;
27 bool windowable = false;
28 bool request_dock = false;
29 bool is_popup_menu = false;
31 bool delete_on_hide = false;
33
34 };
35}
#define NDEVR_WIDGETS_API
Definition DLLInfo.h:81
Definition ACIColor.h:37
Definition PopupInfo.h:10
std::function< void()> finished_callback
Definition PopupInfo.h:18
bool is_popup_menu
Definition PopupInfo.h:29
bool allow_title_autohide
Definition PopupInfo.h:26
QWidget * widget
Definition PopupInfo.h:19
bool fullscreen
Definition PopupInfo.h:22
bool make_call_widget_dialog
Definition PopupInfo.h:30
PopupInfo()
Definition PopupInfo.h:11
QWidget * parent_widget
Definition PopupInfo.h:20
bool closable
Definition PopupInfo.h:24
PopupInfo(const QRect &rect)
Definition PopupInfo.h:13
QRect rect
Definition PopupInfo.h:17
bool request_dock
Definition PopupInfo.h:28
bool hideable
Definition PopupInfo.h:25
bool windowable
Definition PopupInfo.h:27
bool delete_on_hide
Definition PopupInfo.h:31
int animation_speed
Definition PopupInfo.h:32
Qt::WindowModality modality
Definition PopupInfo.h:21
bool request_margins
Definition PopupInfo.h:23