neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::i_app Class Referenceabstract

#include <i_app.hpp>

Inheritance diagram for neogfx::i_app:
neogfx::i_property_owner neolib::i_application neogfx::i_action_container neolib::services::i_service neogfx::i_object neolib::i_discoverable neolib::i_object neolib::i_reference_counted neolib::i_lifetime

Classes

struct  main_window_closed_prematurely
 
struct  unknown_standard_menu
 

Public Member Functions

 declare_event (execution_started) declare_event(name_changed) declare_event(current_style_changed
 
virtual const i_program_optionsprogram_options () const =0
 
virtual std::string const & name () const =0
 
virtual void set_name (std::string const &aName)=0
 
virtual int exec (bool aQuitWhenLastWindowClosed=true)=0
 
virtual bool in_exec () const =0
 
virtual void quit (int aResultCode)=0
 
virtual dimension x2_dpi_scale_factor () const =0
 
virtual dimension xn_dpi_scale_factor () const =0
 
virtual const i_texturedefault_window_icon () const =0
 
virtual void set_default_window_icon (const i_texture &aIcon)=0
 
virtual void set_default_window_icon (const i_image &aIcon)=0
 
virtual const i_stylecurrent_style () const =0
 
virtual i_stylecurrent_style ()=0
 
virtual i_stylechange_style (std::string const &aStyleName)=0
 
virtual i_styleregister_style (const i_style &aStyle)=0
 
virtual i_string const & translate (i_string const &aTranslatableString, i_string const &aContext=string{}, std::int64_t aPlurality=1) const =0
 
virtual i_actionaction_file_new ()=0
 
virtual i_actionaction_file_open ()=0
 
virtual i_actionaction_file_close ()=0
 
virtual i_actionaction_file_close_all ()=0
 
virtual i_actionaction_file_save ()=0
 
virtual i_actionaction_file_save_all ()=0
 
virtual i_actionaction_file_exit ()=0
 
virtual i_actionaction_undo ()=0
 
virtual i_actionaction_redo ()=0
 
virtual i_actionaction_cut ()=0
 
virtual i_actionaction_copy ()=0
 
virtual i_actionaction_paste ()=0
 
virtual i_actionaction_delete ()=0
 
virtual i_actionaction_select_all ()=0
 
virtual i_actionadd_action (i_string const &aText)=0
 
virtual i_actionadd_action (i_string const &aText, i_string const &aImageUri, dimension aDpiScaleFactor=1.0, texture_sampling aSampling=texture_sampling::Normal)=0
 
virtual i_actionadd_action (i_string const &aText, const i_texture &aImage)=0
 
virtual i_actionadd_action (i_string const &aText, const i_image &aImage)=0
 
virtual void remove_action (i_action &aAction)=0
 
virtual i_actionfind_action (i_string const &aText)=0
 
virtual void add_mnemonic (i_mnemonic &aMnemonic)=0
 
virtual void remove_mnemonic (i_mnemonic &aMnemonic)=0
 
virtual i_menuadd_standard_menu (i_menu &aParentMenu, standard_menu aStandardMenu)=0
 
virtual i_helphelp () const =0
 
virtual bool process_events ()=0
 
virtual bool process_events (i_event_processing_context &aContext)=0
 
virtual i_event_processing_contextevent_processing_context ()=0
 
virtual i_actionadd_action (i_action &aAction)=0
 
virtual i_actionadd_action (i_ref_ptr< i_action > const &aAction)=0
 
- Public Member Functions inherited from neogfx::i_property_owner
virtual ~i_property_owner ()=default
 
virtual void property_changed (i_property &aProperty)=0
 
virtual const i_propertiesproperties () const =0
 
virtual i_propertiesproperties ()=0
 
- Public Member Functions inherited from neogfx::i_object
virtual ~i_object ()=default
 
virtual i_objectas_object ()=0
 
virtual void class_name (neolib::i_string &aClassName) const =0
 
virtual neogfx::object_type object_type () const =0
 
- Public Member Functions inherited from neolib::i_object
 declare_event (destroying)
 
 declare_event (destroyed)
 
- Public Member Functions inherited from neolib::i_lifetime
virtual ~i_lifetime ()=default
 
virtual lifetime_state object_state () const =0
 
virtual std::shared_ptr< std::atomic< lifetime_state > > object_state_ptr () const =0
 
virtual bool is_creating () const =0
 
virtual bool is_alive () const =0
 
virtual bool is_destroying () const =0
 
virtual bool is_destroyed () const =0
 
virtual void set_alive ()=0
 
virtual void set_destroying ()=0
 
virtual void set_destroyed ()=0
 
- Public Member Functions inherited from neolib::i_application
virtual i_service_providerservice_provider () const =0
 
virtual const i_application_infoinfo () const =0
 
virtual i_plugin_managerplugin_manager ()=0
 
- Public Member Functions inherited from neolib::i_discoverable
template<typename Interface >
bool discover (i_ref_ptr< Interface > &aObject)
 
virtual bool discover (const uuid &aId, void *&aObject)=0
 
- Public Member Functions inherited from neolib::i_reference_counted
virtual ~i_reference_counted ()=default
 
virtual void add_ref () const noexcept=0
 
virtual void release () const =0
 
virtual int32_t use_count () const noexcept=0
 
virtual const i_reference_countedrelease_and_take_ownership () const =0
 
virtual i_reference_countedrelease_and_take_ownership ()=0
 
virtual void pin () const noexcept=0
 
virtual void unpin () const =0
 
virtual i_ref_control_blockcontrol_block ()=0
 
- Public Member Functions inherited from neolib::services::i_service
virtual ~i_service ()=default
 

Static Public Member Functions

static uuid const & iid ()
 

Detailed Description

Definition at line 67 of file i_app.hpp.

Member Function Documentation

◆ action_copy()

virtual i_action & neogfx::i_app::action_copy ( )
pure virtual

◆ action_cut()

virtual i_action & neogfx::i_app::action_cut ( )
pure virtual

◆ action_delete()

virtual i_action & neogfx::i_app::action_delete ( )
pure virtual

◆ action_file_close()

virtual i_action & neogfx::i_app::action_file_close ( )
pure virtual

◆ action_file_close_all()

virtual i_action & neogfx::i_app::action_file_close_all ( )
pure virtual

◆ action_file_exit()

virtual i_action & neogfx::i_app::action_file_exit ( )
pure virtual

◆ action_file_new()

virtual i_action & neogfx::i_app::action_file_new ( )
pure virtual

◆ action_file_open()

virtual i_action & neogfx::i_app::action_file_open ( )
pure virtual

◆ action_file_save()

virtual i_action & neogfx::i_app::action_file_save ( )
pure virtual

◆ action_file_save_all()

virtual i_action & neogfx::i_app::action_file_save_all ( )
pure virtual

◆ action_paste()

virtual i_action & neogfx::i_app::action_paste ( )
pure virtual

◆ action_redo()

virtual i_action & neogfx::i_app::action_redo ( )
pure virtual

◆ action_select_all()

virtual i_action & neogfx::i_app::action_select_all ( )
pure virtual

◆ action_undo()

virtual i_action & neogfx::i_app::action_undo ( )
pure virtual

◆ add_action() [1/6]

virtual i_action & neogfx::i_action_container::add_action ( i_action aAction)
virtual

◆ add_action() [2/6]

virtual i_action & neogfx::i_action_container::add_action ( i_ref_ptr< i_action > const &  aAction)
virtual

◆ add_action() [3/6]

virtual i_action & neogfx::i_app::add_action ( i_string const &  aText)
pure virtual

◆ add_action() [4/6]

virtual i_action & neogfx::i_app::add_action ( i_string const &  aText,
const i_image aImage 
)
pure virtual

◆ add_action() [5/6]

virtual i_action & neogfx::i_app::add_action ( i_string const &  aText,
const i_texture aImage 
)
pure virtual

◆ add_action() [6/6]

virtual i_action & neogfx::i_app::add_action ( i_string const &  aText,
i_string const &  aImageUri,
dimension  aDpiScaleFactor = 1.0,
texture_sampling  aSampling = texture_sampling::Normal 
)
pure virtual

◆ add_mnemonic()

virtual void neogfx::i_app::add_mnemonic ( i_mnemonic aMnemonic)
pure virtual

◆ add_standard_menu()

virtual i_menu & neogfx::i_app::add_standard_menu ( i_menu aParentMenu,
standard_menu  aStandardMenu 
)
pure virtual

◆ change_style()

virtual i_style & neogfx::i_app::change_style ( std::string const &  aStyleName)
pure virtual

◆ current_style() [1/2]

virtual const i_style & neogfx::i_app::current_style ( ) const
pure virtual

◆ current_style() [2/2]

virtual i_style & neogfx::i_app::current_style ( )
pure virtual

◆ declare_event()

neogfx::i_app::declare_event ( execution_started  )

◆ default_window_icon()

virtual const i_texture & neogfx::i_app::default_window_icon ( ) const
pure virtual

◆ event_processing_context()

virtual i_event_processing_context & neogfx::i_app::event_processing_context ( )
pure virtual

◆ exec()

virtual int neogfx::i_app::exec ( bool  aQuitWhenLastWindowClosed = true)
pure virtual

◆ find_action()

virtual i_action & neogfx::i_app::find_action ( i_string const &  aText)
pure virtual

◆ help()

virtual i_help & neogfx::i_app::help ( ) const
pure virtual

◆ iid()

static uuid const & neogfx::i_app::iid ( )
inlinestatic

Definition at line 130 of file i_app.hpp.

◆ in_exec()

virtual bool neogfx::i_app::in_exec ( ) const
pure virtual

◆ name()

virtual std::string const & neogfx::i_app::name ( ) const
pure virtual

◆ process_events() [1/2]

virtual bool neogfx::i_app::process_events ( )
pure virtual

◆ process_events() [2/2]

virtual bool neogfx::i_app::process_events ( i_event_processing_context aContext)
pure virtual

◆ program_options()

virtual const i_program_options & neogfx::i_app::program_options ( ) const
pure virtual

◆ quit()

virtual void neogfx::i_app::quit ( int  aResultCode)
pure virtual

◆ register_style()

virtual i_style & neogfx::i_app::register_style ( const i_style aStyle)
pure virtual

◆ remove_action()

virtual void neogfx::i_app::remove_action ( i_action aAction)
pure virtual

◆ remove_mnemonic()

virtual void neogfx::i_app::remove_mnemonic ( i_mnemonic aMnemonic)
pure virtual

◆ set_default_window_icon() [1/2]

virtual void neogfx::i_app::set_default_window_icon ( const i_image aIcon)
pure virtual

◆ set_default_window_icon() [2/2]

virtual void neogfx::i_app::set_default_window_icon ( const i_texture aIcon)
pure virtual

◆ set_name()

virtual void neogfx::i_app::set_name ( std::string const &  aName)
pure virtual

◆ translate()

virtual i_string const & neogfx::i_app::translate ( i_string const &  aTranslatableString,
i_string const &  aContext = string{},
std::int64_t  aPlurality = 1 
) const
pure virtual
Todo:
add support for multiple plurals in a string

◆ x2_dpi_scale_factor()

virtual dimension neogfx::i_app::x2_dpi_scale_factor ( ) const
pure virtual

◆ xn_dpi_scale_factor()

virtual dimension neogfx::i_app::xn_dpi_scale_factor ( ) const
pure virtual

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