Btk
msgbox.hpp
1 #if !defined(_BTK_MESSAGEBOX_HPP_)
2 #define _BTK_MESSAGEBOX_HPP_
3 #include "../defs.hpp"
4 #include "../signal/signal.hpp"
5 #include "../window.hpp"
6 #include <string_view>
7 namespace Btk{
8  struct MessageBoxImpl;
9  class BTKAPI MessageBox{
10  public:
12  enum Flag:int{
13  Info,//Information
14  Warn,//Warning
15  Error,//Error
16  };
24  MessageBox(std::string_view title = {},
25  std::string_view txt = {},
26  Flag flags = Info);
27  MessageBox(const MessageBox &);
28  ~MessageBox();
29 
30  SignalAsync &sig_async();
31  void set_title(std::string_view title);
32  void set_message(std::string_view message);
33  void set_flag(Flag flag);
34  bool show(bool focus_async = false);
35  private:
36  MessageBoxImpl *pimpl;
37  };
38 }
39 
40 
41 #endif // _BTK_MESSAGEBOX_HPP_
This header include many useful containers.
Definition: async.hpp:7
Definition: impl.hpp:44
Definition: msgbox.hpp:9