File: netk-application.h

package info (click to toggle)
libxfcegui4 4.10.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,868 kB
  • ctags: 2,783
  • sloc: ansic: 22,658; sh: 11,187; makefile: 510
file content (86 lines) | stat: -rw-r--r-- 3,235 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/* application object */

/*
 * Copyright (C) 2001 Havoc Pennington
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 */

#ifndef NETK_APPLICATION_H
#define NETK_APPLICATION_H

#if defined(LIBXFCEGUI4_COMPILATION) || !defined(XFCE_DISABLE_DEPRECATED)

#include <glib-object.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <libxfcegui4/netk-screen.h>

G_BEGIN_DECLS

#define NETK_TYPE_APPLICATION              (netk_application_get_type ())
#define NETK_APPLICATION(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), NETK_TYPE_APPLICATION, NetkApplication))
#define NETK_APPLICATION_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), NETK_TYPE_APPLICATION, NetkApplicationClass))
#define NETK_IS_APPLICATION(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), NETK_TYPE_APPLICATION))
#define NETK_IS_APPLICATION_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), NETK_TYPE_APPLICATION))
#define NETK_APPLICATION_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), NETK_TYPE_APPLICATION, NetkApplicationClass))
typedef struct _NetkApplicationClass NetkApplicationClass;
typedef struct _NetkApplicationPrivate NetkApplicationPrivate;

struct _NetkApplication
{
    GObject parent_instance;

    NetkApplicationPrivate *priv;
};

struct _NetkApplicationClass
{
    GObjectClass parent_class;

    /* app name or icon name changed */
    void (*name_changed) (NetkApplication * app);

    /* icon changed */
    void (*icon_changed) (NetkApplication * app);
};

GType
netk_application_get_type (void)
    G_GNUC_CONST;

     NetkApplication *netk_application_get (gulong xwindow);

     gulong netk_application_get_xid (NetkApplication * app);

     GList *netk_application_get_windows (NetkApplication * app);
     int netk_application_get_n_windows (NetkApplication * app);

/* application_get_name, application_get_pid, etc.; prefer to read
 * properties straight off the group leader, and failing that, if the
 * prop is the same for all windows in the app, return the values for
 * the window. Failing that, they make stuff up.
 */
     const char *netk_application_get_name (NetkApplication * app);
     const char *netk_application_get_icon_name (NetkApplication * app);
     int netk_application_get_pid (NetkApplication * app);
     GdkPixbuf *netk_application_get_icon (NetkApplication * app);
     GdkPixbuf *netk_application_get_mini_icon (NetkApplication * app);
     gboolean netk_application_get_icon_is_fallback (NetkApplication * app);

G_END_DECLS

#endif /* !XFCE_DISABLE_DEPRECATED */

#endif /* NETK_APPLICATION_H */