Top |
void | active-application-changed | |
void | active-window-changed | |
void | stacking-order-changed | |
void | view-closed | |
void | view-opened |
BamfMatcher *
bamf_matcher_get_default (void
);
Returns the default matcher. This matcher is owned by bamf and shared between other callers.
BamfApplication *
bamf_matcher_get_active_application (BamfMatcher *matcher
);
Used to fetch the active BamfApplication.
BamfWindow *
bamf_matcher_get_active_window (BamfMatcher *matcher
);
Used to fetch the active BamfWindow.
BamfWindow * bamf_matcher_get_window_for_xid (BamfMatcher *matcher
,guint32 xid
);
Used to fetch the BamfWindow that wraps the given window
.
BamfApplication * bamf_matcher_get_application_for_xid (BamfMatcher *matcher
,guint32 xid
);
Used to fetch the BamfApplication containing the passed xid.
BamfApplication * bamf_matcher_get_application_for_window (BamfMatcher *matcher
,BamfWindow *window
);
Used to fetch the BamfApplication containing the passed window.
gboolean bamf_matcher_application_is_running (BamfMatcher *matcher
,const gchar *desktop_file
);
GList *
bamf_matcher_get_applications (BamfMatcher *matcher
);
Used to fetch all BamfApplication's running or not. Application authors who wish to only see running applications should use bamf_matcher_get_running_applications instead. The reason this method is needed is bamf will occasionally track applications which are not currently running for nefarious purposes.
void bamf_matcher_register_favorites (BamfMatcher *matcher
,const gchar **favorites
);
Used to effect how bamf performs matching. Desktop files passed to this method will be prefered by bamf to system desktop files.
GList *
bamf_matcher_get_running_applications (BamfMatcher *matcher
);
Used to fetch all BamfApplication's which are running.
GList *
bamf_matcher_get_tabs (BamfMatcher *matcher
);
Used to fetch all BamfView's representing tabs. Currently unused.
GArray * bamf_matcher_get_xids_for_application (BamfMatcher *matcher
,const gchar *desktop_file
);
Used to fetch all xid's associated with an application. Useful for performing window
GList *
bamf_matcher_get_windows (BamfMatcher *matcher
);
Used to fetch all windows that BAMF knows about.
GList * bamf_matcher_get_window_stack_for_monitor (BamfMatcher *matcher
,gint monitor
);
Used to fetch all windows that BAMF knows about in the requested screen,
in stacking bottom-to-top order. If the monitor
is set to a negative value,
then it fetches all the available windows in all monitors.
BamfApplication * bamf_matcher_get_application_for_desktop_file (BamfMatcher *matcher
,const gchar *desktop_file_path
,gboolean create_if_not_found
);
matcher |
||
desktop_file_path |
Path to the desktop file |
|
create_if_not_found |
Create a BamfApplication if one isn't found |
#define BAMF_MATCHER_SIGNAL_ACTIVE_APPLICATION_CHANGED "active-application-changed"
#define BAMF_MATCHER_SIGNAL_ACTIVE_WINDOW_CHANGED "active-window-changed"
“active-application-changed”
signalvoid user_function (BamfMatcher *bamfmatcher, BamfApplication *arg1, BamfApplication *arg2, gpointer user_data)
“active-window-changed”
signalvoid user_function (BamfMatcher *bamfmatcher, BamfWindow *arg1, BamfWindow *arg2, gpointer user_data)
“stacking-order-changed”
signalvoid user_function (BamfMatcher *bamfmatcher, gpointer user_data)
“view-closed”
signalvoid user_function (BamfMatcher *bamfmatcher, BamfView *arg1, gpointer user_data)
“view-opened”
signalvoid user_function (BamfMatcher *bamfmatcher, BamfView *arg1, gpointer user_data)