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

#include <app.hpp>

Inheritance diagram for neogfx::app:
neolib::application< object< i_app > > neogfx::i_keyboard_handler neolib::reference_counted< Base, DeallocateOnRelease >

Classes

struct  action_not_found
 
struct  no_instance
 
struct  style_exists
 
struct  style_not_found
 

Public Member Functions

 app (const neolib::i_application_info &aAppInfo)
 
template<typename... Args>
 app (Args &&... aArgs)
 
 ~app ()
 
app_threadthread () const noexcept
 
const i_program_optionsprogram_options () const noexcept override
 
std::string const & name () const noexcept override
 
void set_name (std::string const &aName) override
 
int exec (bool aQuitWhenLastWindowClosed=true) override
 
bool in_exec () const override
 
void quit (int aResultCode=0) override
 
dimension x2_dpi_scale_factor () const override
 
dimension xn_dpi_scale_factor () const override
 
const i_texturedefault_window_icon () const override
 
void set_default_window_icon (const i_texture &aIcon) override
 
void set_default_window_icon (const i_image &aIcon) override
 
const i_stylecurrent_style () const override
 
i_stylecurrent_style () override
 
i_stylechange_style (std::string const &aStyleName) override
 
i_styleregister_style (const i_style &aStyle) override
 
void clear_translations ()
 
void load_translations ()
 
void load_translations (std::filesystem::path const &aTranslationFile)
 
i_string const & translate (i_string const &aTranslatableString, i_string const &aContext=string{}, std::int64_t aPlurality=1) const override
 
i_actionaction_file_new () override
 
i_actionaction_file_open () override
 
i_actionaction_file_close () override
 
i_actionaction_file_close_all () override
 
i_actionaction_file_save () override
 
i_actionaction_file_save_all () override
 
i_actionaction_file_exit () override
 
i_actionaction_undo () override
 
i_actionaction_redo () override
 
i_actionaction_cut () override
 
i_actionaction_copy () override
 
i_actionaction_paste () override
 
i_actionaction_delete () override
 
i_actionaction_select_all () override
 
i_actionadd_action (i_action &aAction) override
 
i_actionadd_action (i_ref_ptr< i_action > const &aAction) override
 
i_actionadd_action (i_string const &aText) override
 
i_actionadd_action (i_string const &aText, i_string const &aImageUri, dimension aDpiScaleFactor=1.0, texture_sampling aSampling=texture_sampling::Normal) override
 
i_actionadd_action (i_string const &aText, const i_texture &aImage) override
 
i_actionadd_action (i_string const &aText, const i_image &aImage) override
 
void remove_action (i_action &aAction) override
 
i_actionfind_action (i_string const &aText) override
 
void add_mnemonic (i_mnemonic &aMnemonic) override
 
void remove_mnemonic (i_mnemonic &aMnemonic) override
 
i_menuadd_standard_menu (i_menu &aParentMenu, standard_menu aStandardMenu) override
 
i_helphelp () const override
 
bool process_events () override
 
bool process_events (i_event_processing_context &aContext) override
 
i_event_processing_contextevent_processing_context () override
 
bool discover (const uuid &aId, void *&aObject) override
 
- Public Member Functions inherited from neolib::application< object< i_app > >
 application (const i_application_info &aApplicationInfo, i_service_provider &aServiceProvider=allocate_service_provider())
 
bool discover (const uuid &aId, void *&aObject) override
 
i_service_providerservice_provider () const override
 
const i_application_infoinfo () const override
 
i_plugin_managerplugin_manager () override
 
- Public Member Functions inherited from neolib::reference_counted< Base, DeallocateOnRelease >
 reference_counted () noexcept
 
 reference_counted (const reference_counted &aOther) noexcept
 
 ~reference_counted ()
 
reference_countedoperator= (const reference_counted &)
 
void add_ref () const noexcept override
 
void release () const override
 
int32_t use_count () const noexcept override
 
const base_type * release_and_take_ownership () const override
 
base_type * release_and_take_ownership () override
 
void pin () const noexcept override
 
void unpin () const override
 
i_ref_control_blockcontrol_block () override
 

Static Public Member Functions

static appinstance ()
 

Public Attributes

action actionFileNew
 
action actionFileOpen
 
action actionFileClose
 
action actionFileCloseAll
 
action actionFileSave
 
action actionFileSaveAll
 
action actionFileExit
 
action actionUndo
 
action actionRedo
 
action actionCut
 
action actionCopy
 
action actionPaste
 
action actionDelete
 
action actionSelectAll
 

Detailed Description

Definition at line 71 of file app.hpp.

Constructor & Destructor Documentation

◆ app() [1/2]

neogfx::app::app ( const neolib::i_application_info aAppInfo)

◆ app() [2/2]

template<typename... Args>
neogfx::app::app ( Args &&...  aArgs)
inline

Definition at line 99 of file app.hpp.

◆ ~app()

neogfx::app::~app ( )

Member Function Documentation

◆ action_copy()

i_action & neogfx::app::action_copy ( )
override

◆ action_cut()

i_action & neogfx::app::action_cut ( )
override

◆ action_delete()

i_action & neogfx::app::action_delete ( )
override

◆ action_file_close()

i_action & neogfx::app::action_file_close ( )
override

◆ action_file_close_all()

i_action & neogfx::app::action_file_close_all ( )
override

◆ action_file_exit()

i_action & neogfx::app::action_file_exit ( )
override

◆ action_file_new()

i_action & neogfx::app::action_file_new ( )
override

◆ action_file_open()

i_action & neogfx::app::action_file_open ( )
override

◆ action_file_save()

i_action & neogfx::app::action_file_save ( )
override

◆ action_file_save_all()

i_action & neogfx::app::action_file_save_all ( )
override

◆ action_paste()

i_action & neogfx::app::action_paste ( )
override

◆ action_redo()

i_action & neogfx::app::action_redo ( )
override

◆ action_select_all()

i_action & neogfx::app::action_select_all ( )
override

◆ action_undo()

i_action & neogfx::app::action_undo ( )
override

◆ add_action() [1/6]

i_action & neogfx::app::add_action ( i_action aAction)
override

◆ add_action() [2/6]

i_action & neogfx::app::add_action ( i_ref_ptr< i_action > const &  aAction)
override

◆ add_action() [3/6]

i_action & neogfx::app::add_action ( i_string const &  aText)
override

◆ add_action() [4/6]

i_action & neogfx::app::add_action ( i_string const &  aText,
const i_image aImage 
)
override

◆ add_action() [5/6]

i_action & neogfx::app::add_action ( i_string const &  aText,
const i_texture aImage 
)
override

◆ add_action() [6/6]

i_action & neogfx::app::add_action ( i_string const &  aText,
i_string const &  aImageUri,
dimension  aDpiScaleFactor = 1.0,
texture_sampling  aSampling = texture_sampling::Normal 
)
override

◆ add_mnemonic()

void neogfx::app::add_mnemonic ( i_mnemonic aMnemonic)
override

◆ add_standard_menu()

i_menu & neogfx::app::add_standard_menu ( i_menu aParentMenu,
standard_menu  aStandardMenu 
)
override

◆ change_style()

i_style & neogfx::app::change_style ( std::string const &  aStyleName)
override

◆ clear_translations()

void neogfx::app::clear_translations ( )

◆ current_style() [1/2]

const i_style & neogfx::app::current_style ( ) const
override

◆ current_style() [2/2]

i_style & neogfx::app::current_style ( )
override

◆ default_window_icon()

const i_texture & neogfx::app::default_window_icon ( ) const
override

◆ discover()

bool neogfx::app::discover ( const uuid aId,
void *&  aObject 
)
override

◆ event_processing_context()

i_event_processing_context & neogfx::app::event_processing_context ( )
override

◆ exec()

int neogfx::app::exec ( bool  aQuitWhenLastWindowClosed = true)
override

◆ find_action()

i_action & neogfx::app::find_action ( i_string const &  aText)
override

◆ help()

i_help & neogfx::app::help ( ) const
override

◆ in_exec()

bool neogfx::app::in_exec ( ) const
override

◆ instance()

static app & neogfx::app::instance ( )
static

◆ load_translations() [1/2]

void neogfx::app::load_translations ( )

◆ load_translations() [2/2]

void neogfx::app::load_translations ( std::filesystem::path const &  aTranslationFile)

◆ name()

std::string const & neogfx::app::name ( ) const
overridenoexcept

◆ process_events() [1/2]

bool neogfx::app::process_events ( )
override

◆ process_events() [2/2]

bool neogfx::app::process_events ( i_event_processing_context aContext)
override

◆ program_options()

const i_program_options & neogfx::app::program_options ( ) const
overridenoexcept

◆ quit()

void neogfx::app::quit ( int  aResultCode = 0)
override

◆ register_style()

i_style & neogfx::app::register_style ( const i_style aStyle)
override

◆ remove_action()

void neogfx::app::remove_action ( i_action aAction)
override

◆ remove_mnemonic()

void neogfx::app::remove_mnemonic ( i_mnemonic aMnemonic)
override

◆ set_default_window_icon() [1/2]

void neogfx::app::set_default_window_icon ( const i_image aIcon)
override

◆ set_default_window_icon() [2/2]

void neogfx::app::set_default_window_icon ( const i_texture aIcon)
override

◆ set_name()

void neogfx::app::set_name ( std::string const &  aName)
override

◆ thread()

app_thread & neogfx::app::thread ( ) const
noexcept

◆ translate()

i_string const & neogfx::app::translate ( i_string const &  aTranslatableString,
i_string const &  aContext = string{},
std::int64_t  aPlurality = 1 
) const
override

◆ x2_dpi_scale_factor()

dimension neogfx::app::x2_dpi_scale_factor ( ) const
override

◆ xn_dpi_scale_factor()

dimension neogfx::app::xn_dpi_scale_factor ( ) const
override

Member Data Documentation

◆ actionCopy

action neogfx::app::actionCopy

Definition at line 201 of file app.hpp.

◆ actionCut

action neogfx::app::actionCut

Definition at line 200 of file app.hpp.

◆ actionDelete

action neogfx::app::actionDelete

Definition at line 203 of file app.hpp.

◆ actionFileClose

action neogfx::app::actionFileClose

Definition at line 193 of file app.hpp.

◆ actionFileCloseAll

action neogfx::app::actionFileCloseAll

Definition at line 194 of file app.hpp.

◆ actionFileExit

action neogfx::app::actionFileExit

Definition at line 197 of file app.hpp.

◆ actionFileNew

action neogfx::app::actionFileNew

Definition at line 191 of file app.hpp.

◆ actionFileOpen

action neogfx::app::actionFileOpen

Definition at line 192 of file app.hpp.

◆ actionFileSave

action neogfx::app::actionFileSave

Definition at line 195 of file app.hpp.

◆ actionFileSaveAll

action neogfx::app::actionFileSaveAll

Definition at line 196 of file app.hpp.

◆ actionPaste

action neogfx::app::actionPaste

Definition at line 202 of file app.hpp.

◆ actionRedo

action neogfx::app::actionRedo

Definition at line 199 of file app.hpp.

◆ actionSelectAll

action neogfx::app::actionSelectAll

Definition at line 204 of file app.hpp.

◆ actionUndo

action neogfx::app::actionUndo

Definition at line 198 of file app.hpp.


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