GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
gui_framework::interfaces::ICloseable Class Reference

#include <ICloseable.h>

Inheritance diagram for gui_framework::interfaces::ICloseable:
gui_framework::BaseDialogBox gui_framework::BaseSeparateWindow gui_framework::DialogBox gui_framework::BaseMainWindow gui_framework::SeparateWindow

Public Member Functions

 ICloseable (HWND closeableHandle)
 
bool close (int exitCode)
 
virtual void setOnClose (const std::function< bool()> &onClose) final
 
virtual void setOnClose (const std::string &onCloseFunctionName, const std::string &onCloseFunctionModuleName) final
 Load function from module. Can be seriazlied.
 
virtual const std::function< bool()> & getOnClose () const final
 
virtual ~ICloseable ()=default
 

Protected Attributes

HWND closeableHandle
 
std::function< bool()> onClose
 
std::string onCloseFunctionName
 
std::string onCloseFunctionModuleName
 

Detailed Description

Definition at line 9 of file ICloseable.h.

Constructor & Destructor Documentation

◆ ICloseable()

gui_framework::interfaces::ICloseable::ICloseable ( HWND closeableHandle)

Definition at line 13 of file ICloseable.cpp.

◆ ~ICloseable()

virtual gui_framework::interfaces::ICloseable::~ICloseable ( )
virtualdefault

Member Function Documentation

◆ close()

bool gui_framework::interfaces::ICloseable::close ( int exitCode)

Definition at line 20 of file ICloseable.cpp.

◆ getOnClose()

const function< bool()> & gui_framework::interfaces::ICloseable::getOnClose ( ) const
finalvirtual

Definition at line 53 of file ICloseable.cpp.

◆ setOnClose() [1/2]

virtual void gui_framework::interfaces::ICloseable::setOnClose ( const std::function< bool()> & onClose)
finalvirtual

◆ setOnClose() [2/2]

virtual void gui_framework::interfaces::ICloseable::setOnClose ( const std::string & onCloseFunctionName,
const std::string & onCloseFunctionModuleName )
finalvirtual

Load function from module. Can be seriazlied.

Parameters
onCloseFunctionName
onCloseFunctionModuleName
Exceptions
CantFindFunctionFromModuleException
std::out_of_rangeCan't find moduleName in loaded modules

Member Data Documentation

◆ closeableHandle

HWND gui_framework::interfaces::ICloseable::closeableHandle
protected

Definition at line 12 of file ICloseable.h.

◆ onClose

std::function<bool()> gui_framework::interfaces::ICloseable::onClose
protected

Definition at line 13 of file ICloseable.h.

◆ onCloseFunctionModuleName

std::string gui_framework::interfaces::ICloseable::onCloseFunctionModuleName
protected

Definition at line 15 of file ICloseable.h.

◆ onCloseFunctionName

std::string gui_framework::interfaces::ICloseable::onCloseFunctionName
protected

Definition at line 14 of file ICloseable.h.


The documentation for this class was generated from the following files: