File: xfce-heading.h

package info (click to toggle)
exo 0.6.2-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 9,696 kB
  • sloc: ansic: 22,617; sh: 11,230; makefile: 913; xml: 629; python: 402; perl: 239
file content (81 lines) | stat: -rw-r--r-- 3,094 bytes parent folder | download
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
/*-
 * Copyright (c) 2006 Benedikt Meurer <benny@xfce.org>.
 *
 * 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 Library General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#ifndef __XFCE_HEADING_H__
#define __XFCE_HEADING_H__

#include <gtk/gtk.h>

G_BEGIN_DECLS

typedef struct _XfceHeadingPrivate XfceHeadingPrivate;
typedef struct _XfceHeadingClass   XfceHeadingClass;
typedef struct _XfceHeading        XfceHeading;

#define XFCE_TYPE_HEADING             (xfce_heading_get_type ())
#define XFCE_HEADING(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), XFCE_TYPE_HEADING, XfceHeading))
#define XFCE_HEADING_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), XFCE_TYPE_HEADING, XfceHeadingClass))
#define XFCE_IS_HEADING(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XFCE_TYPE_HEADING))
#define XFCE_IS_HEADING_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), XFCE_TYPE_HEADING))
#define XFCE_HEADING_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), XFCE_TYPE_HEADING, XfceHeadingClass))

struct _XfceHeadingClass
{
  /*< private >*/
  GtkWidgetClass __parent__;

  /* reserved for future expansion */
  void (*reserved0) (void);
  void (*reserved1) (void);
  void (*reserved2) (void);
  void (*reserved3) (void);
  void (*reserved4) (void);
  void (*reserved5) (void);
};

struct _XfceHeading
{
  /*< private >*/
  GtkWidget           __parent__;
  XfceHeadingPrivate *priv;
};

GType                 xfce_heading_get_type      (void) G_GNUC_CONST;

GtkWidget            *xfce_heading_new           (void) G_GNUC_MALLOC;

GdkPixbuf            *xfce_heading_get_icon      (XfceHeading *heading);
void                  xfce_heading_set_icon      (XfceHeading *heading,
                                                  GdkPixbuf   *icon);

G_CONST_RETURN gchar *xfce_heading_get_icon_name (XfceHeading *heading);
void                  xfce_heading_set_icon_name (XfceHeading *heading,
                                                  const gchar *icon_name);

G_CONST_RETURN gchar *xfce_heading_get_subtitle  (XfceHeading *heading);
void                  xfce_heading_set_subtitle  (XfceHeading *heading,
                                                  const gchar *subtitle);

G_CONST_RETURN gchar *xfce_heading_get_title     (XfceHeading *heading);
void                  xfce_heading_set_title     (XfceHeading *heading,
                                                  const gchar *title);

G_END_DECLS

#endif /* !__XFCE_HEADING_H__ */