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>
6
class
QWidget;
7
namespace
NDEVR
8
{
9
struct
PopupInfo
10
{
11
PopupInfo
()
12
{}
13
PopupInfo
(
const
QRect&
rect
)
14
:
rect
(
rect
)
15
{}
16
NDEVR_WIDGETS_API
PopupInfo
(QWidget*
widget
);
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
;
26
bool
allow_title_autohide
=
false
;
27
bool
windowable
=
false
;
28
bool
request_dock
=
false
;
29
bool
is_popup_menu
=
false
;
30
bool
make_call_widget_dialog
=
false
;
31
bool
delete_on_hide
=
false
;
32
int
animation_speed
= -1;
33
34
};
35
}
DLLInfo.h
NDEVR_WIDGETS_API
#define NDEVR_WIDGETS_API
Definition
DLLInfo.h:81
NDEVR
Definition
ACIColor.h:37
NDEVR::PopupInfo
Definition
PopupInfo.h:10
NDEVR::PopupInfo::finished_callback
std::function< void()> finished_callback
Definition
PopupInfo.h:18
NDEVR::PopupInfo::is_popup_menu
bool is_popup_menu
Definition
PopupInfo.h:29
NDEVR::PopupInfo::allow_title_autohide
bool allow_title_autohide
Definition
PopupInfo.h:26
NDEVR::PopupInfo::widget
QWidget * widget
Definition
PopupInfo.h:19
NDEVR::PopupInfo::fullscreen
bool fullscreen
Definition
PopupInfo.h:22
NDEVR::PopupInfo::make_call_widget_dialog
bool make_call_widget_dialog
Definition
PopupInfo.h:30
NDEVR::PopupInfo::PopupInfo
PopupInfo()
Definition
PopupInfo.h:11
NDEVR::PopupInfo::parent_widget
QWidget * parent_widget
Definition
PopupInfo.h:20
NDEVR::PopupInfo::closable
bool closable
Definition
PopupInfo.h:24
NDEVR::PopupInfo::PopupInfo
PopupInfo(const QRect &rect)
Definition
PopupInfo.h:13
NDEVR::PopupInfo::rect
QRect rect
Definition
PopupInfo.h:17
NDEVR::PopupInfo::request_dock
bool request_dock
Definition
PopupInfo.h:28
NDEVR::PopupInfo::hideable
bool hideable
Definition
PopupInfo.h:25
NDEVR::PopupInfo::windowable
bool windowable
Definition
PopupInfo.h:27
NDEVR::PopupInfo::delete_on_hide
bool delete_on_hide
Definition
PopupInfo.h:31
NDEVR::PopupInfo::animation_speed
int animation_speed
Definition
PopupInfo.h:32
NDEVR::PopupInfo::modality
Qt::WindowModality modality
Definition
PopupInfo.h:21
NDEVR::PopupInfo::request_margins
bool request_margins
Definition
PopupInfo.h:23
Widgets
Headers
PopupInfo.h