Top | ![]() |
![]() |
![]() |
![]() |
void ide_layout_stack_addin_load (IdeLayoutStackAddin *self
,IdeLayoutStack *stack
);
This function should be implemented by IdeLayoutStackAddin plugins in IdeLayoutStackAddinInterface.
This virtual method is called when the plugin should load itself. A new instance of the plugin is created for every IdeLayoutStack that is created in Builder.
void ide_layout_stack_addin_unload (IdeLayoutStackAddin *self
,IdeLayoutStack *stack
);
This function should be implemented by IdeLayoutStackAddin plugins in IdeLayoutStackAddinInterface.
This virtual method is called when the plugin should unload itself.
It should revert anything performed via ide_layout_stack_addin_load()
.
void ide_layout_stack_addin_set_view (IdeLayoutStackAddin *self
,IdeLayoutView *view
);
This virtual method is called whenever the active view changes in the IdeLayoutView. Plugins may want to alter what controls are displayed on the stack based on the current view.
IdeLayoutStackAddin * ide_layout_stack_addin_find_by_module_name (IdeLayoutStack *stack
,const gchar *module_name
);
This function will locate the IdeLayoutStackAddin that was registered by
the plugin named module_name
(which should match the "Module" field
provided in the .plugin file).
If no module was found or that module does not implement the
IdeLayoutStackAddinInterface, then NULL
is returned.
Since: 3.26
struct IdeLayoutStackAddinInterface { GTypeInterface parent_iface; void (*load) (IdeLayoutStackAddin *self, IdeLayoutStack *stack); void (*unload) (IdeLayoutStackAddin *self, IdeLayoutStack *stack); void (*set_view) (IdeLayoutStackAddin *self, IdeLayoutView *view); };