Go to the documentation of this file.
25 #ifndef CGU_APPLICATION_H
26 #define CGU_APPLICATION_H
46 #if defined(DOXYGEN_PARSING) || defined(CGU_USE_GTK)
47 #if defined(DOXYGEN_PARSING) || GTK_CHECK_VERSION(2,99,0)
55 virtual const char*
what()
const throw() {
return "ApplicationNameError\n";}
412 std::list<WinBase*> win_list;
628 int run(
int argc,
char** argv) {
629 return g_application_run((GApplication*)app.
get(), argc, argv);
733 #endif // GTK_CHECK_VERSION
734 #endif // CGU_USE_GTK
738 #endif // CGU_APPLICATION_H
Cgu::SafeEmitterArg< Cgu::Application *, GApplicationCommandLine *, gint & > command_line
Definition: application.h:497
This is a class for managing the lifetime of top level widgets.
Definition: window.h:230
Definition: application.h:44
Application(const Application &)=delete
bool remove(Cgu::WinBase *win)
This class is thrown when the program id name passed to the constructor of Cgu::Application is invali...
Definition: application.h:54
~Application()
Definition: application.h:726
Cgu::SafeEmitterArg< Cgu::Application *, std::pair< GFile **, gint >, gchar * > open
Definition: application.h:524
This is a class for constructing and managing GtkApplication objects.
Definition: application.h:410
virtual const char * what() const
Definition: application.h:55
void add(Cgu::WinBase *win)
Cgu::SafeEmitterArg< Cgu::Application * > startup
Definition: application.h:463
std::list< Cgu::WinBase * > get_windows() const
Definition: application.h:660
Application(const char *prog_name, GApplicationFlags flags)
#define CGU_GLIB_MEMORY_SLICES_FUNCS
Definition: cgu_config.h:84
size_type get_win_count() const
Definition: application.h:685
std::list< WinBase * >::size_type size_type
Definition: application.h:418
GApplication * get_g_app() const
Definition: application.h:643
int run(int argc, char **argv)
Definition: application.h:628
This file provides a thread-safe signal/slot mechanism, with automatic disconnection.
Application & operator=(const Application &)=delete
Cgu::SafeEmitterArg< Cgu::Application * > activate
Definition: application.h:443
T * get() const noexcept
Definition: gobj_handle.h:292