|
| Application (Interpreter *interpreter) |
| Application constructor.
|
|
| ~Application () override |
| Application destructor.
|
|
| Application (const Application &rhs)=delete |
| Forbid copy.
|
|
Application & | operator= (const Application &rhs)=delete |
| Forbid copy.
|
|
IconRepository * | icon_repository () |
| Gets the icon repository. More...
|
|
const IconRepository * | icon_repository () const |
| Gets the icon repository. More...
|
|
void | start () override |
|
void | stop () override |
| Stops the application. More...
|
|
void | set_style (const std::string &value) override |
| Sets the style to be used for widgets. More...
|
|
void | set_font_size (index_t value) override |
| Sets the size of fonts in the application. More...
|
|
void | lock_updates () |
| Lock updates. More...
|
|
void | unlock_updates () |
| Unlock updates. More...
|
|
void | draw () override |
| Redraws the main window. More...
|
|
void | update () override |
| Indicates that the main window should be redrawn. More...
|
|
void | save_preferences () override |
| Saves the preferences to home directory / graphite.ini. More...
|
|
void | load_preferences (const std::string &filename) override |
| Loads preference variables from a file. More...
|
|
void | flush_command_queue () |
| Executes all commands in command queue.
|
|
void * | impl_window () const |
| Gets a pointer to the underlying window. More...
|
|
const std::string & | get_style () const |
| Gets the style. More...
|
|
Camera * | camera () |
| Gets the Camera. More...
|
|
index_t | resolve_icon (const std::string &name, bool mipmap=false) const |
| Finds an icon by name. More...
|
|
void | exec_command (const std::string &command, bool add_to_history=true) |
| Executes a command. More...
|
|
void | exec_command_now (const std::string &command, bool add_to_history=false) |
| Executes a command immediatly. More...
|
|
double | scaling () const |
| Gets the global scaling to be applied to all GUI elements. More...
|
|
double | margin () const |
|
double | status_bar_height () const |
|
bool | draw_console (bool visible) |
| Draws the console. More...
|
|
bool | status_bar_is_active () const |
| Tests if the status bar should be displayed. More...
|
|
void | draw_status_bar () |
| Draw the status bar. More...
|
|
void | set_full_screen_mode (index_t w=0, index_t h=0, index_t hz=0, index_t monitor=0) |
| Sets full-screen mode. More...
|
|
void | set_windowed_mode (index_t w=0, index_t h=0) |
| Sets windowed mode. More...
|
|
void | list_video_modes () |
| Lists the video modes that can be used for set_full_screen_mode() More...
|
|
void | iconify () |
| Iconifies this application.
|
|
void | restore () |
| Restores this application.
|
|
void | reset_latest_error () |
| Resets the latest error to the empty string.
|
|
void | notify_error (const std::string &message) |
| Notifies than an error occured. More...
|
|
void | set_gui_state (std::string x) |
| Sets the gui state. More...
|
|
std::string | get_gui_state () const |
| Gets the gui state. More...
|
|
void | set_full_screen (bool x) |
| Sets full-screen mode. More...
|
|
bool | get_full_screen () const |
| Tests whether this application is in full-screen mode. More...
|
|
index_t | get_width () const |
| Gets the width of the window. More...
|
|
index_t | get_height () const |
| Gets the height of the window. More...
|
|
index_t | get_frame_buffer_width () const |
| Gets the width of the window. More...
|
|
index_t | get_frame_buffer_height () const |
| Gets the height of the window. More...
|
|
void | set_accept_drops (bool value) |
| Sets whether drag and drop events should be taken into account. More...
|
|
bool | get_accept_drops () const |
| Tests whether drag and drop events are taken into account. More...
|
|
void | set_picked_grob (Grob *value) |
| Used by the arrow tool, memorizes the picked grob. More...
|
|
Grob * | get_picked_grob () const |
| Used by the arrow tool, gets the memorized picked grob. More...
|
|
const std::string & | get_latest_error () const |
| Gets the latest error message. More...
|
|
void | error_occured (const std::string &error) |
| This signal is triggered when the console displays an error message. More...
|
|
| ApplicationBase (Interpreter *interpreter=nullptr) |
| ApplicationBase constructor. More...
|
|
| ~ApplicationBase () override |
| ApplicationBase destructor.
|
|
Interpreter * | interpreter () |
| Gets the main Interpreter. More...
|
|
| for (size_t index=tooltip_.find("\\n");index !=std::string::npos;index=tooltip_.find("\\n", index+2)) |
|
const std::string & | get_tooltip () const |
| Gets the tooltip to be displayed near the cursor in the rendering area, or an empty string if there is no tooltip.
|
|
void | declare_preference_variable (const std::string &name, const std::string &value, const std::string &help="") |
| Declares a preference variable. More...
|
|
virtual bool | preferences_loaded () |
| Tests whether preferences were loaded. More...
|
|
virtual void | cancel_current_job () |
| Cancels the current job. More...
|
|
virtual void | begin () |
| ProgressClient overload, callback called by ProgressTask. More...
|
|
virtual void | progress (index_t step, index_t percent) |
| ProgressClient overload, callback called by ProgressTask. More...
|
|
virtual void | end (bool canceled) |
| ProgressClient overload, callback called by ProgressTask. More...
|
|
std::string | find_file (const std::string &filename) const |
| Finds a file in the OGF_PATH. More...
|
|
virtual void | save_state () |
| Saves state before applying command or tool, for undo()/redo().
|
|
virtual void | undo () |
| Restores last saved state if available.
|
|
virtual void | redo () |
| Restores next saved state if available.
|
|
virtual void | progress_cancel () |
| Cancels current progress tastk.
|
|
virtual void | post_draw () |
| Called after each frame.
|
|
bool | get_can_redo () const |
| Tests whether redo() can be called. More...
|
|
void | div (const std::string &value) |
| A signal that is triggered when a 'separation div' should be displayed in the logger. More...
|
|
void | out (const std::string &value) |
| A signal that is triggered when the logger displays a message. More...
|
|
void | warn (const std::string &value) |
| A signal that is triggered when the logger displays a warning message. More...
|
|
void | err (const std::string &value) |
| A signal that is triggered when the logger displays an error message. More...
|
|
void | status (const std::string &value) |
| A signal that is triggered when the message in the status bar should be updated. More...
|
|
void | notify_progress_begin (const std::string &value) |
| A signal that is triggered when a ProgressTask starts. More...
|
|
void | notify_progress (index_t value) |
| A signal that is triggered when a ProgressTask is updated. More...
|
|
void | notify_progress_end () |
| A signal that is triggered when a ProgressTask finishes.
|
|
| Object (bool transient=false) |
| Object constructor. More...
|
|
virtual | ~Object () |
| Object destructor.
|
|
virtual MetaClass * | meta_class () const |
| Gets the meta class. More...
|
|
virtual void | set_meta_class (MetaClass *mclass) |
| Sets the meta class. More...
|
|
unsigned int | id () const |
| Gets the identifier of this object. More...
|
|
std::string | string_id () const |
| Gets the unique string identifier. More...
|
|
bool | has_method (const std::string &method_name) const |
| Tests whether a method is defined. More...
|
|
virtual bool | invoke_method (const std::string &method_name, const ArgList &args, Any &ret_val) |
| Invokes a method by method name and argument list, and gets the return value. More...
|
|
bool | invoke_method (const std::string &method_name, const ArgList &args) |
| Invokes a method by method name and argument list. More...
|
|
bool | invoke_method (const std::string &method_name) |
| Invokes a method by method name. More...
|
|
bool | has_property (const std::string &prop_name) const |
| Tests whether a property is defined. More...
|
|
virtual bool | get_property (const std::string &prop_name, std::string &prop_value) const |
| Gets a property. More...
|
|
virtual Connection * | connect_signal_to_slot (const std::string &signal_name, Object *to, const std::string &slot_name) |
| Connects a signal with a slot of another object. More...
|
|
virtual void | add_connection (Connection *connection) |
| Adds a connection to this object. More...
|
|
virtual void | remove_connection (Connection *connection) |
| Removes a connection to this object. More...
|
|
virtual void | get_element (index_t i, Any &value) const |
| Gets an element by index. More...
|
|
virtual void | set_element (index_t i, const Any &value) |
| Sets an element by index. More...
|
|
virtual void | search (const std::string &needle, const std::string &path="") |
| Displays the names of all objects that contain a substring. More...
|
|
bool | get_signals_enabled () const |
| Tests wheter signals are enabled. More...
|
|
void | set_signals_enabled (bool value) |
| Enables or disables signals. More...
|
|
bool | get_slots_enabled () const |
| Tests wheter slots are enabled. More...
|
|
void | set_slots_enabled (bool value) |
| Enables or disables slots. More...
|
|
MetaClass * | get_meta_class () const |
| Gets the meta class. More...
|
|
std::string | get_string_id () const |
| Gets the unique string identifier. More...
|
|
virtual std::string | get_doc () const |
| Gets the documentation. More...
|
|
virtual Sign | compare (const Object *other) const |
| Compares this object with another one. More...
|
|
virtual bool | is_a (const MetaType *type) const |
| Tests whether this object inherits a given type. More...
|
|
void | disconnect () |
| Removes all connections from signals of this objects. More...
|
|
void | enable_signals () |
| Enables signals.
|
|
void | disable_signals () |
| Disables signals.
|
|
void | enable_slots () |
| Enables slots.
|
|
void | disable_slots () |
| Disables slots.
|
|
void | set_properties (const ArgList &args) |
| Sets several properties in a single call. More...
|
|
virtual bool | set_property (const std::string &name, const std::string &value) |
| Sets an individual property. More...
|
|
void | help () const |
| Displays some help about this object. More...
|
|
virtual bool | set_property (const std::string &name, const Any &value) |
| Sets an individual property. More...
|
|
virtual bool | get_property (const std::string &prop_name, Any &prop_value) const |
| Gets a property. More...
|
|
void | ref () const |
| Increments the reference count. More...
|
|
void | unref () const |
| Decrements the reference count. More...
|
|
bool | is_shared () const |
| Check if the object is shared. More...
|
|
int | nb_refs () const |
| Gets the number of references that point to this object. More...
|
|
Implementation of Skin application using ImGui.
- Note
- Client code should not use this class directly. It should be only used through the GOM abstraction layer.
Definition at line 56 of file application.h.