23#include <boost/program_options.hpp>
42 class event_processing_context;
57 virtual const boost::program_options::variables_map&
options()
const = 0;
64 virtual bool nest()
const = 0;
78 virtual std::string
const&
name()
const = 0;
79 virtual void set_name(std::string
const& aName) = 0;
80 virtual int exec(
bool aQuitWhenLastWindowClosed =
true) = 0;
82 virtual void quit(
int aResultCode) = 0;
130 static uuid const&
iid() {
static uuid const sIid{ 0xa8bd88d7, 0xbd19, 0x4501, 0xb199, { 0x84, 0x84, 0x55, 0xfc, 0x80, 0x45 } };
return sIid; }
virtual i_action & add_action(i_action &aAction)=0
virtual i_help & help() const =0
virtual void remove_action(i_action &aAction)=0
virtual i_action & action_copy()=0
virtual i_action & action_file_exit()=0
virtual void set_name(std::string const &aName)=0
virtual i_style & register_style(const i_style &aStyle)=0
virtual const i_program_options & program_options() const =0
virtual i_menu & add_standard_menu(i_menu &aParentMenu, standard_menu aStandardMenu)=0
virtual i_style & current_style()=0
virtual i_style & change_style(std::string const &aStyleName)=0
virtual i_action & action_cut()=0
virtual i_action & action_file_new()=0
virtual i_action & action_file_close()=0
virtual i_action & add_action(i_string const &aText, i_string const &aImageUri, dimension aDpiScaleFactor=1.0, texture_sampling aSampling=texture_sampling::Normal)=0
virtual i_action & add_action(i_string const &aText, const i_texture &aImage)=0
virtual int exec(bool aQuitWhenLastWindowClosed=true)=0
virtual i_action & action_paste()=0
virtual bool process_events(i_event_processing_context &aContext)=0
virtual bool process_events()=0
virtual i_action & action_redo()=0
virtual i_action & action_file_save_all()=0
virtual i_string const & translate(i_string const &aTranslatableString, i_string const &aContext=string{}, std::int64_t aPlurality=1) const =0
virtual const i_style & current_style() const =0
static uuid const & iid()
virtual i_action & action_file_save()=0
virtual const i_texture & default_window_icon() const =0
virtual i_action & action_select_all()=0
virtual i_action & action_file_close_all()=0
virtual dimension x2_dpi_scale_factor() const =0
virtual i_action & add_action(i_string const &aText, const i_image &aImage)=0
virtual void set_default_window_icon(const i_image &aIcon)=0
virtual bool in_exec() const =0
virtual void remove_mnemonic(i_mnemonic &aMnemonic)=0
virtual dimension xn_dpi_scale_factor() const =0
virtual i_action & action_file_open()=0
virtual i_action & find_action(i_string const &aText)=0
virtual i_action & action_delete()=0
virtual i_action & action_undo()=0
virtual void set_default_window_icon(const i_texture &aIcon)=0
virtual i_event_processing_context & event_processing_context()=0
virtual std::string const & name() const =0
virtual i_action & add_action(i_string const &aText)=0
virtual void quit(int aResultCode)=0
virtual void add_mnemonic(i_mnemonic &aMnemonic)=0
declare_event(execution_started) declare_event(name_changed) declare_event(current_style_changed
virtual neogfx::renderer renderer() const =0
virtual ~i_program_options()=default
virtual std::optional< size_u32 > dpi_override() const =0
virtual bool nest() const =0
virtual bool console() const =0
virtual const boost::program_options::variables_map & options() const =0
virtual std::optional< size_u32 > full_screen() const =0
virtual bool turbo() const =0
default_geometry_value_type dimension
#define declare_event(declName,...)
main_window_closed_prematurely()
invalid_options(std::string const &aReason)