1.10
Public Member Functions | Protected Member Functions | List of all members
PopupType< T > Class Template Reference

Popup window. More...

#include <popup.h>

Inheritance diagram for PopupType< T >:
Inheritance graph
[legend]

Public Member Functions

 PopupType (const Size &size={}, const Point &point={}) noexcept
 
 PopupType (Serializer::Properties &props) noexcept
 
void hide () override
 Hide the Widget.
 
void show () override
 Show the Widget.
 
virtual void show_centered ()
 Show the window centered.
 
virtual void show_modal (bool center=false)
 Show the window in modal mode.
 

Protected Member Functions

 PopupType (Serializer::Properties &props, bool is_derived) noexcept
 

Detailed Description

template<class T>
class egt::v1::PopupType< T >

Popup window.

This is a utility class that manages a popup window with extra features like automatic centering and modal mode.

Constructor & Destructor Documentation

◆ PopupType() [1/3]

template<class T >
PopupType ( const Size size = {},
const Point point = {} 
)
inlineexplicitnoexcept
Parameters
sizeThe size of the Window.
pointThe origin point of the window.

◆ PopupType() [2/3]

template<class T >
PopupType ( Serializer::Properties props)
inlineexplicitnoexcept

◆ PopupType() [3/3]

template<class T >
PopupType ( Serializer::Properties props,
bool  is_derived 
)
inlineexplicitprotectednoexcept

Member Function Documentation

◆ hide()

template<class T >
void hide ( )
inlineoverride

Hide the Widget.

A widget that is not visible will receive no draw() calls.

This changes the visible() state of the Widget.

◆ show()

template<class T >
void show ( )
inlineoverride

Show the Widget.

Always move the widget to the top.

◆ show_centered()

template<class T >
virtual void show_centered ( )
inlinevirtual

Show the window centered.

Position the window the center of its parent, or if it has no parent, the screen.

Reimplemented in FileDialog, and FileSaveDialog.

◆ show_modal()

template<class T >
virtual void show_modal ( bool  center = false)
inlinevirtual

Show the window in modal mode.

This means it will explicitly steal all input events as long as it is visible.