Skip to content
80a525d
85 lines (59 sloc) 2.96 KB
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#ifndef __CINNAMON_APP_H__
#define __CINNAMON_APP_H__
#include <clutter/clutter.h>
#include <gio/gio.h>
#include <meta/window.h>
#define GMENU_I_KNOW_THIS_IS_UNSTABLE
#include <gmenu-tree.h>
G_BEGIN_DECLS
typedef struct _CinnamonApp CinnamonApp;
typedef struct _CinnamonAppClass CinnamonAppClass;
typedef struct _CinnamonAppPrivate CinnamonAppPrivate;
#define CINNAMON_TYPE_APP (cinnamon_app_get_type ())
#define CINNAMON_APP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), CINNAMON_TYPE_APP, CinnamonApp))
#define CINNAMON_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CINNAMON_TYPE_APP, CinnamonAppClass))
#define CINNAMON_IS_APP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), CINNAMON_TYPE_APP))
#define CINNAMON_IS_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CINNAMON_TYPE_APP))
#define CINNAMON_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CINNAMON_TYPE_APP, CinnamonAppClass))
struct _CinnamonAppClass
{
GObjectClass parent_class;
};
typedef enum {
CINNAMON_APP_STATE_STOPPED,
CINNAMON_APP_STATE_STARTING,
CINNAMON_APP_STATE_RUNNING
} CinnamonAppState;
GType cinnamon_app_get_type (void) G_GNUC_CONST;
const char *cinnamon_app_get_id (CinnamonApp *app);
GMenuTreeEntry *cinnamon_app_get_tree_entry (CinnamonApp *app);
GDesktopAppInfo *cinnamon_app_get_app_info (CinnamonApp *app);
ClutterActor *cinnamon_app_create_icon_texture (CinnamonApp *app, int size);
ClutterActor *cinnamon_app_get_faded_icon (CinnamonApp *app, int size);
const char *cinnamon_app_get_name (CinnamonApp *app);
const char *cinnamon_app_get_description (CinnamonApp *app);
gboolean cinnamon_app_is_window_backed (CinnamonApp *app);
void cinnamon_app_activate_window (CinnamonApp *app, MetaWindow *window, guint32 timestamp);
void cinnamon_app_activate (CinnamonApp *app);
void cinnamon_app_activate_full (CinnamonApp *app,
int workspace,
guint32 timestamp);
void cinnamon_app_open_new_window (CinnamonApp *app,
int workspace);
CinnamonAppState cinnamon_app_get_state (CinnamonApp *app);
gboolean cinnamon_app_request_quit (CinnamonApp *app);
guint cinnamon_app_get_n_windows (CinnamonApp *app);
GSList *cinnamon_app_get_windows (CinnamonApp *app);
GSList *cinnamon_app_get_pids (CinnamonApp *app);
gboolean cinnamon_app_is_on_workspace (CinnamonApp *app, MetaWorkspace *workspace);
gboolean cinnamon_app_launch (CinnamonApp *app,
guint timestamp,
GList *uris,
int workspace,
char **startup_id,
GError **error);
int cinnamon_app_compare_by_name (CinnamonApp *app, CinnamonApp *other);
int cinnamon_app_compare (CinnamonApp *app, CinnamonApp *other);
G_END_DECLS
#endif /* __CINNAMON_APP_H__ */
Jump to Line
Something went wrong with that request. Please try again.