~ubuntu-branches/ubuntu/trusty/unity-control-center/trusty

« back to all changes in this revision

Viewing changes to shell/cc-editable-entry.h

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2014-01-08 16:29:18 UTC
  • Revision ID: package-import@ubuntu.com-20140108162918-g29dd08tr913y2qh
Tags: upstream-14.04.0
ImportĀ upstreamĀ versionĀ 14.04.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
 
2
 *
 
3
 * Copyright 2009-2010  Red Hat, Inc,
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License as published by
 
7
 * the Free Software Foundation; either version 2 of the License, or
 
8
 * (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
18
 *
 
19
 * Written by: Matthias Clasen <mclasen@redhat.com>
 
20
 */
 
21
 
 
22
#ifndef _CC_EDITABLE_ENTRY_H_
 
23
#define _CC_EDITABLE_ENTRY_H_
 
24
 
 
25
#include <gtk/gtk.h>
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
29
#define CC_TYPE_EDITABLE_ENTRY  cc_editable_entry_get_type()
 
30
 
 
31
#define CC_EDITABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CC_TYPE_EDITABLE_ENTRY, CcEditableEntry))
 
32
#define CC_EDITABLE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CC_TYPE_EDITABLE_ENTRY, CcEditableEntryClass))
 
33
#define CC_IS_EDITABLE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CC_TYPE_EDITABLE_ENTRY))
 
34
#define CC_IS_EDITABLE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CC_TYPE_EDITABLE_ENTRY))
 
35
#define CC_EDITABLE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CC_TYPE_EDITABLE_ENTRY, CcEditableEntryClass))
 
36
 
 
37
typedef struct _CcEditableEntry CcEditableEntry;
 
38
typedef struct _CcEditableEntryClass CcEditableEntryClass;
 
39
typedef struct _CcEditableEntryPrivate CcEditableEntryPrivate;
 
40
 
 
41
struct _CcEditableEntry
 
42
{
 
43
  GtkAlignment parent;
 
44
 
 
45
  CcEditableEntryPrivate *priv;
 
46
};
 
47
 
 
48
struct _CcEditableEntryClass
 
49
{
 
50
  GtkAlignmentClass parent_class;
 
51
 
 
52
  void (* editing_done) (CcEditableEntry *entry);
 
53
};
 
54
 
 
55
GType        cc_editable_entry_get_type       (void) G_GNUC_CONST;
 
56
GtkWidget   *cc_editable_entry_new            (void);
 
57
void         cc_editable_entry_set_text       (CcEditableEntry *entry,
 
58
                                               const gchar     *text);
 
59
const gchar *cc_editable_entry_get_text       (CcEditableEntry *entry);
 
60
void         cc_editable_entry_set_editable   (CcEditableEntry *entry,
 
61
                                               gboolean         editable);
 
62
gboolean     cc_editable_entry_get_editable   (CcEditableEntry *entry);
 
63
void         cc_editable_entry_set_selectable (CcEditableEntry *entry,
 
64
                                               gboolean         selectable);
 
65
gboolean     cc_editable_entry_get_selectable (CcEditableEntry *entry);
 
66
void         cc_editable_entry_set_weight     (CcEditableEntry *entry,
 
67
                                               gint             weight);
 
68
gint         cc_editable_entry_get_weight     (CcEditableEntry *entry);
 
69
void         cc_editable_entry_set_scale      (CcEditableEntry *entry,
 
70
                                               gdouble          scale);
 
71
gdouble      cc_editable_entry_get_scale      (CcEditableEntry *entry);
 
72
 
 
73
G_END_DECLS
 
74
 
 
75
#endif /* _CC_EDITABLE_ENTRY_H_ */