1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
3
* st-entry.h: Plain entry actor
5
* Copyright 2008, 2009 Intel Corporation.
7
* This program is free software; you can redistribute it and/or modify it
8
* under the terms and conditions of the GNU Lesser General Public License,
9
* version 2.1, as published by the Free Software Foundation.
11
* This program is distributed in the hope it will be useful, but WITHOUT ANY
12
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
16
* You should have received a copy of the GNU Lesser General Public License
17
* along with this program; if not, write to the Free Software Foundation,
18
* Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
19
* Boston, MA 02111-1307, USA.
21
* Written by: Thomas Wood <thomas@linux.intel.com>
25
#if !defined(ST_H_INSIDE) && !defined(ST_COMPILATION)
26
#error "Only <st/st.h> can be included directly.h"
29
#ifndef __ST_ENTRY_H__
30
#define __ST_ENTRY_H__
34
#include <st/st-widget.h>
36
#define ST_TYPE_ENTRY (st_entry_get_type ())
37
#define ST_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ST_TYPE_ENTRY, StEntry))
38
#define ST_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ST_TYPE_ENTRY))
39
#define ST_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ST_TYPE_ENTRY, StEntryClass))
40
#define ST_IS_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ST_TYPE_ENTRY))
41
#define ST_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ST_TYPE_ENTRY, StEntryClass))
43
typedef struct _StEntry StEntry;
44
typedef struct _StEntryPrivate StEntryPrivate;
45
typedef struct _StEntryClass StEntryClass;
50
* The contents of this structure is private and should only be accessed using
56
StWidget parent_instance;
63
StWidgetClass parent_class;
66
void (*primary_icon_clicked) (StEntry *entry);
67
void (*secondary_icon_clicked) (StEntry *entry);
70
GType st_entry_get_type (void) G_GNUC_CONST;
72
StWidget * st_entry_new (const gchar *text);
73
G_CONST_RETURN gchar *st_entry_get_text (StEntry *entry);
74
void st_entry_set_text (StEntry *entry,
76
ClutterActor* st_entry_get_clutter_text (StEntry *entry);
78
void st_entry_set_hint_text (StEntry *entry,
80
G_CONST_RETURN gchar *st_entry_get_hint_text (StEntry *entry);
82
void st_entry_set_primary_icon_from_file (StEntry *entry,
83
const gchar *filename);
84
void st_entry_set_secondary_icon_from_file (StEntry *entry,
85
const gchar *filename);
89
#endif /* __ST_ENTRY_H__ */