opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
opyn::OPynSimApp Class Reference

#include <opynsim_app.h>

Inheritance diagram for opyn::OPynSimApp:
[legend]
Collaboration diagram for opyn::OPynSimApp:
[legend]

Public Member Functions

 OPynSimApp ()
 
- Public Member Functions inherited from osc::App
 App ()
 
 App (const AppMetadata &)
 
 App (const App &)=delete
 
 App (App &&) noexcept=delete
 
Appoperator= (const App &)=delete
 
Appoperator= (App &&) noexcept=delete
 
 ~App () noexcept
 
const AppMetadatametadata () const
 
std::string human_readable_name () const
 
std::string application_name_with_version_and_buildid () const
 
std::optional< std::filesystem::path > executable_directory () const
 
const std::filesystem::path & user_data_directory () const
 
void setup_main_loop (std::unique_ptr< Widget >)
 
template<std::derived_from< Widget > TWidget, typename... Args>
requires std::constructible_from<TWidget, Args&&...>
void setup_main_loop (Args &&... args)
 
AppMainLoopStatus do_main_loop_step ()
 
void teardown_main_loop ()
 
void show (std::unique_ptr< Widget >)
 
template<std::derived_from< Widget > TWidget, typename... Args>
requires std::constructible_from<TWidget, Args&&...>
void show (Args &&... args)
 
void request_transition (std::unique_ptr< Widget >)
 
template<std::derived_from< Widget > TWidget, typename... Args>
requires std::constructible_from<TWidget, Args&&...>
void request_transition (Args &&... args)
 
void request_quit ()
 
void request_invoke_on_main_thread (std::function< void()>)
 
std::optional< std::filesystem::path > prompt_initial_directory_to_show_fallback ()
 
void set_prompt_initial_directory_to_show_fallback (std::optional< std::filesystem::path >)
 
void prompt_user_to_select_file_async (std::function< void(FileDialogResponse &&)> callback, std::span< const FileDialogFilter > filters={}, std::optional< std::filesystem::path > initial_directory_to_show=std::nullopt, bool allow_many=false)
 
void prompt_user_to_select_file_async (std::function< void(FileDialogResponse &&)> callback, std::initializer_list< const FileDialogFilter > filters={}, std::optional< std::filesystem::path > initial_directory_to_show=std::nullopt, bool allow_many=false)
 
void prompt_user_to_select_directory_async (std::function< void(FileDialogResponse &&)> callback, std::optional< std::filesystem::path > initial_directory_to_show=std::nullopt, bool allow_many=false)
 
void prompt_user_to_save_file_async (std::function< void(FileDialogResponse &&)> callback, std::span< const FileDialogFilter > filters={}, std::optional< std::filesystem::path > initial_directory_to_show=std::nullopt)
 
void prompt_user_to_save_file_async (std::function< void(FileDialogResponse &&)> callback, std::initializer_list< const FileDialogFilter > filters={}, std::optional< std::filesystem::path > initial_directory_to_show=std::nullopt)
 
void prompt_user_to_save_file_with_extension_async (std::function< void(std::optional< std::filesystem::path >)> callback, std::optional< std::string_view > maybe_extension=std::nullopt, std::optional< std::filesystem::path > initial_directory_to_show=std::nullopt)
 
void push_cursor_override (const Cursor &)
 
void pop_cursor_override ()
 
WindowID main_window_id () const
 
Vector2 main_window_dimensions () const
 
void set_main_window_dimensions (Vector2)
 
Vector2i main_window_pixel_dimensions () const
 
float main_window_device_pixel_ratio () const
 
bool is_main_window_minimized () const
 
bool main_window_grabbing () const
 
void set_main_window_grabbing (bool)
 
bool main_window_relative_mouse_mode () const
 
void set_main_window_relative_mouse_mode (bool)
 
std::optional< Rectmain_window_mouse_confinement () const
 
void set_main_window_mouse_confinement (std::optional< Rect > confinement_rect)
 
void set_main_window_mouse_confinement (std::optional< Vector2 > confinement_point)
 
void set_main_window_mouse_confinement (std::nullopt_t)
 
std::optional< Vector2main_window_mouse_position () const
 
bool main_window_showing () const
 
void set_main_window_showing (bool)
 
void focus_main_window ()
 
void set_main_window_unicode_input_rect (const Rect &screen_rect)
 
void make_main_window_fullscreen ()
 
void make_main_window_windowed ()
 
void set_main_window_subtitle (std::optional< std::string_view >)
 
void main_window_add_frame_annotation (std::string_view label, const Rect &screen_rect)
 
std::future< Screenshotmain_window_request_screenshot ()
 
void main_window_clear (const Color &=Color::clear())
 
bool has_input_focus (WindowID) const
 
WindowID get_keyboard_focus () const
 
void start_text_input (WindowID)
 
void stop_text_input (WindowID)
 
float highest_device_pixel_ratio () const
 
AntiAliasingLevel anti_aliasing_level () const
 
void set_anti_aliasing_level (AntiAliasingLevel)
 
AntiAliasingLevel max_anti_aliasing_level () const
 
bool debug_mode () const
 
void set_debug_mode (bool)
 
bool vsync_enabled () const
 
void set_vsync_enabled (bool)
 
std::string graphics_backend_vendor_string () const
 
std::string graphics_backend_renderer_string () const
 
std::string graphics_backend_version_string () const
 
std::string graphics_backend_shading_language_version_string () const
 
size_t num_frames_drawn () const
 
AppClock::time_point startup_time () const
 
AppClock::duration frame_delta_since_startup () const
 
AppClock::time_point frame_start_time () const
 
AppClock::duration frame_delta_since_last_frame () const
 
bool is_main_loop_waiting () const
 
void set_main_loop_waiting (bool)
 
void make_main_loop_waiting ()
 
void make_main_loop_polling ()
 
void request_redraw ()
 
void process_events ()
 

Additional Inherited Members

- Static Public Member Functions inherited from osc::App
template<std::destructible T, typename... Args>
requires std::constructible_from<T, Args&&...>
static std::shared_ptr< Tsingleton (Args &&... args)
 
static Appupd ()
 
static const Appget ()
 
static Apptry_upd ()
 
static const Apptry_get ()
 
static const AppSettingssettings ()
 
static AppSettingsupd_settings ()
 
static std::optional< std::filesystem::path > resource_filepath (const ResourcePath &)
 
static std::string slurp (const ResourcePath &)
 
static ResourceStream open_resource (const ResourcePath &)
 
static ResourceLoaderresource_loader ()
 
template<std::derived_from< Widget > TWidget, typename... Args>
requires std::constructible_from<TWidget, Args&&...>
static int main (const AppMetadata &metadata, Args &&... args)
 
static void post_event (Widget &receiver, std::unique_ptr< Event > event)
 
template<std::derived_from< Event > TEvent, typename... Args>
requires std::constructible_from<TEvent, Args&&...>
static void post_event (Widget &receiver, Args &&... args)
 
static bool notify (Widget &receiver, Event &event)
 
template<std::derived_from< Event > TEvent, typename... Args>
requires std::constructible_from<TEvent, Args&&...>
static bool notify (Widget &receiver, Args &&... args)
 

Constructor & Destructor Documentation

◆ OPynSimApp()

opyn::OPynSimApp::OPynSimApp ( )
explicit

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