Application

Constructors

this
this(DzlApplication* dzlApplication, bool ownedRef = false)

Sets our main struct and passes it to the parent class.

this
this(string applicationId, GApplicationFlags flags)

Members

Functions

addResources
void addResources(string resourcePath)

This adds @resource_path to the list of "automatic resources".

getDazzleApplicationStruct
DzlApplication* getDazzleApplicationStruct(bool transferOwnership = false)

Get the main Gtk struct

getMenuById
Menu getMenuById(string menuId)

Similar to gtk_application_get_menu_by_id() but takes into account menu merging which could have occurred upon loading plugins.

getMenuManager
MenuManager getMenuManager()

Gets the menu manager for the application.

getShortcutManager
ShortcutManager getShortcutManager()

Gets the #DzlShortcutManager for the application.

getStruct
void* getStruct()

the main Gtk struct as a void*

getThemeManager
ThemeManager getThemeManager()

Get the theme manager for the application.

removeResources
void removeResources(string resourcePath)

This attempts to undo as many side-effects as possible from a call to dzl_application_add_resources().

Static functions

getType
GType getType()

Variables

dzlApplication
DzlApplication* dzlApplication;

the main Gtk struct

Meta