![]() |
![]() |
![]() |
CodeSlayer Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#include <codeslayer/codeslayer-engine.h> struct CodeSlayerEngine; CodeSlayerEngine * codeslayer_engine_new (GtkWindow *window
,CodeSlayerProfile *profile
,CodeSlayerProfiles *profiles
,GtkWidget *profiles_manager
,CodeSlayerPlugins *plugins
,GtkWidget *projects
,GtkWidget *menu_bar
,GtkWidget *notebook
,GtkWidget *notebook_pane
,GtkWidget *side_pane
,GtkWidget *bottom_pane
,GtkWidget *hpaned
,GtkWidget *vpaned
); void codeslayer_engine_load_profile (CodeSlayerEngine *engine
); void codeslayer_engine_open_document (CodeSlayerEngine *engine
,gchar *file_path
); gboolean codeslayer_engine_save_profile (CodeSlayerEngine *engine
);
The engine sits in the middle of the framework and delegates calls out to the rest of the API. By having such a central engine we can keep various parts of the application very decoupled.
CodeSlayerEngine * codeslayer_engine_new (GtkWindow *window
,CodeSlayerProfile *profile
,CodeSlayerProfiles *profiles
,GtkWidget *profiles_manager
,CodeSlayerPlugins *plugins
,GtkWidget *projects
,GtkWidget *menu_bar
,GtkWidget *notebook
,GtkWidget *notebook_pane
,GtkWidget *side_pane
,GtkWidget *bottom_pane
,GtkWidget *hpaned
,GtkWidget *vpaned
);
|
a GtkWindow. |
|
a CodeSlayerProfile. |
|
a CodeSlayerProfiles. |
|
a CodeSlayerProfilesManager. |
|
a CodeSlayerPlugins. |
|
a CodeSlayerProjects. |
|
a CodeSlayerMenuBar. |
|
a CodeSlayerNotebook. |
|
a CodeSlayerNotebookPane. |
|
a CodeSlayerSidePane. |
|
a CodeSlayerBottomPane. |
|
the main horizontal pane. |
|
the main vertical pane. |
Returns : |
a new CodeSlayerEngine. |
void codeslayer_engine_load_profile (CodeSlayerEngine *engine
);
|
a CodeSlayerEngine. |
void codeslayer_engine_open_document (CodeSlayerEngine *engine
,gchar *file_path
);
Will first check to make sure that the document doesn't already exist.
|
a CodeSlayerEngine. |
|
the document to open by file path. |
gboolean codeslayer_engine_save_profile (CodeSlayerEngine *engine
);
|
a CodeSlayerEngine. |