![]() |
![]() |
![]() |
libhud Docs | ![]() |
---|---|---|---|---|
Top | Description |
#include <libhud/manager.h> #define HUD_MANAGER_PROP_APPLICATION #define HUD_MANAGER_PROP_APP_ID struct HudManagerClass;HudManager * hud_manager_new (const
);gchar *application_idHudManager * hud_manager_new_for_application ();
GApplication *applicationvoid hud_manager_add_actions (,
HudManager *managerHudActionPublisher *pub
);void hud_manager_remove_actions (,
HudManager *managerHudActionPublisher *pub
);void hud_manager_switch_window_context (,
HudManager *managerHudActionPublisher *pub
);
Applications that are exporting data to the HUD can export data for every window or context in the application. This includes application internal structures like tabs or views on the various data inside the application. The HUD manager allows for registering and managing all the actions that are exported to the HUD for the application.
#define HUD_MANAGER_PROP_APPLICATION "application"
Define for the string to lookup HudManager:application.
#define HUD_MANAGER_PROP_APP_ID "app-id"
Define for the string to lookup HudManager:app-id.
struct HudManagerClass { GObjectClass parent_class; };
Class data for
HudManager * hud_manager_new (const
);gchar *application_id
Creates a new
|
Unique identifier of the application, usually desktop file name |
Returns : |
New |
HudManager * hud_manager_new_for_application ();
GApplication *application
Creates a new application
object. Also exports the default actions there in
the "app" namespace.
|
|
Returns : |
New |
void hud_manager_add_actions (,
HudManager *managerHudActionPublisher *pub
);
Sets up a set of actions and descriptions for a specific user context. This could be a window or a tab, depending on how the application works.
|
A |
|
Action publisher object tracking the descriptions and action groups |
void hud_manager_remove_actions (,
HudManager *managerHudActionPublisher *pub
);
Removes actions for being watched by the HUD. Should be done when the object
is remove. Does not require pub
to be a valid object so it can be used
with weak pointer style destroy.
|
A |
|
Action publisher object tracking the descriptions and action groups |
void hud_manager_switch_window_context (,
HudManager *managerHudActionPublisher *pub
);
Tells the HUD service that a window should use a different context of actions with the current window. This allows the application to export sets of actions and switch them easily with a single dbus message.
|
A |
|
Action publisher object tracking the descriptions and action groups |