Geany dev
|
This contains pointers to global variables owned by Geany for plugins to use. More...
#include <plugindata.h>
Data Fields | |
struct GeanyApp * | app |
Geany application data fields. | |
GPtrArray * | documents_array |
Dynamic array of GeanyDocument pointers. More... | |
struct GeanyEditorPrefs * | editor_prefs |
Editor settings. | |
struct GeanyFilePrefs * | file_prefs |
File-related settings. | |
GPtrArray * | filetypes_array |
Dynamic array of filetype pointers. More... | |
GSList * | filetypes_by_title |
List of filetype pointers sorted by name, but with filetypes_index(GEANY_FILETYPES_NONE) first, as this is usually treated specially. More... | |
struct GeanyInterfacePrefs * | interface_prefs |
Interface settings. | |
struct GeanyMainWidgets * | main_widgets |
Important widgets in the main window. | |
struct GeanyPrefs * | prefs |
General settings. | |
struct GeanySearchPrefs * | search_prefs |
Search-related settings. | |
struct GeanyTemplatePrefs * | template_prefs |
Template settings. | |
struct GeanyToolPrefs * | tool_prefs |
Tool settings. | |
struct GeanyToolbarPrefs * | toolbar_prefs |
Toolbar settings. | |
This contains pointers to global variables owned by Geany for plugins to use.
Core variable pointers can be appended when needed by plugin authors, if appropriate.
GPtrArray* GeanyData::documents_array |
Dynamic array of GeanyDocument pointers.
Once a pointer is added to this, it is never freed. This means the same document pointer can represent a different document later on, or it may have been closed and become invalid. For this reason, you should use document_find_by_id() instead of storing document pointers over time if there is a chance the user can close the document.
GeanyDocument::is_valid
when iterating over this array. This is done automatically if you use the foreach_document() macro.document_get_from_page()
to lookup a document from a notebook tab number.(element-type: GeanyDocument)
GPtrArray* GeanyData::filetypes_array |
Dynamic array of filetype pointers.
List the list is dynamically expanded for custom filetypes filetypes so don't expect the list of known filetypes to be a constant.
(element-type: GeanyFiletype)
GSList* GeanyData::filetypes_by_title |
List of filetype pointers sorted by name, but with filetypes_index(GEANY_FILETYPES_NONE)
first, as this is usually treated specially.
The list does not change (after filetypes have been initialized), so you can use
and expect the same result at different times.
(element-type: GeanyFiletype)